Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.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.00125/0.00125, allocations: 84.98 kB / 22.99 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.001307/0.001307, allocations: 176.2 kB / 26.39 MB, free: 8.008 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.03/1.03, allocations: 158.6 MB / 188.3 MB, free: 2.797 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_Variant2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5009,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2") translateModel(Modelica.StateGraph.Examples.FirstExample_Variant2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5009,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.383e-06/1.383e-06, allocations: 3.938 kB / 252.2 MB, free: 7.281 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.584e-05/1.722e-05, allocations: 6.25 kB / 252.2 MB, free: 7.273 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.002035/0.002052, allocations: 1.672 MB / 253.9 MB, free: 5.586 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004981/0.002551, allocations: 275.1 kB / 254.2 MB, free: 5.316 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.073e-05/0.002631, allocations: 3.938 kB / 254.2 MB, free: 5.312 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 8.999e-05/0.002721, allocations: 23.73 kB / 254.2 MB, free: 5.289 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 4.133e-05/0.002763, allocations: 23.75 kB / 254.2 MB, free: 5.266 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003046/0.003067, allocations: 119.8 kB / 254.3 MB, free: 5.148 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002291/0.003296, allocations: 283.4 kB / 254.6 MB, free: 4.871 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000213/0.003509, allocations: 159.7 kB / 254.8 MB, free: 4.711 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001097/0.003619, allocations: 139.7 kB / 254.9 MB, free: 4.574 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.803e-05/0.003717, allocations: 71.77 kB / 255 MB, free: 4.504 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 3.032e-05/0.003747, allocations: 24 kB / 255 MB, free: 4.48 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.2e-05/0.003809, allocations: 35.98 kB / 255 MB, free: 4.445 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 5.011e-05/0.003859, allocations: 59.81 kB / 255.1 MB, free: 4.387 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 5.63e-05/0.003916, allocations: 63.83 kB / 255.2 MB, free: 4.324 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002025/0.004118, allocations: 187.3 kB / 255.3 MB, free: 4.141 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.014e-06/0.00412, allocations: 0 / 255.3 MB, free: 4.141 MB / 234.7 MB Notification: Performance of FrontEnd: time 3.71e-07/0.004121, allocations: 0 / 255.3 MB, free: 4.141 MB / 234.7 MB Notification: Performance of Transformations before backend: time 3.767e-06/0.004124, allocations: 0 / 255.3 MB, free: 4.141 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.0007178/0.004842, allocations: 0.5224 MB / 255.9 MB, free: 3.57 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.265e-05/0.004875, allocations: 11.98 kB / 255.9 MB, free: 3.559 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.462e-05/0.004929, allocations: 48.73 kB / 255.9 MB, free: 3.512 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000162/0.005092, allocations: 172.3 kB / 256.1 MB, free: 3.316 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.599e-05/0.005118, allocations: 20.88 kB / 256.1 MB, free: 3.297 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.636e-05/0.005144, allocations: 28.38 kB / 256.1 MB, free: 3.27 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002143/0.005358, allocations: 236.6 kB / 256.4 MB, free: 3.008 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.556e-06/0.005367, allocations: 192 / 256.4 MB, free: 3.008 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.535e-05/0.005382, allocations: 12.38 kB / 256.4 MB, free: 2.996 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.621e-06/0.005388, allocations: 4.375 kB / 256.4 MB, free: 2.992 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.007e-05/0.005478, allocations: 87.3 kB / 256.5 MB, free: 2.91 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006367/0.006114, allocations: 1.05 MB / 257.5 MB, free: 1.812 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001326/0.006247, allocations: 115.2 kB / 257.6 MB, free: 1.688 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.067e-05/0.006288, allocations: 47.69 kB / 257.7 MB, free: 1.637 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.287e-05/0.006301, allocations: 4 kB / 257.7 MB, free: 1.633 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.456e-05/0.006395, allocations: 108.7 kB / 257.8 MB, free: 1.512 MB / 234.7 MB Notification: Performance of pre-optimization done (n=23): time 1.192e-06/0.006396, allocations: 0 / 257.8 MB, free: 1.512 MB / 234.7 MB Notification: Performance of matching and sorting (n=23): time 0.0001905/0.006587, allocations: 162 kB / 257.9 MB, free: 1.348 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.669e-05/0.006614, allocations: 63.39 kB / 258 MB, free: 1.273 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.28e-05/0.006706, allocations: 225.5 kB / 258.2 MB, free: 1.039 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 1.785e-05/0.006724, allocations: 33.7 kB / 258.3 MB, free: 1 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.272e-05/0.006797, allocations: 195.4 kB / 258.5 MB, free: 0.8047 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.102e-05/0.006838, allocations: 63.5 kB / 258.5 MB, free: 0.7422 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.605e-05/0.006914, allocations: 87.61 kB / 258.6 MB, free: 0.6445 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0001131/0.007027, allocations: 0.5001 MB / 259.1 MB, free: 136 kB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.717e-05/0.007064, allocations: 28.62 kB / 259.1 MB, free: 108 kB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001163/0.007181, allocations: 134.1 kB / 259.3 MB, free: 15.93 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001833/0.007364, allocations: 172.7 kB / 259.4 MB, free: 15.72 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.484e-06/0.007366, allocations: 4 kB / 259.4 MB, free: 15.72 MB / 250.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0002308/0.007597, allocations: 217.3 kB / 259.6 MB, free: 15.5 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.698e-06/0.007607, allocations: 4 kB / 259.6 MB, free: 15.5 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.909e-06/0.007612, allocations: 4 kB / 259.7 MB, free: 15.49 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.995e-06/0.00762, allocations: 4 kB / 259.7 MB, free: 15.49 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.074e-05/0.0077, allocations: 39.86 kB / 259.7 MB, free: 15.45 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.421e-06/0.007706, allocations: 4 kB / 259.7 MB, free: 15.45 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.855e-05/0.007764, allocations: 27.83 kB / 259.7 MB, free: 15.42 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.561e-05/0.00778, allocations: 12 kB / 259.7 MB, free: 15.41 MB / 250.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 8.934e-05/0.007869, allocations: 187.3 kB / 259.9 MB, free: 15.21 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.107e-05/0.00789, allocations: 23.84 kB / 259.9 MB, free: 15.19 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001722/0.008063, allocations: 170.7 kB / 260.1 MB, free: 15.02 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.805e-06/0.008065, allocations: 4 kB / 260.1 MB, free: 15.01 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.833e-06/0.008067, allocations: 0 / 260.1 MB, free: 15.01 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.629e-06/0.008072, allocations: 3.984 kB / 260.1 MB, free: 15.01 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003913/0.008463, allocations: 0.493 MB / 260.6 MB, free: 14.48 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.655e-06/0.008466, allocations: 0 / 260.6 MB, free: 14.48 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.098e-05/0.008507, allocations: 8 kB / 260.6 MB, free: 14.47 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.485e-06/0.008509, allocations: 7.984 kB / 260.6 MB, free: 14.46 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.327e-06/0.008519, allocations: 8 kB / 260.6 MB, free: 14.45 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.022e-06/0.00852, allocations: 0 / 260.6 MB, free: 14.45 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.81e-07/0.00852, allocations: 7.938 kB / 260.6 MB, free: 14.45 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001765/0.008697, allocations: 303.6 kB / 260.9 MB, free: 14.13 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.137e-05/0.008708, allocations: 15.91 kB / 261 MB, free: 14.11 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.776e-05/0.008726, allocations: 4 kB / 261 MB, free: 14.11 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.387e-05/0.00877, allocations: 8 kB / 261 MB, free: 14.1 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.189e-05/0.008812, allocations: 19.95 kB / 261 MB, free: 14.08 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.297e-06/0.008821, allocations: 8 kB / 261 MB, free: 14.07 MB / 250.7 MB Notification: Performance of sorting global known variables: time 5.385e-05/0.008875, allocations: 139.1 kB / 261.1 MB, free: 13.94 MB / 250.7 MB Notification: Performance of sort global known variables: time 5e-08/0.008875, allocations: 4 kB / 261.1 MB, free: 13.93 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002038/0.009079, allocations: 51.89 kB / 261.2 MB, free: 13.88 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,step.active,transition1.enableFire,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.0001058/0.009184, allocations: 107.2 kB / 261.3 MB, free: 13.77 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0001575/0.009342, allocations: 136.1 kB / 261.4 MB, free: 13.63 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.442e-06/0.009343, allocations: 0 / 261.4 MB, free: 13.63 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 6.742e-05/0.009411, allocations: 68.19 kB / 261.5 MB, free: 13.56 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000189/0.0096, allocations: 28.48 kB / 261.5 MB, free: 13.53 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003799/0.00998, allocations: 342.7 kB / 261.8 MB, free: 13.17 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.348e-05/0.01002, allocations: 80.33 kB / 261.9 MB, free: 13.07 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 5.141e-05/0.01007, allocations: 21.95 kB / 261.9 MB, free: 13.05 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.522e-05/0.01017, allocations: 106.2 kB / 262.1 MB, free: 12.95 MB / 250.7 MB Notification: Performance of SimCode: time 5.21e-07/0.01017, allocations: 0 / 262.1 MB, free: 12.95 MB / 250.7 MB Notification: Performance of Templates: time 0.004029/0.0142, allocations: 2.193 MB / 264.2 MB, free: 10.77 MB / 250.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & ./Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/StateGraph/Examples/FirstExample_Variant2/FirstExample_Variant2.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.8470035432837903]