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.001365/0.001365, allocations: 84.98 kB / 23 MB, free: 1.504 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.001408/0.001408, allocations: 177.4 kB / 26.39 MB, free: 8.004 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 1.012/1.012, allocations: 158.6 MB / 188.3 MB, free: 2.793 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: translateModel(Modelica.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5006,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample") translateModel(Modelica.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5006,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.405e-06/2.405e-06, allocations: 4 kB / 252.2 MB, free: 7.281 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.304e-05/2.545e-05, allocations: 2.312 kB / 252.2 MB, free: 7.277 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.002098/0.002123, allocations: 1.491 MB / 253.7 MB, free: 5.773 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005363/0.002659, allocations: 247.2 kB / 254 MB, free: 5.531 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.273e-05/0.002752, allocations: 0 / 254 MB, free: 5.531 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000162/0.002914, allocations: 31.67 kB / 254 MB, free: 5.5 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 5.433e-05/0.002969, allocations: 19.8 kB / 254 MB, free: 5.48 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004637/0.003432, allocations: 115.8 kB / 254.1 MB, free: 5.367 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003408/0.003773, allocations: 267.5 kB / 254.4 MB, free: 5.105 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002906/0.004064, allocations: 134.8 kB / 254.5 MB, free: 4.973 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001229/0.004186, allocations: 135.8 kB / 254.6 MB, free: 4.84 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001261/0.004313, allocations: 75.75 kB / 254.7 MB, free: 4.766 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 3.476e-05/0.004347, allocations: 27.94 kB / 254.7 MB, free: 4.738 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.3e-05/0.00443, allocations: 24 kB / 254.8 MB, free: 4.715 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 5.864e-05/0.004489, allocations: 63.8 kB / 254.8 MB, free: 4.652 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 5.872e-05/0.004548, allocations: 63.83 kB / 254.9 MB, free: 4.59 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002574/0.004805, allocations: 175.3 kB / 255.1 MB, free: 4.418 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.577e-06/0.004809, allocations: 0 / 255.1 MB, free: 4.418 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.403e-06/0.00481, allocations: 0 / 255.1 MB, free: 4.418 MB / 234.7 MB Notification: Performance of Transformations before backend: time 5.641e-06/0.004816, allocations: 0 / 255.1 MB, free: 4.418 MB / 234.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.000595/0.005411, allocations: 0.5111 MB / 255.6 MB, free: 3.867 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.142e-05/0.005452, allocations: 11.98 kB / 255.6 MB, free: 3.855 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.562e-05/0.005518, allocations: 40.84 kB / 255.6 MB, free: 3.816 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001991/0.005717, allocations: 176.2 kB / 255.8 MB, free: 3.617 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.481e-05/0.005742, allocations: 20.88 kB / 255.8 MB, free: 3.598 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.367e-05/0.005765, allocations: 24.38 kB / 255.8 MB, free: 3.574 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00029/0.006055, allocations: 197.7 kB / 256 MB, free: 3.359 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.187e-05/0.006067, allocations: 192 / 256 MB, free: 3.359 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.699e-05/0.006084, allocations: 8.375 kB / 256 MB, free: 3.348 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.556e-06/0.006093, allocations: 12.38 kB / 256.1 MB, free: 3.336 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.172e-05/0.006185, allocations: 71.31 kB / 256.1 MB, free: 3.27 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006916/0.006876, allocations: 0.6506 MB / 256.8 MB, free: 2.586 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001931/0.007069, allocations: 130.9 kB / 256.9 MB, free: 2.449 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.688e-05/0.007116, allocations: 51.64 kB / 257 MB, free: 2.395 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.847e-05/0.007135, allocations: 4 kB / 257 MB, free: 2.391 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001596/0.007294, allocations: 104.8 kB / 257.1 MB, free: 2.273 MB / 234.7 MB Notification: Performance of pre-optimization done (n=24): time 1.272e-06/0.007295, allocations: 0 / 257.1 MB, free: 2.273 MB / 234.7 MB Notification: Performance of matching and sorting (n=24): time 0.0002499/0.007545, allocations: 174 kB / 257.2 MB, free: 2.098 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.849e-05/0.007584, allocations: 67.33 kB / 257.3 MB, free: 2.02 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001174/0.007701, allocations: 204.6 kB / 257.5 MB, free: 1.805 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 2.397e-05/0.007725, allocations: 41.69 kB / 257.5 MB, free: 1.758 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.173e-05/0.007817, allocations: 175.5 kB / 257.7 MB, free: 1.582 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.047e-05/0.007857, allocations: 71.45 kB / 257.8 MB, free: 1.512 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.142e-05/0.007939, allocations: 83.61 kB / 257.9 MB, free: 1.418 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0001319/0.008071, allocations: 0.5001 MB / 258.4 MB, free: 0.9062 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.427e-05/0.008115, allocations: 32.62 kB / 258.4 MB, free: 0.875 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.404e-05/0.008199, allocations: 118.7 kB / 258.5 MB, free: 0.7266 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001319/0.008331, allocations: 149.4 kB / 258.7 MB, free: 0.5469 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.008333, allocations: 3.938 kB / 258.7 MB, free: 0.543 MB / 234.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0002044/0.008538, allocations: 201.3 kB / 258.9 MB, free: 348 kB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.555e-05/0.008553, allocations: 4.219 kB / 258.9 MB, free: 344 kB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.053e-06/0.00856, allocations: 8 kB / 258.9 MB, free: 336 kB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.397e-05/0.008574, allocations: 3.984 kB / 258.9 MB, free: 332 kB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001072/0.008681, allocations: 39.86 kB / 258.9 MB, free: 292 kB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.963e-06/0.008688, allocations: 7.938 kB / 258.9 MB, free: 284 kB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.386e-05/0.008752, allocations: 23.84 kB / 258.9 MB, free: 260 kB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.005e-05/0.008772, allocations: 12 kB / 259 MB, free: 248 kB / 234.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,transition1.condition,transition2.condition,stateGraphRoot.suspend,stateGraphRoot.resume) * 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.0001114/0.008884, allocations: 184.5 kB / 259.1 MB, free: 52 kB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.357e-05/0.008907, allocations: 23.91 kB / 259.2 MB, free: 28 kB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000208/0.009115, allocations: 166.4 kB / 259.3 MB, free: 15.86 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.306e-06/0.009119, allocations: 8 kB / 259.3 MB, free: 15.85 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.166e-06/0.009122, allocations: 3.938 kB / 259.3 MB, free: 15.84 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.779e-06/0.009126, allocations: 3.984 kB / 259.3 MB, free: 15.84 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004027/0.009529, allocations: 477.6 kB / 259.8 MB, free: 15.34 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/0.009531, allocations: 0 / 259.8 MB, free: 15.34 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.958e-05/0.009581, allocations: 23.86 kB / 259.8 MB, free: 15.32 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.124e-06/0.009583, allocations: 0 / 259.8 MB, free: 15.32 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.426e-06/0.009591, allocations: 8 kB / 259.8 MB, free: 15.31 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.803e-06/0.009593, allocations: 0 / 259.8 MB, free: 15.31 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.009594, allocations: 0 / 259.8 MB, free: 15.31 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002042/0.009799, allocations: 303.8 kB / 260.1 MB, free: 14.99 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.298e-05/0.009812, allocations: 19.78 kB / 260.1 MB, free: 14.97 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.627e-05/0.009828, allocations: 4 kB / 260.2 MB, free: 14.97 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.016e-05/0.009878, allocations: 11.98 kB / 260.2 MB, free: 14.96 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.791e-05/0.009926, allocations: 15.97 kB / 260.2 MB, free: 14.94 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.223e-05/0.009938, allocations: 11.98 kB / 260.2 MB, free: 14.93 MB / 250.7 MB Notification: Performance of sorting global known variables: time 4.004e-05/0.009978, allocations: 127.2 kB / 260.3 MB, free: 14.8 MB / 250.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.009978, allocations: 0 / 260.3 MB, free: 14.8 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002146/0.01019, allocations: 55.88 kB / 260.4 MB, free: 14.75 MB / 250.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.0001268/0.01032, allocations: 111.2 kB / 260.5 MB, free: 14.63 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0001723/0.01049, allocations: 132.1 kB / 260.6 MB, free: 14.5 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.01049, allocations: 0 / 260.6 MB, free: 14.5 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 6.757e-05/0.01056, allocations: 80.09 kB / 260.7 MB, free: 14.42 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002134/0.01077, allocations: 31.86 kB / 260.7 MB, free: 14.39 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004015/0.01118, allocations: 315.2 kB / 261 MB, free: 14.05 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.728e-05/0.01122, allocations: 80.33 kB / 261.1 MB, free: 13.95 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 6.016e-05/0.01128, allocations: 26.39 kB / 261.1 MB, free: 13.92 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.534e-05/0.01138, allocations: 106.2 kB / 261.2 MB, free: 13.82 MB / 250.7 MB Notification: Performance of SimCode: time 6.61e-07/0.01138, allocations: 0 / 261.2 MB, free: 13.82 MB / 250.7 MB Notification: Performance of Templates: time 0.004294/0.01567, allocations: 2.203 MB / 263.4 MB, free: 11.63 MB / 250.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.makefile [Timeout 660] (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 & ./Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.9289957941509783]