Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.001912/0.001912, allocations: 111.1 kB / 20.44 MB, free: 1.332 MB / 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.002036/0.002036, allocations: 210.5 kB / 23.73 MB, free: 4.512 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.42/1.42, allocations: 230.6 MB / 257.5 MB, free: 7.762 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4_1_0_Modelica_Electrical_Analog_Examples_IdealTriacCircuit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.IdealTriacCircuit,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_IdealTriacCircuit",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001552/0.001552, allocations: 47.92 kB / 377.7 MB, free: 2.965 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2599/0.2614, allocations: 53.37 MB / 431.1 MB, free: 6.652 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.IdealTriacCircuit): time 0.004078/0.2655, allocations: 2.747 MB / 433.8 MB, free: 3.895 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001335/0.2669, allocations: 0.7574 MB / 434.6 MB, free: 3.133 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001376/0.267, allocations: 7.938 kB / 434.6 MB, free: 3.125 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000156/0.2671, allocations: 51.5 kB / 434.6 MB, free: 3.074 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001814/0.2673, allocations: 99.12 kB / 434.7 MB, free: 2.977 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003227/0.2677, allocations: 119.8 kB / 434.9 MB, free: 2.859 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004205/0.2681, allocations: 406.3 kB / 435.3 MB, free: 2.461 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00019/0.2683, allocations: 87.67 kB / 435.3 MB, free: 2.371 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002463/0.2685, allocations: 159.4 kB / 435.5 MB, free: 2.215 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002072/0.2687, allocations: 151.2 kB / 435.6 MB, free: 2.066 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.153e-05/0.2688, allocations: 36 kB / 435.7 MB, free: 2.031 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.276e-05/0.2689, allocations: 44 kB / 435.7 MB, free: 1.988 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.89e-05/0.2689, allocations: 79.75 kB / 435.8 MB, free: 1.91 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001461/0.2691, allocations: 143.4 kB / 435.9 MB, free: 1.77 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004689/0.2695, allocations: 446.2 kB / 436.4 MB, free: 1.332 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.835e-06/0.2696, allocations: 4 kB / 436.4 MB, free: 1.328 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.273e-06/0.2696, allocations: 0 / 436.4 MB, free: 1.328 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.743e-06/0.2696, allocations: 0 / 436.4 MB, free: 1.328 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.0009799/0.2705, allocations: 0.5528 MB / 436.9 MB, free: 0.7461 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.623e-05/0.2706, allocations: 8.031 kB / 436.9 MB, free: 0.7383 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.091e-05/0.2706, allocations: 62.72 kB / 437 MB, free: 0.668 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000185/0.2708, allocations: 52.69 kB / 437.1 MB, free: 0.6172 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003958/0.2712, allocations: 230.9 kB / 437.3 MB, free: 372 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.188e-05/0.2712, allocations: 16.88 kB / 437.3 MB, free: 356 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.591e-05/0.2713, allocations: 28.31 kB / 437.3 MB, free: 328 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005331/0.2718, allocations: 343.2 kB / 437.7 MB, free: 15.95 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.105e-05/0.2718, allocations: 0 / 437.7 MB, free: 15.95 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.082e-05/0.2719, allocations: 11.94 kB / 437.7 MB, free: 15.94 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.458e-06/0.2719, allocations: 8 kB / 437.7 MB, free: 15.93 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003963/0.2723, allocations: 209.8 kB / 437.9 MB, free: 15.73 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001691/0.274, allocations: 1.039 MB / 438.9 MB, free: 14.62 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004932/0.2745, allocations: 190.7 kB / 439.1 MB, free: 14.43 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000317/0.2748, allocations: 124.8 kB / 439.2 MB, free: 14.3 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.159e-05/0.2748, allocations: 7.938 kB / 439.2 MB, free: 14.29 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003546/0.2752, allocations: 222 kB / 439.5 MB, free: 14.04 MB / 350.1 MB Notification: Performance of pre-optimization done (n=22): time 1.854e-06/0.2752, allocations: 0 / 439.5 MB, free: 14.04 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.001424/0.2766, allocations: 453.1 kB / 439.9 MB, free: 13.59 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.189e-05/0.2767, allocations: 132.5 kB / 440 MB, free: 13.43 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002737/0.2769, allocations: 241.1 kB / 440.3 MB, free: 13.18 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.557e-05/0.277, allocations: 33.7 kB / 440.3 MB, free: 13.14 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001349/0.2771, allocations: 176.6 kB / 440.5 MB, free: 12.97 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.753e-05/0.2772, allocations: 71.39 kB / 440.5 MB, free: 12.9 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.82e-05/0.2773, allocations: 45.7 kB / 440.6 MB, free: 12.85 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001607/0.2774, allocations: 338.8 kB / 440.9 MB, free: 12.51 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001713/0.2776, allocations: 71.97 kB / 441 MB, free: 12.44 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002288/0.2778, allocations: 177.3 kB / 441.2 MB, free: 12.23 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002983/0.2781, allocations: 167.3 kB / 441.3 MB, free: 12.06 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.2781, allocations: 4 kB / 441.3 MB, free: 12.05 MB / 350.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0005385/0.2787, allocations: 294.2 kB / 441.6 MB, free: 11.76 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.67e-05/0.2787, allocations: 4 kB / 441.6 MB, free: 11.75 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.791e-06/0.2787, allocations: 3.938 kB / 441.6 MB, free: 11.75 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003257/0.279, allocations: 92.8 kB / 441.7 MB, free: 11.66 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001298/0.2791, allocations: 23.98 kB / 441.7 MB, free: 11.63 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002439/0.2816, allocations: 2.024 MB / 443.8 MB, free: 9.492 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002073/0.2818, allocations: 35.86 kB / 443.8 MB, free: 9.457 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.744e-05/0.2818, allocations: 8 kB / 443.8 MB, free: 9.449 MB / 350.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.0001658/0.282, allocations: 145.8 kB / 443.9 MB, free: 9.297 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.336e-05/0.282, allocations: 31.86 kB / 444 MB, free: 9.266 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.119e-05/0.2821, allocations: 34.27 kB / 444 MB, free: 9.234 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.358e-06/0.2821, allocations: 4.109 kB / 444 MB, free: 9.23 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.653e-06/0.2821, allocations: 7.938 kB / 444 MB, free: 9.223 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.557e-06/0.2821, allocations: 3.938 kB / 444 MB, free: 9.219 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001006/0.2831, allocations: 0.7056 MB / 444.7 MB, free: 8.457 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-06/0.2831, allocations: 0 / 444.7 MB, free: 8.457 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001045/0.2832, allocations: 16 kB / 444.7 MB, free: 8.441 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002499/0.2835, allocations: 84.83 kB / 444.8 MB, free: 8.355 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.795e-05/0.2835, allocations: 8 kB / 444.8 MB, free: 8.348 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002339/0.2858, allocations: 2.031 MB / 446.9 MB, free: 6.199 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.362e-06/0.2858, allocations: 0 / 446.9 MB, free: 6.199 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00071/0.2865, allocations: 451 kB / 447.3 MB, free: 5.738 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000109/0.2866, allocations: 51.75 kB / 447.4 MB, free: 5.688 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.118e-05/0.2867, allocations: 8 kB / 447.4 MB, free: 5.68 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001924/0.2869, allocations: 11.98 kB / 447.4 MB, free: 5.668 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.587e-05/0.287, allocations: 35.94 kB / 447.4 MB, free: 5.633 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.697e-05/0.287, allocations: 7.984 kB / 447.4 MB, free: 5.625 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001884/0.2872, allocations: 180.5 kB / 447.6 MB, free: 5.453 MB / 350.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.2872, allocations: 0 / 447.6 MB, free: 5.453 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004507/0.2876, allocations: 95.89 kB / 447.7 MB, free: 5.359 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.001082/0.2887, allocations: 0.9841 MB / 448.7 MB, free: 4.348 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007261/0.2894, allocations: 350.3 kB / 449 MB, free: 3.992 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.2894, allocations: 256 / 449 MB, free: 3.992 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000415/0.2898, allocations: 257.5 kB / 449.3 MB, free: 3.73 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004322/0.2903, allocations: 58.94 kB / 449.3 MB, free: 3.676 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003821/0.2941, allocations: 2.776 MB / 452.1 MB, free: 0.7852 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001854/0.2943, allocations: 159.8 kB / 452.3 MB, free: 0.6094 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000102/0.2944, allocations: 26.28 kB / 452.3 MB, free: 0.582 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001319/0.2945, allocations: 83.41 kB / 452.4 MB, free: 0.5 MB / 350.1 MB Notification: Performance of SimCode: time 7.22e-07/0.2945, allocations: 0 / 452.4 MB, free: 0.5 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04198/0.3365, allocations: 8.142 MB / 460.5 MB, free: 8.578 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.45/12.79, allocations: 2.656 kB / 460.5 MB, free: 8.578 MB / 366.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.sim & python3 -m fmpy simulate --output-file Modelica_4.1.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_1_0_Modelica_Electrical_Analog_Examples_IdealTriacCircuit.fmu > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/IdealTriacCircuit/IdealTriacCircuit.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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[828369]=0.236304 Error: Could not read variable idealTriac.idealThyristor.off in file Modelica_4.1.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.csv. Warning: Get data of variable idealTriac.idealThyristor.off from file Modelica_4.1.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.csv failed! Error: Could not read variable idealTriac.idealThyristor1.off in file Modelica_4.1.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.csv. Warning: Get data of variable idealTriac.idealThyristor1.off from file Modelica_4.1.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.85081541119143]