Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001321/0.001321, allocations: 107.5 kB / 20.44 MB, free: 1.066 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001406/0.001406, allocations: 184 kB / 23.7 MB, free: 4.191 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.397/1.397, allocations: 225.7 MB / 252.5 MB, free: 12.84 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.IdealTriacCircuit,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_IdealTriacCircuit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.IdealTriacCircuit,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_IdealTriacCircuit",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002462/0.002462, allocations: 43.92 kB / 370.4 MB, free: 9.676 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2548/0.2573, allocations: 52.19 MB / 422.6 MB, free: 14.37 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.IdealTriacCircuit): time 0.004039/0.2613, allocations: 2.718 MB / 425.3 MB, free: 11.64 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00119/0.2625, allocations: 0.6989 MB / 426 MB, free: 10.94 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001251/0.2626, allocations: 11.94 kB / 426 MB, free: 10.93 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001542/0.2628, allocations: 51.5 kB / 426.1 MB, free: 10.88 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000184/0.263, allocations: 103.1 kB / 426.2 MB, free: 10.77 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002907/0.2632, allocations: 99.81 kB / 426.3 MB, free: 10.68 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004314/0.2637, allocations: 406.3 kB / 426.6 MB, free: 10.28 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001891/0.2639, allocations: 87.67 kB / 426.7 MB, free: 10.19 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002026/0.2641, allocations: 155.5 kB / 426.9 MB, free: 10.04 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002101/0.2643, allocations: 151.2 kB / 427 MB, free: 9.887 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.694e-05/0.2643, allocations: 40 kB / 427.1 MB, free: 9.848 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.43e-05/0.2644, allocations: 36 kB / 427.1 MB, free: 9.812 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.33e-05/0.2645, allocations: 71.77 kB / 427.2 MB, free: 9.742 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001562/0.2646, allocations: 147.3 kB / 427.3 MB, free: 9.598 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004632/0.2651, allocations: 434.4 kB / 427.7 MB, free: 9.172 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.2651, allocations: 0 / 427.7 MB, free: 9.172 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.2651, allocations: 0 / 427.7 MB, free: 9.172 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.963e-06/0.2651, allocations: 4 kB / 427.7 MB, free: 9.168 MB / 334.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.001006/0.2661, allocations: 0.5597 MB / 428.3 MB, free: 8.578 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.822e-05/0.2662, allocations: 12.03 kB / 428.3 MB, free: 8.566 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.966e-05/0.2662, allocations: 58.73 kB / 428.4 MB, free: 8.5 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.623e-05/0.2663, allocations: 32.75 kB / 428.4 MB, free: 8.469 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003962/0.2667, allocations: 233.9 kB / 428.6 MB, free: 8.215 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.761e-05/0.2667, allocations: 24.88 kB / 428.7 MB, free: 8.191 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.463e-05/0.2668, allocations: 24.38 kB / 428.7 MB, free: 8.168 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005264/0.2673, allocations: 339.1 kB / 429 MB, free: 7.809 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.128e-05/0.2673, allocations: 0 / 429 MB, free: 7.809 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.816e-05/0.2673, allocations: 12 kB / 429 MB, free: 7.797 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.061e-05/0.2673, allocations: 7.984 kB / 429 MB, free: 7.789 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004028/0.2677, allocations: 201.9 kB / 429.2 MB, free: 7.594 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001638/0.2694, allocations: 1.043 MB / 430.3 MB, free: 6.473 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004555/0.2698, allocations: 190.7 kB / 430.5 MB, free: 6.277 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000278/0.2701, allocations: 124.8 kB / 430.6 MB, free: 6.152 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.062e-05/0.2701, allocations: 4 kB / 430.6 MB, free: 6.148 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000309/0.2704, allocations: 224.1 kB / 430.8 MB, free: 5.895 MB / 334.1 MB Notification: Performance of pre-optimization done (n=22): time 1.403e-06/0.2704, allocations: 0 / 430.8 MB, free: 5.895 MB / 334.1 MB Notification: Performance of matching and sorting (n=22): time 0.001304/0.2717, allocations: 443.8 kB / 431.2 MB, free: 5.453 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.044e-05/0.2718, allocations: 132.5 kB / 431.4 MB, free: 5.293 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002569/0.2721, allocations: 244.9 kB / 431.6 MB, free: 5.043 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.035e-05/0.2721, allocations: 33.7 kB / 431.6 MB, free: 5.004 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001186/0.2722, allocations: 176.6 kB / 431.8 MB, free: 4.828 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.336e-05/0.2723, allocations: 71.39 kB / 431.9 MB, free: 4.758 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.239e-05/0.2724, allocations: 45.7 kB / 431.9 MB, free: 4.707 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001449/0.2725, allocations: 342.8 kB / 432.3 MB, free: 4.363 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001465/0.2727, allocations: 67.97 kB / 432.3 MB, free: 4.297 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002118/0.2729, allocations: 180.5 kB / 432.5 MB, free: 4.09 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002805/0.2732, allocations: 163.4 kB / 432.7 MB, free: 3.918 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.2732, allocations: 0 / 432.7 MB, free: 3.918 MB / 334.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004853/0.2736, allocations: 302.1 kB / 433 MB, free: 3.613 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.032e-05/0.2737, allocations: 8 kB / 433 MB, free: 3.605 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.741e-06/0.2737, allocations: 0 / 433 MB, free: 3.605 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003125/0.274, allocations: 88.8 kB / 433.1 MB, free: 3.516 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001297/0.2741, allocations: 27.92 kB / 433.1 MB, free: 3.488 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00229/0.2764, allocations: 2.02 MB / 435.1 MB, free: 1.352 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001998/0.2766, allocations: 27.91 kB / 435.1 MB, free: 1.324 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.617e-05/0.2766, allocations: 8 kB / 435.1 MB, free: 1.316 MB / 334.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.0001622/0.2768, allocations: 151 kB / 435.3 MB, free: 1.16 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.001e-05/0.2768, allocations: 31.91 kB / 435.3 MB, free: 1.129 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.184e-05/0.2769, allocations: 42.2 kB / 435.4 MB, free: 1.09 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.983e-06/0.2769, allocations: 0 / 435.4 MB, free: 1.09 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.683e-06/0.2769, allocations: 0 / 435.4 MB, free: 1.09 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.851e-06/0.2769, allocations: 8 kB / 435.4 MB, free: 1.082 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009159/0.2778, allocations: 0.697 MB / 436.1 MB, free: 340 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-06/0.2778, allocations: 0 / 436.1 MB, free: 340 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001056/0.2779, allocations: 20 kB / 436.1 MB, free: 320 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002387/0.2782, allocations: 88.8 kB / 436.2 MB, free: 228 kB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.416e-05/0.2782, allocations: 4.031 kB / 436.2 MB, free: 224 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002204/0.2804, allocations: 2.024 MB / 438.2 MB, free: 14.08 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.2804, allocations: 0 / 438.2 MB, free: 14.08 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000662/0.281, allocations: 461.5 kB / 438.6 MB, free: 13.61 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001033/0.2811, allocations: 47.8 kB / 438.7 MB, free: 13.56 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.56e-05/0.2812, allocations: 4 kB / 438.7 MB, free: 13.55 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001929/0.2814, allocations: 20.08 kB / 438.7 MB, free: 13.54 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.372e-05/0.2815, allocations: 39.88 kB / 438.8 MB, free: 13.5 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.397e-05/0.2815, allocations: 7.984 kB / 438.8 MB, free: 13.49 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001644/0.2816, allocations: 172.5 kB / 438.9 MB, free: 13.32 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2816, allocations: 0 / 438.9 MB, free: 13.32 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004305/0.2821, allocations: 95.95 kB / 439 MB, free: 13.23 MB / 350.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.0009873/0.2831, allocations: 0.9863 MB / 440 MB, free: 12.21 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006443/0.2837, allocations: 350.2 kB / 440.4 MB, free: 11.86 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.2837, allocations: 256 / 440.4 MB, free: 11.86 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003865/0.2841, allocations: 262.5 kB / 440.6 MB, free: 11.59 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003878/0.2845, allocations: 48.41 kB / 440.7 MB, free: 11.54 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00356/0.288, allocations: 2.769 MB / 443.4 MB, free: 8.68 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001625/0.2882, allocations: 150.9 kB / 443.6 MB, free: 8.512 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.876e-05/0.2883, allocations: 26.28 kB / 443.6 MB, free: 8.488 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001201/0.2884, allocations: 83.41 kB / 443.7 MB, free: 8.406 MB / 350.1 MB Notification: Performance of SimCode: time 6.72e-07/0.2884, allocations: 0 / 443.7 MB, free: 8.406 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03785/0.3263, allocations: 8.121 MB / 451.8 MB, free: 0.5 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.52/12.84, allocations: 7.078 kB / 451.8 MB, free: 0.4961 MB / 350.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_4_0_0_Modelica_Electrical_Analog_Examples_IdealTriacCircuit.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/IdealTriacCircuit/IdealTriacCircuit.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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[843127]=0.236304 Error: Could not read variable idealTriac.idealThyristor.off in file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.csv. Warning: Get data of variable idealTriac.idealThyristor.off from file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.csv failed! Error: Could not read variable idealTriac.idealThyristor1.off in file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.csv. Warning: Get data of variable idealTriac.idealThyristor1.off from file Modelica_4.0.0_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: 68.94911053404212]