Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001142/0.001142, allocations: 87.62 kB / 21.43 MB, free: 3.133 MB / 18.57 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.005203/0.005203, allocations: 161.6 kB / 24.69 MB, free: 8.883 MB / 18.57 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 0.8526/0.8526, allocations: 158.6 MB / 186.5 MB, free: 3.047 MB / 170.7 MB " [Timeout remaining time 179] 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.StateGraph.Examples.FirstExample,fileNamePrefix="Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample,fileNamePrefix="Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.724e-06/1.724e-06, allocations: 0 / 298.4 MB, free: 3.551 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.194e-05/2.367e-05, allocations: 2.281 kB / 298.4 MB, free: 3.547 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.00236/0.002384, allocations: 1.45 MB / 299.9 MB, free: 2.082 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005308/0.002915, allocations: 247.2 kB / 300.1 MB, free: 1.84 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.655e-05/0.003001, allocations: 7.938 kB / 300.1 MB, free: 1.832 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001066/0.003108, allocations: 23.73 kB / 300.1 MB, free: 1.809 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 3.79e-05/0.003146, allocations: 11.81 kB / 300.1 MB, free: 1.797 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003709/0.003517, allocations: 123.7 kB / 300.3 MB, free: 1.676 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002507/0.003767, allocations: 267.5 kB / 300.5 MB, free: 1.414 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002094/0.003977, allocations: 142.7 kB / 300.7 MB, free: 1.273 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001071/0.004084, allocations: 131.8 kB / 300.8 MB, free: 1.145 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.561e-05/0.004179, allocations: 63.78 kB / 300.9 MB, free: 1.082 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.834e-05/0.004208, allocations: 24 kB / 300.9 MB, free: 1.059 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.624e-05/0.004274, allocations: 35.92 kB / 300.9 MB, free: 1.023 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 4.76e-05/0.004322, allocations: 59.81 kB / 301 MB, free: 0.9648 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001215/0.004443, allocations: 63.83 kB / 301 MB, free: 0.9023 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002282/0.004671, allocations: 255.1 kB / 301.3 MB, free: 0.6523 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.015e-06/0.004674, allocations: 0 / 301.3 MB, free: 0.6523 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.482e-06/0.004676, allocations: 4 kB / 301.3 MB, free: 0.6484 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.227e-06/0.00468, allocations: 0 / 301.3 MB, free: 0.6484 MB / 282.7 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.0004564/0.005136, allocations: 413.1 kB / 301.7 MB, free: 216 kB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.543e-05/0.005172, allocations: 11.98 kB / 301.7 MB, free: 204 kB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.678e-05/0.005219, allocations: 58.72 kB / 301.8 MB, free: 136 kB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.301e-05/0.005262, allocations: 28.78 kB / 301.8 MB, free: 108 kB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1328/0.1381, allocations: 160.1 kB / 301.9 MB, free: 14.47 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.304e-05/0.1381, allocations: 21.64 kB / 302 MB, free: 14.47 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.915e-05/0.1381, allocations: 24.94 kB / 302 MB, free: 14.47 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003194/0.1384, allocations: 241.2 kB / 302.2 MB, free: 14.41 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.021e-05/0.1384, allocations: 192 / 302.2 MB, free: 14.41 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.045e-05/0.1385, allocations: 10.23 kB / 302.2 MB, free: 14.41 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.873e-06/0.1385, allocations: 10.75 kB / 302.2 MB, free: 14.41 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001926/0.1387, allocations: 159 kB / 302.4 MB, free: 14.41 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006262/0.1393, allocations: 0.6172 MB / 303 MB, free: 14.07 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002075/0.1395, allocations: 152.2 kB / 303.2 MB, free: 14.05 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.393e-05/0.1396, allocations: 69.67 kB / 303.2 MB, free: 14.04 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.703e-05/0.1396, allocations: 2.406 kB / 303.2 MB, free: 14.04 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001346/0.1397, allocations: 119.3 kB / 303.4 MB, free: 14 MB / 282.7 MB Notification: Performance of pre-optimization done (n=24): time 1.222e-06/0.1397, allocations: 0 / 303.4 MB, free: 14 MB / 282.7 MB Notification: Performance of matching and sorting (n=24): time 0.0002924/0.14, allocations: 220.6 kB / 303.6 MB, free: 13.95 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.527e-05/0.14, allocations: 60.72 kB / 303.6 MB, free: 13.89 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.812e-05/0.1401, allocations: 150.9 kB / 303.8 MB, free: 13.78 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.532e-05/0.1401, allocations: 37.31 kB / 303.8 MB, free: 13.75 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.942e-05/0.1402, allocations: 128.4 kB / 303.9 MB, free: 13.64 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.732e-05/0.1402, allocations: 67.94 kB / 304 MB, free: 13.61 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.545e-05/0.1403, allocations: 76.62 kB / 304.1 MB, free: 13.57 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 3.825e-05/0.1403, allocations: 330.1 kB / 304.4 MB, free: 13.25 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.891e-05/0.1404, allocations: 62.47 kB / 304.5 MB, free: 13.23 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.172e-05/0.1405, allocations: 125.6 kB / 304.6 MB, free: 13.15 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001479/0.1406, allocations: 175.7 kB / 304.8 MB, free: 13.04 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.1406, allocations: 0 / 304.8 MB, free: 13.04 MB / 282.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0002259/0.1409, allocations: 248.6 kB / 305 MB, free: 12.93 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.413e-05/0.1409, allocations: 10.12 kB / 305 MB, free: 12.93 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.701e-06/0.1409, allocations: 1.891 kB / 305 MB, free: 12.93 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.446e-05/0.1409, allocations: 9.453 kB / 305 MB, free: 12.93 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.133e-05/0.141, allocations: 35.52 kB / 305.1 MB, free: 12.92 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.083e-06/0.141, allocations: 4.547 kB / 305.1 MB, free: 12.92 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.182e-05/0.141, allocations: 28.98 kB / 305.1 MB, free: 12.91 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.118e-05/0.1411, allocations: 13.69 kB / 305.1 MB, free: 12.9 MB / 282.7 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 7.865e-05/0.1411, allocations: 155 kB / 305.3 MB, free: 12.77 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.394e-05/0.1412, allocations: 14.64 kB / 305.3 MB, free: 12.76 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002185/0.1414, allocations: 205 kB / 305.5 MB, free: 12.66 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.266e-06/0.1414, allocations: 2.406 kB / 305.5 MB, free: 12.66 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.187e-06/0.1414, allocations: 5.312 kB / 305.5 MB, free: 12.66 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.248e-06/0.1414, allocations: 1.547 kB / 305.5 MB, free: 12.66 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004039/0.1418, allocations: 0.5184 MB / 306 MB, free: 12.29 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.1418, allocations: 1.125 kB / 306 MB, free: 12.29 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.532e-05/0.1418, allocations: 20.14 kB / 306 MB, free: 12.29 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.805e-06/0.1418, allocations: 1.094 kB / 306 MB, free: 12.29 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.007e-05/0.1418, allocations: 6.766 kB / 306 MB, free: 12.29 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.946e-06/0.1418, allocations: 5.766 kB / 306 MB, free: 12.28 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.163e-06/0.1419, allocations: 0 / 306 MB, free: 12.28 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001741/0.142, allocations: 283.6 kB / 306.3 MB, free: 12.09 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.106e-05/0.142, allocations: 17.53 kB / 306.3 MB, free: 12.08 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.588e-05/0.1421, allocations: 7.766 kB / 306.3 MB, free: 12.08 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.538e-05/0.1421, allocations: 4.766 kB / 306.3 MB, free: 12.08 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.637e-05/0.1422, allocations: 23.31 kB / 306.4 MB, free: 12.07 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.064e-05/0.1422, allocations: 9.312 kB / 306.4 MB, free: 12.07 MB / 282.7 MB Notification: Performance of sorting global known variables: time 2.746e-05/0.1422, allocations: 95.66 kB / 306.5 MB, free: 11.99 MB / 282.7 MB Notification: Performance of sort global known variables: time 5e-08/0.1422, allocations: 0 / 306.5 MB, free: 11.99 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0001984/0.1424, allocations: 49.89 kB / 306.5 MB, free: 11.98 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 19 (transition2.enableFire,step.active,transition1.enableFire,initialStep.active,$cse1,$cse2,$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 (26): * Single equations (assignments): 22 * 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.0003087/0.1427, allocations: 0.8273 MB / 307.3 MB, free: 11.25 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0002142/0.1429, allocations: 174 kB / 307.5 MB, free: 11.2 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.483e-06/0.1429, allocations: 0 / 307.5 MB, free: 11.2 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 8.185e-05/0.143, allocations: 72.8 kB / 307.6 MB, free: 11.18 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002022/0.1432, allocations: 20.67 kB / 307.6 MB, free: 11.17 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001254/0.1445, allocations: 2.035 MB / 309.6 MB, free: 9.555 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.823e-05/0.1445, allocations: 123 kB / 309.8 MB, free: 9.48 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 5.81e-05/0.1446, allocations: 26.83 kB / 309.8 MB, free: 9.477 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.191e-05/0.1447, allocations: 59.8 kB / 309.8 MB, free: 9.438 MB / 282.7 MB Notification: Performance of SimCode: time 6.11e-07/0.1447, allocations: 0 / 309.8 MB, free: 9.438 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01624/0.1609, allocations: 4.452 MB / 314.3 MB, free: 8.109 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.976/7.137, allocations: 17.16 kB / 314.3 MB, free: 8.094 MB / 282.7 MB " [Timeout remaining time 653] (rm -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000998801 Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample.fmu > Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/StateGraph/Examples/FirstExample/FirstExample.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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_3.2.3_Modelica.StateGraph.Examples.FirstExample_res.csv. Warning: Get data of variable transition1.enableFire from file Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_res.csv failed! Error: Could not read variable transition2.enableFire in file Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_res.csv. Warning: Get data of variable transition2.enableFire from file Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.859114462509751]