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.001311/0.001311, allocations: 128.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.001435/0.001435, 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.411/1.411, allocations: 230.6 MB / 254.1 MB, free: 15.07 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.001467/0.001467, allocations: 55.91 kB / 373 MB, free: 10.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1017/0.1031, allocations: 53.33 MB / 426.3 MB, free: 4.781 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.002646/0.1058, allocations: 1.496 MB / 427.8 MB, free: 3.273 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006263/0.1064, allocations: 283.2 kB / 428.1 MB, free: 2.996 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.288e-05/0.1065, allocations: 11.88 kB / 428.1 MB, free: 2.984 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000123/0.1066, allocations: 23.75 kB / 428.1 MB, free: 2.961 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.276e-05/0.1067, allocations: 19.8 kB / 428.1 MB, free: 2.941 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003657/0.1071, allocations: 107.8 kB / 428.2 MB, free: 2.836 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003176/0.1074, allocations: 255.6 kB / 428.5 MB, free: 2.586 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000266/0.1076, allocations: 134.4 kB / 428.6 MB, free: 2.449 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001059/0.1077, allocations: 99.69 kB / 428.7 MB, free: 2.352 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001442/0.1079, allocations: 91.61 kB / 428.8 MB, free: 2.262 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.44e-05/0.1079, allocations: 23.94 kB / 428.8 MB, free: 2.238 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.506e-05/0.108, allocations: 35.97 kB / 428.8 MB, free: 2.203 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.079e-05/0.1081, allocations: 51.84 kB / 428.9 MB, free: 2.152 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001043/0.1082, allocations: 95.52 kB / 429 MB, free: 2.059 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003063/0.1085, allocations: 250.9 kB / 429.2 MB, free: 1.812 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.225e-05/0.1085, allocations: 4 kB / 429.2 MB, free: 1.809 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.974e-06/0.1085, allocations: 0 / 429.2 MB, free: 1.809 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.532e-06/0.1085, allocations: 0 / 429.2 MB, free: 1.809 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.0007024/0.1092, allocations: 490.3 kB / 429.7 MB, free: 1.277 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.882e-05/0.1092, allocations: 8.031 kB / 429.7 MB, free: 1.27 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.288e-05/0.1093, allocations: 58.72 kB / 429.8 MB, free: 1.203 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002519/0.1096, allocations: 32.83 kB / 429.8 MB, free: 1.172 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002964/0.1099, allocations: 228 kB / 430 MB, free: 0.9102 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.797e-05/0.1099, allocations: 24.92 kB / 430.1 MB, free: 0.8867 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.204e-05/0.1099, allocations: 24.38 kB / 430.1 MB, free: 0.8633 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004297/0.1104, allocations: 244 kB / 430.3 MB, free: 0.6172 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.302e-05/0.1104, allocations: 3.938 kB / 430.3 MB, free: 0.6133 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.232e-05/0.1104, allocations: 4 kB / 430.3 MB, free: 0.6094 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.947e-06/0.1104, allocations: 8 kB / 430.3 MB, free: 0.6016 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002891/0.1107, allocations: 157.6 kB / 430.5 MB, free: 456 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009826/0.1117, allocations: 0.6974 MB / 431.2 MB, free: 15.7 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002892/0.112, allocations: 158.8 kB / 431.3 MB, free: 15.53 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001222/0.1121, allocations: 68.83 kB / 431.4 MB, free: 15.46 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.329e-05/0.1121, allocations: 3.938 kB / 431.4 MB, free: 15.46 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001926/0.1123, allocations: 111.4 kB / 431.5 MB, free: 15.34 MB / 366.1 MB Notification: Performance of pre-optimization done (n=24): time 1.573e-06/0.1123, allocations: 0 / 431.5 MB, free: 15.34 MB / 366.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004204/0.1127, allocations: 224.4 kB / 431.7 MB, free: 15.11 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.775e-05/0.1128, allocations: 55.41 kB / 431.8 MB, free: 15.05 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001303/0.1129, allocations: 153.7 kB / 432 MB, free: 14.89 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.906e-05/0.1129, allocations: 33.7 kB / 432 MB, free: 14.85 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.454e-05/0.113, allocations: 136.8 kB / 432.1 MB, free: 14.71 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.32e-05/0.1131, allocations: 59.53 kB / 432.2 MB, free: 14.66 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.509e-05/0.1132, allocations: 74.02 kB / 432.2 MB, free: 14.57 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001431/0.1133, allocations: 322.8 kB / 432.6 MB, free: 14.25 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000118/0.1134, allocations: 76.56 kB / 432.6 MB, free: 14.18 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001586/0.1136, allocations: 124.1 kB / 432.8 MB, free: 14.03 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002476/0.1138, allocations: 179.1 kB / 432.9 MB, free: 13.83 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.993e-06/0.1138, allocations: 0 / 432.9 MB, free: 13.83 MB / 366.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003758/0.1142, allocations: 245.4 kB / 433.2 MB, free: 13.59 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.32e-05/0.1142, allocations: 4 kB / 433.2 MB, free: 13.58 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.799e-06/0.1142, allocations: 4 kB / 433.2 MB, free: 13.58 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.532e-05/0.1143, allocations: 4 kB / 433.2 MB, free: 13.57 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001289/0.1144, allocations: 31.92 kB / 433.2 MB, free: 13.54 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.552e-06/0.1144, allocations: 0 / 433.2 MB, free: 13.54 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.305e-05/0.1145, allocations: 31.77 kB / 433.2 MB, free: 13.51 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.665e-05/0.1145, allocations: 12 kB / 433.3 MB, free: 13.5 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.0001475/0.1146, allocations: 161.8 kB / 433.4 MB, free: 13.33 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.192e-05/0.1147, allocations: 7.953 kB / 433.4 MB, free: 13.32 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.136e-05/0.1147, allocations: 28.77 kB / 433.5 MB, free: 13.3 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.278e-06/0.1147, allocations: 4 kB / 433.5 MB, free: 13.29 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/0.1147, allocations: 0 / 433.5 MB, free: 13.29 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.656e-06/0.1147, allocations: 3.938 kB / 433.5 MB, free: 13.29 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006926/0.1154, allocations: 0.5452 MB / 434 MB, free: 12.69 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.422e-06/0.1154, allocations: 0 / 434 MB, free: 12.69 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.365e-05/0.1155, allocations: 15.98 kB / 434 MB, free: 12.67 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.094e-06/0.1155, allocations: 4 kB / 434 MB, free: 12.67 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.329e-05/0.1155, allocations: 4 kB / 434 MB, free: 12.66 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.099e-06/0.1155, allocations: 8 kB / 434 MB, free: 12.66 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.1155, allocations: 0 / 434 MB, free: 12.66 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003082/0.1158, allocations: 275.1 kB / 434.3 MB, free: 12.38 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.217e-05/0.1159, allocations: 92.98 kB / 434.4 MB, free: 12.27 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.292e-05/0.1159, allocations: 4 kB / 434.4 MB, free: 12.26 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.233e-05/0.116, allocations: 4 kB / 434.4 MB, free: 12.26 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.401e-05/0.1161, allocations: 27.91 kB / 434.4 MB, free: 12.23 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.592e-05/0.1161, allocations: 12 kB / 434.4 MB, free: 12.22 MB / 366.1 MB Notification: Performance of sorting global known variables: time 5.746e-05/0.1161, allocations: 95.27 kB / 434.5 MB, free: 12.12 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1161, allocations: 0 / 434.5 MB, free: 12.12 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000273/0.1164, allocations: 51.84 kB / 434.6 MB, free: 12.07 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.0006002/0.117, allocations: 0.7982 MB / 435.4 MB, free: 11.25 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0003133/0.1173, allocations: 168.1 kB / 435.5 MB, free: 11.09 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.1173, allocations: 0 / 435.5 MB, free: 11.09 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002018/0.1175, allocations: 79.75 kB / 435.6 MB, free: 11.01 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002846/0.1178, allocations: 26.06 kB / 435.7 MB, free: 10.98 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002172/0.12, allocations: 1.994 MB / 437.6 MB, free: 8.863 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003497/0.1203, allocations: 0.7284 MB / 438.4 MB, free: 8.109 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 6.849e-05/0.1204, allocations: 25.94 kB / 438.4 MB, free: 8.086 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001007/0.1205, allocations: 55.42 kB / 438.5 MB, free: 8.031 MB / 366.1 MB Notification: Performance of SimCode: time 2.7e-07/0.1205, allocations: 0 / 438.5 MB, free: 8.031 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02542/0.1459, allocations: 3.405 MB / 441.9 MB, free: 4.695 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.789/7.935, allocations: 8.578 kB / 441.9 MB, free: 4.691 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_StateGraph_Examples_FirstExample_fmu --startTime=0 --stopTime=5.5 --stepSize=0.00109737 --timeout=50 --tolerance=1e-06 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.mat","/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] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 10.406835093861446]