Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001788/0.001788, allocations: 107.6 kB / 21.18 MB, free: 452 kB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002317/0.002317, allocations: 214.5 kB / 24.47 MB, free: 3.777 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.374/1.374, allocations: 207.7 MB / 235.3 MB, free: 9.801 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.IdealTriacCircuit,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_IdealTriacCircuit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.IdealTriacCircuit,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_IdealTriacCircuit",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002498/0.002498, allocations: 51.94 kB / 347.2 MB, free: 9.887 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2411/0.2436, allocations: 49.15 MB / 396.3 MB, free: 8.883 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.IdealTriacCircuit): time 0.003528/0.2471, allocations: 2.681 MB / 399 MB, free: 7.094 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001201/0.2483, allocations: 0.7466 MB / 399.8 MB, free: 6.566 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001534/0.2485, allocations: 4.594 kB / 399.8 MB, free: 6.566 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001707/0.2486, allocations: 50.25 kB / 399.8 MB, free: 6.535 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001919/0.2488, allocations: 97.34 kB / 399.9 MB, free: 6.465 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00031/0.2491, allocations: 106.8 kB / 400 MB, free: 6.398 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004129/0.2496, allocations: 416.7 kB / 400.4 MB, free: 6.18 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002158/0.2498, allocations: 92.41 kB / 400.5 MB, free: 6.121 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002128/0.25, allocations: 162.9 kB / 400.7 MB, free: 6.039 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000201/0.2502, allocations: 140.8 kB / 400.8 MB, free: 5.977 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.035e-05/0.2502, allocations: 36.34 kB / 400.9 MB, free: 5.977 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.417e-05/0.2503, allocations: 36.97 kB / 400.9 MB, free: 5.977 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.815e-05/0.2504, allocations: 77.47 kB / 401 MB, free: 5.922 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001318/0.2505, allocations: 145.2 kB / 401.1 MB, free: 5.844 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004565/0.251, allocations: 440.3 kB / 401.5 MB, free: 5.668 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.251, allocations: 0.6094 kB / 401.5 MB, free: 5.668 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.251, allocations: 4 kB / 401.5 MB, free: 5.664 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.375e-05/0.251, allocations: 1.219 kB / 401.5 MB, free: 5.664 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 62 * Number of variables: 62 Notification: Performance of Generate backend data structure: time 0.0008922/0.2519, allocations: 0.5428 MB / 402.1 MB, free: 5.25 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.148e-05/0.2519, allocations: 13.27 kB / 402.1 MB, free: 5.246 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.613e-05/0.252, allocations: 69.31 kB / 402.2 MB, free: 5.184 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.275e-05/0.252, allocations: 38.05 kB / 402.2 MB, free: 5.164 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003281/0.2524, allocations: 228.1 kB / 402.4 MB, free: 4.965 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.039e-05/0.2524, allocations: 18.75 kB / 402.4 MB, free: 4.957 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.878e-05/0.2524, allocations: 24.69 kB / 402.5 MB, free: 4.949 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004599/0.2529, allocations: 342.5 kB / 402.8 MB, free: 4.734 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.327e-05/0.2529, allocations: 3.938 kB / 402.8 MB, free: 4.73 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.541e-05/0.2529, allocations: 10.22 kB / 402.8 MB, free: 4.723 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.149e-05/0.2529, allocations: 6.812 kB / 402.8 MB, free: 4.723 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003652/0.2533, allocations: 205.2 kB / 403 MB, free: 4.648 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001456/0.2548, allocations: 1.039 MB / 404.1 MB, free: 3.875 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004739/0.2552, allocations: 196.9 kB / 404.3 MB, free: 3.773 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002859/0.2555, allocations: 127.2 kB / 404.4 MB, free: 3.723 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.312e-05/0.2555, allocations: 3.188 kB / 404.4 MB, free: 3.723 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002957/0.2558, allocations: 222.3 kB / 404.6 MB, free: 3.539 MB / 318.1 MB Notification: Performance of pre-optimization done (n=22): time 1.763e-06/0.2558, allocations: 0 / 404.6 MB, free: 3.539 MB / 318.1 MB Notification: Performance of matching and sorting (n=22): time 0.001347/0.2572, allocations: 436.3 kB / 405 MB, free: 3.379 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.736e-05/0.2572, allocations: 137.6 kB / 405.2 MB, free: 3.219 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002366/0.2575, allocations: 248.3 kB / 405.4 MB, free: 3.066 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.247e-05/0.2575, allocations: 31.62 kB / 405.4 MB, free: 3.031 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.119e-05/0.2576, allocations: 174.2 kB / 405.6 MB, free: 2.883 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.062e-05/0.2576, allocations: 70.7 kB / 405.7 MB, free: 2.828 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.914e-05/0.2577, allocations: 52.09 kB / 405.7 MB, free: 2.793 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.584e-05/0.2578, allocations: 336.2 kB / 406.1 MB, free: 2.469 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001424/0.2579, allocations: 72.52 kB / 406.1 MB, free: 2.441 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001728/0.2581, allocations: 170.1 kB / 406.3 MB, free: 2.301 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002662/0.2584, allocations: 168.7 kB / 406.5 MB, free: 2.203 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.615e-06/0.2584, allocations: 4.031 kB / 406.5 MB, free: 2.199 MB / 318.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0005046/0.2589, allocations: 288 kB / 406.7 MB, free: 2.055 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.777e-05/0.2589, allocations: 6.062 kB / 406.7 MB, free: 2.055 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.041e-06/0.2589, allocations: 0 / 406.7 MB, free: 2.055 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003379/0.2592, allocations: 95.98 kB / 406.8 MB, free: 2.016 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001227/0.2593, allocations: 25.06 kB / 406.9 MB, free: 2.016 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001737/0.2611, allocations: 2.013 MB / 408.9 MB, free: 296 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002369/0.2613, allocations: 32.81 kB / 408.9 MB, free: 280 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.796e-05/0.2613, allocations: 14.88 kB / 408.9 MB, free: 272 kB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition1,idealTriac.fire1,idealTriac.idealThyristor1.off,$PRE.idealTriac.idealThyristor1.off,idealTriac.idealThyristor.off,$PRE.idealTriac.idealThyristor.off,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,9)} Notification: Performance of prepare postOptimizeDAE: time 0.0001346/0.2615, allocations: 151.9 kB / 409.1 MB, free: 128 kB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.004e-05/0.2615, allocations: 28.78 kB / 409.1 MB, free: 112 kB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.618e-05/0.2616, allocations: 34.67 kB / 409.1 MB, free: 88 kB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.036e-06/0.2616, allocations: 2.75 kB / 409.1 MB, free: 88 kB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.907e-06/0.2616, allocations: 0.6094 kB / 409.1 MB, free: 88 kB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.16e-06/0.2616, allocations: 2.219 kB / 409.1 MB, free: 88 kB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001013/0.2626, allocations: 0.7014 MB / 409.8 MB, free: 15.56 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.336e-06/0.2626, allocations: 0.7969 kB / 409.8 MB, free: 15.56 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001142/0.2627, allocations: 30.69 kB / 409.9 MB, free: 15.55 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002682/0.263, allocations: 88.89 kB / 410 MB, free: 15.52 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.047e-05/0.263, allocations: 10.58 kB / 410 MB, free: 15.51 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002287/0.2653, allocations: 2.01 MB / 412 MB, free: 13.79 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.325e-06/0.2653, allocations: 1.094 kB / 412 MB, free: 13.79 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000765/0.2661, allocations: 447.4 kB / 412.4 MB, free: 13.51 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001334/0.2662, allocations: 44.86 kB / 412.5 MB, free: 13.48 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.893e-05/0.2662, allocations: 6.984 kB / 412.5 MB, free: 13.48 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002197/0.2665, allocations: 22.84 kB / 412.5 MB, free: 13.47 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001082/0.2666, allocations: 39.05 kB / 412.5 MB, free: 13.46 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.528e-05/0.2666, allocations: 6.406 kB / 412.5 MB, free: 13.46 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001984/0.2668, allocations: 178.1 kB / 412.7 MB, free: 13.35 MB / 334.1 MB Notification: Performance of sort global known variables: time 6e-08/0.2668, allocations: 0 / 412.7 MB, free: 13.35 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004808/0.2673, allocations: 96.5 kB / 412.8 MB, free: 13.32 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (idealTriac.capacitor.v) * Number of discrete variables: 5 ($whenCondition1,booleanPulse.pulseStart,idealTriac.idealThyristor.off,idealTriac.idealThyristor1.off,idealTriac.fire1) * Number of discrete states: 2 (idealTriac.idealThyristor1.off,idealTriac.idealThyristor.off) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,9)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001028/0.2683, allocations: 0.9762 MB / 413.8 MB, free: 12.52 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0007052/0.269, allocations: 355 kB / 414.1 MB, free: 12.31 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.269, allocations: 0 / 414.1 MB, free: 12.31 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004037/0.2694, allocations: 261.7 kB / 414.4 MB, free: 12.13 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004136/0.2698, allocations: 65.59 kB / 414.4 MB, free: 12.1 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003703/0.2735, allocations: 2.75 MB / 417.2 MB, free: 10.21 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001711/0.2737, allocations: 160.7 kB / 417.4 MB, free: 10.12 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001117/0.2738, allocations: 21.61 kB / 417.4 MB, free: 10.12 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001198/0.2739, allocations: 82.27 kB / 417.5 MB, free: 10.05 MB / 334.1 MB Notification: Performance of SimCode: time 5.61e-07/0.2739, allocations: 0 / 417.5 MB, free: 10.05 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04077/0.3147, allocations: 8.145 MB / 425.6 MB, free: 4.965 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.82/13.14, allocations: 7.859 kB / 425.6 MB, free: 4.957 MB / 334.1 MB " [Timeout remaining time 647] (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00039604 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_IdealTriacCircuit.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/IdealTriacCircuit/IdealTriacCircuit.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Warning: Resultfile and Reference have different end time points! Reffile[5050]=2.000000 File[856143]=0.236304 Error: Could not read variable idealTriac.idealThyristor.off in file Modelica_3.2.3_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.csv. Warning: Get data of variable idealTriac.idealThyristor.off from file Modelica_3.2.3_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.csv failed! Error: Could not read variable idealTriac.idealThyristor1.off in file Modelica_3.2.3_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.csv. Warning: Get data of variable idealTriac.idealThyristor1.off from file Modelica_3.2.3_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.csv failed! " [Timeout remaining time 658] "" Variables in the reference:time,idealTriac.capacitor.v,idealTriac.idealThyristor.off,idealTriac.idealThyristor1.off Variables in the result:time,idealTriac.capacitor.v [Calling sys.exit(0), Time elapsed: 69.16054236982018]