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.0009027/0.0009027, allocations: 83.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.005264/0.005264, allocations: 165.6 kB / 24.7 MB, free: 8.887 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.8716/0.8716, allocations: 158.6 MB / 186.5 MB, free: 3.031 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.804e-06/1.804e-06, allocations: 3.938 kB / 298.4 MB, free: 3.648 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.264e-05/2.445e-05, allocations: 6.219 kB / 298.4 MB, free: 3.641 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.002227/0.002252, allocations: 1.451 MB / 299.9 MB, free: 2.176 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006277/0.002879, allocations: 255.2 kB / 300.1 MB, free: 1.926 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001022/0.002981, allocations: 0 / 300.1 MB, free: 1.926 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000122/0.003103, allocations: 27.67 kB / 300.1 MB, free: 1.898 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 4.22e-05/0.003146, allocations: 15.81 kB / 300.2 MB, free: 1.883 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004711/0.003617, allocations: 119.8 kB / 300.3 MB, free: 1.766 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002838/0.003901, allocations: 263.5 kB / 300.5 MB, free: 1.508 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002436/0.004144, allocations: 142.7 kB / 300.7 MB, free: 1.367 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001205/0.004265, allocations: 135.8 kB / 300.8 MB, free: 1.234 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001049/0.00437, allocations: 71.75 kB / 300.9 MB, free: 1.164 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 3.344e-05/0.004403, allocations: 24 kB / 300.9 MB, free: 1.141 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.68e-05/0.00449, allocations: 31.94 kB / 300.9 MB, free: 1.109 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 5.655e-05/0.004546, allocations: 55.81 kB / 301 MB, free: 1.055 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 6.591e-05/0.004612, allocations: 67.81 kB / 301 MB, free: 0.9883 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002742/0.004887, allocations: 255.1 kB / 301.3 MB, free: 0.7383 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.816e-06/0.004889, allocations: 0 / 301.3 MB, free: 0.7383 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.933e-06/0.004891, allocations: 0 / 301.3 MB, free: 0.7383 MB / 282.7 MB Notification: Performance of Transformations before backend: time 6.342e-06/0.004898, allocations: 0 / 301.3 MB, free: 0.7383 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.0005743/0.005472, allocations: 413.1 kB / 301.7 MB, free: 308 kB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.976e-05/0.005532, allocations: 11.98 kB / 301.7 MB, free: 296 kB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.682e-05/0.005589, allocations: 58.72 kB / 301.8 MB, free: 228 kB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.597e-05/0.005645, allocations: 24.8 kB / 301.8 MB, free: 204 kB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003194/0.005964, allocations: 161.6 kB / 301.9 MB, free: 16 kB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.1392/0.1451, allocations: 18.8 kB / 302 MB, free: 15.91 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.531e-05/0.1452, allocations: 25.28 kB / 302 MB, free: 15.91 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004015/0.1456, allocations: 242.2 kB / 302.2 MB, free: 15.85 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.035e-05/0.1456, allocations: 3.188 kB / 302.2 MB, free: 15.85 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.988e-05/0.1456, allocations: 12.23 kB / 302.2 MB, free: 15.85 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.328e-06/0.1457, allocations: 8.688 kB / 302.3 MB, free: 15.85 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002174/0.1459, allocations: 158.2 kB / 302.4 MB, free: 15.84 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00079/0.1467, allocations: 0.6176 MB / 303 MB, free: 15.39 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002232/0.1469, allocations: 156.1 kB / 303.2 MB, free: 15.32 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.753e-05/0.147, allocations: 67.23 kB / 303.2 MB, free: 15.29 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.015e-05/0.147, allocations: 5.625 kB / 303.2 MB, free: 15.29 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001547/0.1471, allocations: 114.8 kB / 303.4 MB, free: 15.22 MB / 282.7 MB Notification: Performance of pre-optimization done (n=24): time 3.035e-06/0.1471, allocations: 0 / 303.4 MB, free: 15.22 MB / 282.7 MB Notification: Performance of matching and sorting (n=24): time 0.0003376/0.1475, allocations: 220.8 kB / 303.6 MB, free: 15.12 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.376e-05/0.1475, allocations: 56.3 kB / 303.6 MB, free: 15.06 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.887e-05/0.1476, allocations: 152.8 kB / 303.8 MB, free: 14.93 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.921e-05/0.1476, allocations: 41.03 kB / 303.8 MB, free: 14.89 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.283e-05/0.1477, allocations: 136 kB / 304 MB, free: 14.78 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.61e-05/0.1477, allocations: 68.03 kB / 304 MB, free: 14.73 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.566e-05/0.1478, allocations: 77.11 kB / 304.1 MB, free: 14.69 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 3.9e-05/0.1478, allocations: 327.2 kB / 304.4 MB, free: 14.37 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.958e-05/0.1479, allocations: 66.69 kB / 304.5 MB, free: 14.35 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.784e-05/0.148, allocations: 127 kB / 304.6 MB, free: 14.26 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001601/0.1482, allocations: 172.1 kB / 304.8 MB, free: 14.14 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.315e-06/0.1482, allocations: 0 / 304.8 MB, free: 14.14 MB / 282.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0002441/0.1484, allocations: 242.5 kB / 305 MB, free: 14.03 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.625e-05/0.1484, allocations: 6.625 kB / 305 MB, free: 14.03 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.931e-06/0.1484, allocations: 2 kB / 305 MB, free: 14.03 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.511e-05/0.1485, allocations: 4.109 kB / 305 MB, free: 14.03 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.854e-05/0.1486, allocations: 34.95 kB / 305.1 MB, free: 14.02 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.715e-06/0.1486, allocations: 7.688 kB / 305.1 MB, free: 14.02 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.793e-05/0.1486, allocations: 33.27 kB / 305.1 MB, free: 14 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.571e-05/0.1487, allocations: 13.8 kB / 305.1 MB, free: 14 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 8.86e-05/0.1488, allocations: 158.9 kB / 305.3 MB, free: 13.86 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.566e-05/0.1488, allocations: 18.83 kB / 305.3 MB, free: 13.85 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002347/0.149, allocations: 192.8 kB / 305.5 MB, free: 13.76 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.007e-06/0.149, allocations: 2.312 kB / 305.5 MB, free: 13.76 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.97e-06/0.149, allocations: 1.766 kB / 305.5 MB, free: 13.76 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.869e-06/0.149, allocations: 5.203 kB / 305.5 MB, free: 13.76 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004476/0.1495, allocations: 0.5155 MB / 306 MB, free: 13.39 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.805e-06/0.1495, allocations: 9.906 kB / 306 MB, free: 13.39 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.846e-05/0.1495, allocations: 18.55 kB / 306 MB, free: 13.38 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.906e-06/0.1495, allocations: 1.188 kB / 306 MB, free: 13.38 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.09e-05/0.1495, allocations: 7.5 kB / 306 MB, free: 13.38 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.625e-06/0.1495, allocations: 2 kB / 306 MB, free: 13.38 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/0.1495, allocations: 0 / 306 MB, free: 13.38 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001904/0.1497, allocations: 287.2 kB / 306.3 MB, free: 13.19 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.552e-05/0.1497, allocations: 17.92 kB / 306.3 MB, free: 13.18 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.864e-05/0.1498, allocations: 6.391 kB / 306.3 MB, free: 13.18 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.984e-05/0.1498, allocations: 9.969 kB / 306.3 MB, free: 13.17 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.591e-05/0.1499, allocations: 23.06 kB / 306.4 MB, free: 13.17 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.184e-05/0.1499, allocations: 6.094 kB / 306.4 MB, free: 13.17 MB / 282.7 MB Notification: Performance of sorting global known variables: time 2.965e-05/0.1499, allocations: 99 kB / 306.5 MB, free: 13.09 MB / 282.7 MB Notification: Performance of sort global known variables: time 7.1e-08/0.1499, allocations: 0 / 306.5 MB, free: 13.09 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0002261/0.1501, allocations: 51.7 kB / 306.5 MB, free: 13.07 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.0003432/0.1505, allocations: 0.8185 MB / 307.3 MB, free: 12.35 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0002383/0.1507, allocations: 170.8 kB / 307.5 MB, free: 12.3 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.1507, allocations: 3.938 kB / 307.5 MB, free: 12.29 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 8.955e-05/0.1508, allocations: 73.75 kB / 307.6 MB, free: 12.27 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002135/0.151, allocations: 23.92 kB / 307.6 MB, free: 12.26 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001382/0.1524, allocations: 2.031 MB / 309.6 MB, free: 10.65 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.676e-05/0.1525, allocations: 127.7 kB / 309.8 MB, free: 10.57 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 6.621e-05/0.1526, allocations: 26.7 kB / 309.8 MB, free: 10.57 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.081e-05/0.1526, allocations: 60.64 kB / 309.8 MB, free: 10.53 MB / 282.7 MB Notification: Performance of SimCode: time 6.61e-07/0.1526, allocations: 0 / 309.8 MB, free: 10.53 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01856/0.1712, allocations: 4.465 MB / 314.3 MB, free: 9.184 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.707/6.878, allocations: 16.88 kB / 314.3 MB, free: 9.168 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample_fmu --startTime=0 --stopTime=5 --stepSize=0.000998801 --timeout=50 --tolerance=1e-06 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.mat","/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] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.484982120804489]