Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.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.0009268/0.0009268, allocations: 80.8 kB / 22.29 MB, free: 2.207 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.00127/0.00127, allocations: 169.6 kB / 25.7 MB, free: 8.402 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.9555/0.9555, allocations: 158.6 MB / 187.6 MB, free: 2.785 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_Variant3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5009,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3") translateModel(Modelica.StateGraph.Examples.FirstExample_Variant3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5009,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.813e-06/1.813e-06, allocations: 0 / 251.5 MB, free: 7.316 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.642e-05/2.823e-05, allocations: 10.25 kB / 251.5 MB, free: 7.305 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.003765/0.003793, allocations: 1.704 MB / 253.2 MB, free: 5.586 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.000778/0.004571, allocations: 279 kB / 253.5 MB, free: 5.312 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001231/0.004694, allocations: 7.938 kB / 253.5 MB, free: 5.305 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001418/0.004836, allocations: 23.73 kB / 253.5 MB, free: 5.281 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 8.075e-05/0.004917, allocations: 19.75 kB / 253.5 MB, free: 5.262 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005477/0.005465, allocations: 123.8 kB / 253.7 MB, free: 5.141 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003908/0.005855, allocations: 275.4 kB / 253.9 MB, free: 4.871 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000295/0.00615, allocations: 160.1 kB / 254.1 MB, free: 4.719 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001608/0.006311, allocations: 131.8 kB / 254.2 MB, free: 4.59 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001409/0.006452, allocations: 71.77 kB / 254.3 MB, free: 4.52 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 4.408e-05/0.006496, allocations: 28 kB / 254.3 MB, free: 4.492 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.874e-05/0.006585, allocations: 27.98 kB / 254.3 MB, free: 4.465 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 7.449e-05/0.006659, allocations: 59.77 kB / 254.4 MB, free: 4.406 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 7.926e-05/0.006739, allocations: 71.8 kB / 254.5 MB, free: 4.336 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002838/0.007022, allocations: 187.2 kB / 254.6 MB, free: 4.152 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.725e-06/0.007025, allocations: 0 / 254.6 MB, free: 4.152 MB / 234.7 MB Notification: Performance of FrontEnd: time 8.52e-07/0.007026, allocations: 0 / 254.6 MB, free: 4.152 MB / 234.7 MB Notification: Performance of Transformations before backend: time 4.399e-06/0.00703, allocations: 0 / 254.6 MB, free: 4.152 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: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.0005088/0.007539, allocations: 391.3 kB / 255 MB, free: 3.734 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.419e-05/0.007583, allocations: 11.98 kB / 255 MB, free: 3.723 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.097e-05/0.007654, allocations: 40.91 kB / 255.1 MB, free: 3.684 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002158/0.00787, allocations: 153.5 kB / 255.2 MB, free: 3.508 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.297e-05/0.007903, allocations: 24.88 kB / 255.2 MB, free: 3.484 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.85e-05/0.007942, allocations: 24.38 kB / 255.3 MB, free: 3.461 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004233/0.008365, allocations: 226.5 kB / 255.5 MB, free: 3.215 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.234e-05/0.008377, allocations: 4.188 kB / 255.5 MB, free: 3.211 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.125e-05/0.008398, allocations: 8.375 kB / 255.5 MB, free: 3.203 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.288e-05/0.008411, allocations: 8.375 kB / 255.5 MB, free: 3.195 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001441/0.008555, allocations: 75.27 kB / 255.6 MB, free: 3.125 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000907/0.009462, allocations: 0.7349 MB / 256.3 MB, free: 2.359 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000183/0.009645, allocations: 90.52 kB / 256.4 MB, free: 2.262 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.142e-05/0.009707, allocations: 44.78 kB / 256.5 MB, free: 2.215 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.657e-05/0.009723, allocations: 0 / 256.5 MB, free: 2.215 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001288/0.009852, allocations: 99.12 kB / 256.6 MB, free: 2.105 MB / 234.7 MB Notification: Performance of pre-optimization done (n=23): time 1.743e-06/0.009854, allocations: 0 / 256.6 MB, free: 2.105 MB / 234.7 MB Notification: Performance of matching and sorting (n=23): time 0.0002354/0.01009, allocations: 134 kB / 256.7 MB, free: 1.969 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.143e-05/0.01013, allocations: 51.41 kB / 256.7 MB, free: 1.906 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001198/0.01025, allocations: 173.9 kB / 256.9 MB, free: 1.727 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 3.305e-05/0.01028, allocations: 41.7 kB / 256.9 MB, free: 1.68 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.932e-05/0.01037, allocations: 140.7 kB / 257.1 MB, free: 1.535 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.365e-05/0.01043, allocations: 59.58 kB / 257.1 MB, free: 1.477 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001061/0.01053, allocations: 81.94 kB / 257.2 MB, free: 1.387 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0001071/0.01064, allocations: 326.8 kB / 257.5 MB, free: 1.059 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.633e-05/0.0107, allocations: 28.64 kB / 257.6 MB, free: 1.031 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001108/0.01081, allocations: 105.8 kB / 257.7 MB, free: 0.8984 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001813/0.01099, allocations: 156.4 kB / 257.8 MB, free: 0.7148 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.916e-06/0.01099, allocations: 0 / 257.8 MB, free: 0.7148 MB / 234.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0002458/0.01124, allocations: 173.6 kB / 258 MB, free: 0.5391 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.636e-05/0.01125, allocations: 11.97 kB / 258 MB, free: 0.5273 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.003e-05/0.01126, allocations: 4 kB / 258 MB, free: 0.5234 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.292e-05/0.01128, allocations: 4 kB / 258 MB, free: 0.5195 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001188/0.0114, allocations: 31.92 kB / 258 MB, free: 500 kB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.618e-06/0.0114, allocations: 7.984 kB / 258 MB, free: 492 kB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.773e-05/0.0115, allocations: 31.78 kB / 258.1 MB, free: 460 kB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.275e-05/0.01153, allocations: 8 kB / 258.1 MB, free: 452 kB / 234.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 30 ($PRE.transition1.enableFire,$PRE.transition2.enableFire,stateGraphRoot.activeSteps,timer.entryTime,$PRE.timer.entryTime,transition2.enableFire,transition2.localCondition,step.active,step.oldActive,$PRE.step.oldActive,step.newActive,$PRE.step.newActive,step.localActive,$PRE.step.localActive,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,stateGraphRoot.suspend,stateGraphRoot.resume) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 40 * 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.0001088/0.01163, allocations: 136.4 kB / 258.2 MB, free: 308 kB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.048e-05/0.01166, allocations: 19.92 kB / 258.2 MB, free: 288 kB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001937/0.01186, allocations: 126.4 kB / 258.4 MB, free: 156 kB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.499e-06/0.01186, allocations: 4 kB / 258.4 MB, free: 152 kB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.085e-06/0.01187, allocations: 7.938 kB / 258.4 MB, free: 144 kB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.191e-06/0.01187, allocations: 3.984 kB / 258.4 MB, free: 140 kB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00049/0.01236, allocations: 377.5 kB / 258.7 MB, free: 15.74 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.244e-06/0.01236, allocations: 0 / 258.7 MB, free: 15.74 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.75e-05/0.01242, allocations: 15.98 kB / 258.8 MB, free: 15.72 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.126e-06/0.01242, allocations: 3.938 kB / 258.8 MB, free: 15.72 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.259e-05/0.01244, allocations: 8 kB / 258.8 MB, free: 15.71 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.074e-06/0.01244, allocations: 0 / 258.8 MB, free: 15.71 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.01244, allocations: 4 kB / 258.8 MB, free: 15.71 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002466/0.01269, allocations: 211.3 kB / 259 MB, free: 15.48 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.104e-05/0.01271, allocations: 19.84 kB / 259 MB, free: 15.46 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.157e-05/0.01273, allocations: 4 kB / 259 MB, free: 15.46 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.441e-05/0.0128, allocations: 4 kB / 259 MB, free: 15.46 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.783e-05/0.01286, allocations: 19.95 kB / 259 MB, free: 15.44 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.219e-05/0.01287, allocations: 4 kB / 259 MB, free: 15.43 MB / 250.7 MB Notification: Performance of sorting global known variables: time 2.862e-05/0.0129, allocations: 24.84 kB / 259.1 MB, free: 15.41 MB / 250.7 MB Notification: Performance of sort global known variables: time 8e-08/0.0129, allocations: 0 / 259.1 MB, free: 15.41 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0003245/0.01323, allocations: 51.89 kB / 259.1 MB, free: 15.36 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 (step.localActive,transition1.enableFire,step.active,initialStep.active,$cse1,$cse2,$whenCondition2,$whenCondition1,initialStep.localActive,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.newActive,step.oldActive,transition2.localCondition,transition2.enableFire,timer.entryTime,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 (25): * Single equations (assignments): 21 * 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.0001279/0.01336, allocations: 88.36 kB / 259.2 MB, free: 15.26 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0002128/0.01357, allocations: 129.9 kB / 259.3 MB, free: 15.13 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 4.799e-06/0.01357, allocations: 0 / 259.3 MB, free: 15.13 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 9.263e-05/0.01367, allocations: 68.62 kB / 259.4 MB, free: 15.06 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002215/0.01389, allocations: 23.94 kB / 259.4 MB, free: 15.04 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005011/0.01439, allocations: 322 kB / 259.7 MB, free: 14.7 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.888e-05/0.01446, allocations: 80.33 kB / 259.8 MB, free: 14.6 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 8.563e-05/0.01454, allocations: 25.94 kB / 259.8 MB, free: 14.57 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001191/0.01466, allocations: 87.36 kB / 259.9 MB, free: 14.48 MB / 250.7 MB Notification: Performance of SimCode: time 7.31e-07/0.01466, allocations: 0 / 259.9 MB, free: 14.48 MB / 250.7 MB Notification: Performance of Templates: time 0.005342/0.02001, allocations: 2.088 MB / 262 MB, free: 12.41 MB / 250.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & ./Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/StateGraph/Examples/FirstExample_Variant3/FirstExample_Variant3.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.6744433506391943]