Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3.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.001842/0.001842, allocations: 124.5 kB / 17.79 MB, free: 5.246 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.002295/0.002295, allocations: 207.2 kB / 20.75 MB, free: 2.297 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.49/1.49, allocations: 230.6 MB / 254.1 MB, free: 15.08 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.StateGraph.Examples.FirstExample_Variant3,fileNamePrefix="Modelica_4_1_0_Modelica_StateGraph_Examples_FirstExample_Variant3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant3,fileNamePrefix="Modelica_4_1_0_Modelica_StateGraph_Examples_FirstExample_Variant3",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001504/0.001504, allocations: 51.92 kB / 373 MB, free: 10.22 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1153/0.1168, allocations: 53.32 MB / 426.3 MB, free: 4.809 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.003441/0.1203, allocations: 1.731 MB / 428 MB, free: 3.066 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007852/0.121, allocations: 283.2 kB / 428.3 MB, free: 2.789 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.805e-05/0.1211, allocations: 0 / 428.3 MB, free: 2.789 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001456/0.1213, allocations: 31.67 kB / 428.3 MB, free: 2.758 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.091e-05/0.1213, allocations: 23.78 kB / 428.3 MB, free: 2.734 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004399/0.1218, allocations: 115.8 kB / 428.5 MB, free: 2.621 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003609/0.1221, allocations: 267.5 kB / 428.7 MB, free: 2.359 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002916/0.1224, allocations: 161.5 kB / 428.9 MB, free: 2.199 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001076/0.1225, allocations: 91.7 kB / 429 MB, free: 2.109 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002046/0.1227, allocations: 103.6 kB / 429.1 MB, free: 2.008 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.325e-05/0.1228, allocations: 20 kB / 429.1 MB, free: 1.988 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.438e-05/0.1229, allocations: 28 kB / 429.1 MB, free: 1.961 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.696e-05/0.1229, allocations: 59.83 kB / 429.2 MB, free: 1.902 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001189/0.123, allocations: 107.4 kB / 429.3 MB, free: 1.797 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003356/0.1234, allocations: 258.9 kB / 429.5 MB, free: 1.543 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.1234, allocations: 0 / 429.5 MB, free: 1.543 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.854e-06/0.1234, allocations: 0 / 429.5 MB, free: 1.543 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.117e-05/0.1234, allocations: 3.938 kB / 429.5 MB, free: 1.539 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.000822/0.1242, allocations: 494.5 kB / 430 MB, free: 1.004 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.313e-05/0.1243, allocations: 12.02 kB / 430 MB, free: 0.9922 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.417e-05/0.1243, allocations: 62.73 kB / 430.1 MB, free: 0.9219 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003113/0.1246, allocations: 36.77 kB / 430.1 MB, free: 0.8867 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003258/0.125, allocations: 236 kB / 430.4 MB, free: 0.6172 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.861e-05/0.125, allocations: 24.92 kB / 430.4 MB, free: 0.5938 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.637e-05/0.1251, allocations: 28.38 kB / 430.4 MB, free: 0.5664 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000615/0.1257, allocations: 266.6 kB / 430.7 MB, free: 292 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.444e-05/0.1257, allocations: 3.938 kB / 430.7 MB, free: 288 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.199e-05/0.1257, allocations: 15.98 kB / 430.7 MB, free: 272 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.271e-05/0.1257, allocations: 7.938 kB / 430.7 MB, free: 264 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003185/0.126, allocations: 165.6 kB / 430.9 MB, free: 100 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001331/0.1274, allocations: 0.9518 MB / 431.8 MB, free: 15.08 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002964/0.1277, allocations: 161.4 kB / 432 MB, free: 14.91 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001253/0.1278, allocations: 69.7 kB / 432 MB, free: 14.83 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.325e-05/0.1278, allocations: 4 kB / 432 MB, free: 14.83 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002419/0.1281, allocations: 137 kB / 432.2 MB, free: 14.68 MB / 366.1 MB Notification: Performance of pre-optimization done (n=24): time 6.943e-06/0.1281, allocations: 0 / 432.2 MB, free: 14.68 MB / 366.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004655/0.1285, allocations: 228.4 kB / 432.4 MB, free: 14.45 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.849e-05/0.1286, allocations: 81.11 kB / 432.5 MB, free: 14.35 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001337/0.1287, allocations: 153.7 kB / 432.6 MB, free: 14.19 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.068e-05/0.1288, allocations: 37.7 kB / 432.7 MB, free: 14.15 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001054/0.1289, allocations: 148.8 kB / 432.8 MB, free: 14 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000124/0.129, allocations: 67.5 kB / 432.9 MB, free: 13.93 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001039/0.1291, allocations: 81.47 kB / 433 MB, free: 13.85 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001505/0.1293, allocations: 326.8 kB / 433.3 MB, free: 13.52 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001276/0.1294, allocations: 63.97 kB / 433.3 MB, free: 13.46 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001761/0.1296, allocations: 144.3 kB / 433.5 MB, free: 13.29 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002989/0.1299, allocations: 192.8 kB / 433.7 MB, free: 13.07 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.693e-06/0.1299, allocations: 0 / 433.7 MB, free: 13.07 MB / 366.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0004718/0.1303, allocations: 253.5 kB / 433.9 MB, free: 12.81 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.66e-05/0.1304, allocations: 12.03 kB / 433.9 MB, free: 12.8 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.095e-06/0.1304, allocations: 4 kB / 433.9 MB, free: 12.8 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.575e-05/0.1304, allocations: 4 kB / 433.9 MB, free: 12.79 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001469/0.1305, allocations: 35.86 kB / 434 MB, free: 12.76 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.457e-06/0.1306, allocations: 4 kB / 434 MB, free: 12.75 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001027/0.1307, allocations: 27.78 kB / 434 MB, free: 12.73 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.383e-05/0.1307, allocations: 16 kB / 434 MB, free: 12.71 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 32 ($PRE.transition1.enableFire,$PRE.transition2.enableFire,stateGraphRoot.activeSteps,timer.entryTime,$PRE.timer.entryTime,transition2.enableFire,transition2.localCondition,step.active,step.oldActive,$PRE.step.oldActive,step.newActive,$PRE.step.newActive,step.localActive,$PRE.step.localActive,transition1.t_start,$PRE.transition1.t_start,transition1.fire,transition1.enableFire,initialStep.oldActive,$PRE.initialStep.oldActive,initialStep.newActive,$PRE.initialStep.newActive,initialStep.localActive,$PRE.initialStep.localActive,initialStep.active,$whenCondition1,$whenCondition2,transition2.t_start,$PRE.transition2.t_start,stateGraphRoot.resume,stateGraphRoot.suspend,transition1.condition) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (41): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002137/0.1309, allocations: 165.6 kB / 434.2 MB, free: 12.54 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.552e-05/0.1309, allocations: 19.91 kB / 434.2 MB, free: 12.52 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.902e-05/0.131, allocations: 16.78 kB / 434.2 MB, free: 12.5 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.134e-06/0.131, allocations: 7.984 kB / 434.2 MB, free: 12.49 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.981e-06/0.131, allocations: 0 / 434.2 MB, free: 12.49 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.312e-06/0.131, allocations: 4 kB / 434.2 MB, free: 12.49 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007943/0.1318, allocations: 0.5752 MB / 434.8 MB, free: 11.85 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.1318, allocations: 0 / 434.8 MB, free: 11.85 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.96e-05/0.1319, allocations: 15.98 kB / 434.8 MB, free: 11.83 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.174e-06/0.1319, allocations: 0 / 434.8 MB, free: 11.83 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.739e-05/0.1319, allocations: 15.94 kB / 434.8 MB, free: 11.82 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.683e-06/0.1319, allocations: 0 / 434.8 MB, free: 11.82 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.1319, allocations: 0 / 434.8 MB, free: 11.82 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003255/0.1322, allocations: 283.3 kB / 435.1 MB, free: 11.52 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.067e-05/0.1323, allocations: 85.06 kB / 435.2 MB, free: 11.42 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.688e-05/0.1323, allocations: 7.938 kB / 435.2 MB, free: 11.41 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001061/0.1324, allocations: 11.98 kB / 435.2 MB, free: 11.4 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001123/0.1325, allocations: 19.98 kB / 435.2 MB, free: 11.38 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.312e-05/0.1325, allocations: 8 kB / 435.2 MB, free: 11.38 MB / 366.1 MB Notification: Performance of sorting global known variables: time 6.389e-05/0.1326, allocations: 98.02 kB / 435.3 MB, free: 11.28 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1326, allocations: 0 / 435.3 MB, free: 11.28 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000301/0.1329, allocations: 55.83 kB / 435.4 MB, free: 11.23 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 18 (transition2.t_start,step.localActive,transition1.enableFire,step.active,initialStep.active,$whenCondition2,$whenCondition1,initialStep.localActive,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.newActive,step.oldActive,transition2.localCondition,transition2.enableFire,timer.entryTime,stateGraphRoot.activeSteps) * Number of discrete states: 3 (initialStep.newActive,step.newActive,transition2.t_start) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007343/0.1336, allocations: 0.8145 MB / 436.2 MB, free: 10.38 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0003289/0.1339, allocations: 172 kB / 436.4 MB, free: 10.21 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.1339, allocations: 0 / 436.4 MB, free: 10.21 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001255/0.1341, allocations: 70.62 kB / 436.4 MB, free: 10.15 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003381/0.1344, allocations: 28.59 kB / 436.5 MB, free: 10.12 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002496/0.1369, allocations: 2.054 MB / 438.5 MB, free: 7.922 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004429/0.1373, allocations: 0.7327 MB / 439.3 MB, free: 7.164 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001007/0.1374, allocations: 25.94 kB / 439.3 MB, free: 7.133 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001106/0.1376, allocations: 63.36 kB / 439.3 MB, free: 7.07 MB / 366.1 MB Notification: Performance of SimCode: time 5.11e-07/0.1376, allocations: 3.938 kB / 439.3 MB, free: 7.066 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02789/0.1654, allocations: 3.48 MB / 442.8 MB, free: 3.676 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.27/8.436, allocations: 6.469 kB / 442.8 MB, free: 3.672 MB / 366.1 MB " [Timeout remaining time 651] (rm -f Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3_res.csv --start-time 0 --stop-time 5.5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00109737 Modelica_4_1_0_Modelica_StateGraph_Examples_FirstExample_Variant3.fmu > Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/StateGraph/Examples/FirstExample_Variant3/FirstExample_Variant3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable transition1.enableFire in file Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3_res.csv. Warning: Get data of variable transition1.enableFire from file Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3_res.csv failed! Error: Could not read variable transition2.enableFire in file Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3_res.csv. Warning: Get data of variable transition2.enableFire from file Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 11.210915375995683]