Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample.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.001237/0.001237, allocations: 124.5 kB / 17.79 MB, free: 5.227 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.001371/0.001371, allocations: 207.2 kB / 20.75 MB, free: 2.273 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.532/1.532, allocations: 230.6 MB / 254.1 MB, free: 15.09 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,fileNamePrefix="Modelica_4_1_0_Modelica_StateGraph_Examples_FirstExample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample,fileNamePrefix="Modelica_4_1_0_Modelica_StateGraph_Examples_FirstExample",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00153/0.00153, allocations: 51.92 kB / 373 MB, free: 10.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1129/0.1144, allocations: 53.33 MB / 426.3 MB, free: 4.812 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.003218/0.1176, allocations: 1.496 MB / 427.8 MB, free: 3.305 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008316/0.1185, allocations: 287.2 kB / 428.1 MB, free: 3.023 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001106/0.1186, allocations: 3.938 kB / 428.1 MB, free: 3.02 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001729/0.1188, allocations: 23.73 kB / 428.1 MB, free: 2.996 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.02e-05/0.1188, allocations: 15.81 kB / 428.1 MB, free: 2.98 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000457/0.1193, allocations: 119.8 kB / 428.2 MB, free: 2.863 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004125/0.1197, allocations: 255.6 kB / 428.5 MB, free: 2.613 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002639/0.1199, allocations: 134.4 kB / 428.6 MB, free: 2.477 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001133/0.1201, allocations: 91.7 kB / 428.7 MB, free: 2.387 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001391/0.1202, allocations: 91.59 kB / 428.8 MB, free: 2.297 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.791e-05/0.1203, allocations: 24 kB / 428.8 MB, free: 2.273 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.158e-05/0.1203, allocations: 35.92 kB / 428.8 MB, free: 2.238 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.886e-05/0.1204, allocations: 51.84 kB / 428.9 MB, free: 2.188 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001048/0.1205, allocations: 95.52 kB / 429 MB, free: 2.094 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003036/0.1208, allocations: 246.9 kB / 429.2 MB, free: 1.852 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.64e-06/0.1208, allocations: 7.938 kB / 429.2 MB, free: 1.844 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.754e-06/0.1208, allocations: 4 kB / 429.2 MB, free: 1.84 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.262e-06/0.1208, allocations: 0 / 429.2 MB, free: 1.84 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: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.0007551/0.1216, allocations: 490.3 kB / 429.7 MB, free: 1.309 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.626e-05/0.1216, allocations: 8.031 kB / 429.7 MB, free: 1.301 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.063e-05/0.1217, allocations: 54.73 kB / 429.8 MB, free: 1.238 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002637/0.122, allocations: 32.81 kB / 429.8 MB, free: 1.207 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003951/0.1224, allocations: 232 kB / 430 MB, free: 0.9414 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.541e-05/0.1224, allocations: 20.94 kB / 430.1 MB, free: 0.9219 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.605e-05/0.1225, allocations: 28.38 kB / 430.1 MB, free: 0.8945 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004351/0.1229, allocations: 240 kB / 430.3 MB, free: 0.6523 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.488e-05/0.1229, allocations: 7.938 kB / 430.3 MB, free: 0.6445 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.437e-05/0.1229, allocations: 8 kB / 430.3 MB, free: 0.6367 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.835e-06/0.1229, allocations: 4 kB / 430.3 MB, free: 0.6328 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000342/0.1233, allocations: 157.6 kB / 430.5 MB, free: 488 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001021/0.1243, allocations: 0.6974 MB / 431.2 MB, free: 15.73 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002877/0.1246, allocations: 150.8 kB / 431.3 MB, free: 15.57 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001159/0.1247, allocations: 76.77 kB / 431.4 MB, free: 15.49 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.81e-05/0.1247, allocations: 3.938 kB / 431.4 MB, free: 15.49 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002218/0.125, allocations: 119.3 kB / 431.5 MB, free: 15.36 MB / 366.1 MB Notification: Performance of pre-optimization done (n=24): time 1.333e-06/0.125, allocations: 0 / 431.5 MB, free: 15.36 MB / 366.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004207/0.1254, allocations: 216.2 kB / 431.7 MB, free: 15.14 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.94e-05/0.1254, allocations: 59.41 kB / 431.8 MB, free: 15.07 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001335/0.1256, allocations: 149.6 kB / 431.9 MB, free: 14.92 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.503e-05/0.1256, allocations: 37.7 kB / 432 MB, free: 14.88 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.382e-05/0.1257, allocations: 132.8 kB / 432.1 MB, free: 14.75 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.211e-05/0.1258, allocations: 63.53 kB / 432.2 MB, free: 14.68 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.472e-05/0.1259, allocations: 74.02 kB / 432.2 MB, free: 14.6 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001415/0.126, allocations: 326.8 kB / 432.6 MB, free: 14.27 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001165/0.1261, allocations: 60.62 kB / 432.6 MB, free: 14.21 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001532/0.1263, allocations: 124.1 kB / 432.7 MB, free: 14.07 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002696/0.1265, allocations: 179.1 kB / 432.9 MB, free: 13.87 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.958e-06/0.1265, allocations: 4 kB / 432.9 MB, free: 13.87 MB / 366.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003562/0.1269, allocations: 245.3 kB / 433.2 MB, free: 13.62 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.38e-05/0.1269, allocations: 4 kB / 433.2 MB, free: 13.62 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.294e-06/0.1269, allocations: 4 kB / 433.2 MB, free: 13.61 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.517e-05/0.1269, allocations: 4 kB / 433.2 MB, free: 13.61 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001384/0.1271, allocations: 27.92 kB / 433.2 MB, free: 13.58 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.247e-06/0.1271, allocations: 4 kB / 433.2 MB, free: 13.58 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001033/0.1272, allocations: 28 kB / 433.2 MB, free: 13.55 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.953e-05/0.1272, allocations: 16 kB / 433.3 MB, free: 13.54 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 31 ($PRE.transition1.enableFire,$PRE.transition2.enableFire,stateGraphRoot.activeSteps,transition2.t_start,$PRE.transition2.t_start,transition2.fire,transition2.enableFire,step.oldActive,$PRE.step.oldActive,step.newActive,$PRE.step.newActive,step.localActive,$PRE.step.localActive,step.active,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,stateGraphRoot.resume,stateGraphRoot.suspend,transition2.condition,transition1.condition) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 39 * 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.0001808/0.1274, allocations: 161.7 kB / 433.4 MB, free: 13.37 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.062e-05/0.1274, allocations: 11.89 kB / 433.4 MB, free: 13.36 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.965e-05/0.1275, allocations: 20.84 kB / 433.4 MB, free: 13.34 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.164e-06/0.1275, allocations: 3.938 kB / 433.4 MB, free: 13.33 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.388e-06/0.1275, allocations: 0 / 433.4 MB, free: 13.33 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.5e-06/0.1275, allocations: 11.92 kB / 433.5 MB, free: 13.32 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007258/0.1282, allocations: 0.5491 MB / 434 MB, free: 12.71 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.807e-06/0.1282, allocations: 4 kB / 434 MB, free: 12.71 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.947e-05/0.1283, allocations: 12 kB / 434 MB, free: 12.7 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.821e-06/0.1283, allocations: 4 kB / 434 MB, free: 12.7 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.505e-05/0.1283, allocations: 7.984 kB / 434 MB, free: 12.69 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/0.1283, allocations: 0 / 434 MB, free: 12.69 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/0.1283, allocations: 0 / 434 MB, free: 12.69 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003035/0.1286, allocations: 275.3 kB / 434.3 MB, free: 12.41 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.513e-05/0.1287, allocations: 93 kB / 434.4 MB, free: 12.3 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.421e-05/0.1287, allocations: 8 kB / 434.4 MB, free: 12.29 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.422e-05/0.1288, allocations: 7.984 kB / 434.4 MB, free: 12.28 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.098e-05/0.1288, allocations: 23.91 kB / 434.4 MB, free: 12.26 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.392e-05/0.1288, allocations: 8 kB / 434.4 MB, free: 12.25 MB / 366.1 MB Notification: Performance of sorting global known variables: time 8.717e-05/0.1289, allocations: 99.27 kB / 434.5 MB, free: 12.15 MB / 366.1 MB Notification: Performance of sort global known variables: time 6e-08/0.1289, allocations: 0 / 434.5 MB, free: 12.15 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002865/0.1292, allocations: 51.84 kB / 434.6 MB, free: 12.1 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 17 (transition2.enableFire,step.active,transition1.enableFire,initialStep.active,$whenCondition2,$whenCondition1,initialStep.localActive,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.localActive,step.newActive,step.oldActive,transition2.fire,transition2.t_start,stateGraphRoot.activeSteps) * Number of discrete states: 2 (initialStep.newActive,step.newActive) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.0006395/0.1299, allocations: 0.7982 MB / 435.4 MB, free: 11.28 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.000312/0.1302, allocations: 168.1 kB / 435.5 MB, free: 11.11 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/0.1302, allocations: 0 / 435.5 MB, free: 11.11 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001237/0.1303, allocations: 70.83 kB / 435.6 MB, free: 11.05 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002696/0.1306, allocations: 28.36 kB / 435.6 MB, free: 11.02 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002278/0.1328, allocations: 1.995 MB / 437.6 MB, free: 8.895 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003444/0.1332, allocations: 0.7284 MB / 438.4 MB, free: 8.141 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001051/0.1333, allocations: 17.95 kB / 438.4 MB, free: 8.125 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001039/0.1334, allocations: 59.59 kB / 438.4 MB, free: 8.066 MB / 366.1 MB Notification: Performance of SimCode: time 3.01e-07/0.1334, allocations: 0 / 438.4 MB, free: 8.066 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02596/0.1594, allocations: 3.414 MB / 441.9 MB, free: 4.727 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.037/8.196, allocations: 4 kB / 441.9 MB, free: 4.723 MB / 366.1 MB " [Timeout remaining time 652] (rm -f Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_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.fmu > Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/StateGraph/Examples/FirstExample/FirstExample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample.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_res.csv. Warning: Get data of variable transition1.enableFire from file Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_res.csv failed! Error: Could not read variable transition2.enableFire in file Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_res.csv. Warning: Get data of variable transition2.enableFire from file Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 11.067351936988416]