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.001103/0.001103, allocations: 75.75 kB / 21.97 MB, free: 2.602 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.0009928/0.0009928, allocations: 165.9 kB / 25.33 MB, free: 9.172 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.9943/0.9943, allocations: 158.6 MB / 187.2 MB, free: 2.664 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.603e-06/1.603e-06, allocations: 0 / 251 MB, free: 7.504 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.497e-05/2.657e-05, allocations: 5.969 kB / 251 MB, free: 7.5 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.003333/0.003359, allocations: 1.696 MB / 252.7 MB, free: 5.785 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007148/0.004074, allocations: 263.1 kB / 253 MB, free: 5.527 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001078/0.004182, allocations: 7.938 kB / 253 MB, free: 5.52 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001494/0.004331, allocations: 23.75 kB / 253 MB, free: 5.496 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 6.447e-05/0.004396, allocations: 19.73 kB / 253 MB, free: 5.477 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000512/0.004908, allocations: 127.8 kB / 253.1 MB, free: 5.352 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003567/0.005265, allocations: 283.5 kB / 253.4 MB, free: 5.074 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003188/0.005583, allocations: 147.7 kB / 253.6 MB, free: 4.926 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001816/0.005765, allocations: 139.8 kB / 253.7 MB, free: 4.789 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001537/0.005919, allocations: 75.75 kB / 253.8 MB, free: 4.715 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 4.62e-05/0.005965, allocations: 24 kB / 253.8 MB, free: 4.691 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.95e-05/0.006054, allocations: 24 kB / 253.8 MB, free: 4.668 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 7.416e-05/0.006128, allocations: 63.8 kB / 253.9 MB, free: 4.605 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 9.415e-05/0.006223, allocations: 71.83 kB / 254 MB, free: 4.535 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003055/0.006528, allocations: 187.2 kB / 254.1 MB, free: 4.352 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.405e-06/0.006531, allocations: 0 / 254.1 MB, free: 4.352 MB / 234.7 MB Notification: Performance of FrontEnd: time 8.71e-07/0.006531, allocations: 0 / 254.1 MB, free: 4.352 MB / 234.7 MB Notification: Performance of Transformations before backend: time 4.549e-06/0.006536, allocations: 0 / 254.1 MB, free: 4.352 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.0006815/0.007217, allocations: 0.5146 MB / 254.7 MB, free: 3.793 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.851e-05/0.007266, allocations: 11.98 kB / 254.7 MB, free: 3.781 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.661e-05/0.007363, allocations: 44.78 kB / 254.7 MB, free: 3.738 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002705/0.007633, allocations: 188.2 kB / 254.9 MB, free: 3.527 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.891e-05/0.007672, allocations: 20.88 kB / 254.9 MB, free: 3.508 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.024e-05/0.007712, allocations: 28.38 kB / 254.9 MB, free: 3.48 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004144/0.008127, allocations: 252.7 kB / 255.2 MB, free: 3.203 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.565e-05/0.008142, allocations: 192 / 255.2 MB, free: 3.203 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.651e-05/0.008169, allocations: 8.375 kB / 255.2 MB, free: 3.195 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.278e-05/0.008182, allocations: 8.375 kB / 255.2 MB, free: 3.188 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002284/0.00841, allocations: 102.8 kB / 255.3 MB, free: 3.09 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001122/0.009532, allocations: 1.076 MB / 256.4 MB, free: 1.957 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002555/0.009787, allocations: 119.2 kB / 256.5 MB, free: 1.828 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.222e-05/0.00988, allocations: 55.75 kB / 256.6 MB, free: 1.77 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.217e-05/0.009902, allocations: 4 kB / 256.6 MB, free: 1.766 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001671/0.01007, allocations: 116.8 kB / 256.7 MB, free: 1.637 MB / 234.7 MB Notification: Performance of pre-optimization done (n=23): time 1.733e-06/0.01007, allocations: 0 / 256.7 MB, free: 1.637 MB / 234.7 MB Notification: Performance of matching and sorting (n=23): time 0.000391/0.01046, allocations: 182 kB / 256.9 MB, free: 1.453 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.953e-05/0.01051, allocations: 59.39 kB / 256.9 MB, free: 1.383 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000171/0.01068, allocations: 217.8 kB / 257.1 MB, free: 1.152 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 2.601e-05/0.01071, allocations: 37.7 kB / 257.2 MB, free: 1.109 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.782e-05/0.0108, allocations: 191.4 kB / 257.3 MB, free: 0.918 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.806e-05/0.01083, allocations: 67.45 kB / 257.4 MB, free: 0.8516 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.304e-05/0.01092, allocations: 79.67 kB / 257.5 MB, free: 0.7617 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0001437/0.01106, allocations: 0.5001 MB / 258 MB, free: 256 kB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.35e-05/0.01113, allocations: 48.61 kB / 258 MB, free: 208 kB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001158/0.01125, allocations: 146.1 kB / 258.2 MB, free: 20 kB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000192/0.01144, allocations: 184.7 kB / 258.4 MB, free: 15.8 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.186e-06/0.01145, allocations: 0 / 258.4 MB, free: 15.8 MB / 250.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0002666/0.01171, allocations: 237.2 kB / 258.6 MB, free: 15.56 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.518e-05/0.01173, allocations: 4 kB / 258.6 MB, free: 15.55 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.093e-06/0.01173, allocations: 4 kB / 258.6 MB, free: 15.55 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.07e-05/0.01175, allocations: 7.984 kB / 258.6 MB, free: 15.54 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000109/0.01186, allocations: 36.2 kB / 258.6 MB, free: 15.51 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.808e-06/0.01187, allocations: 11.94 kB / 258.7 MB, free: 15.5 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.673e-05/0.01194, allocations: 27.83 kB / 258.7 MB, free: 15.47 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.365e-05/0.01196, allocations: 16 kB / 258.7 MB, free: 15.45 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,stateGraphRoot.resume,stateGraphRoot.suspend,transition1.condition) * 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.000107/0.01207, allocations: 179.1 kB / 258.9 MB, free: 15.27 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.336e-05/0.01209, allocations: 27.84 kB / 258.9 MB, free: 15.24 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002276/0.01232, allocations: 174.8 kB / 259.1 MB, free: 15.06 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.937e-06/0.01233, allocations: 4 kB / 259.1 MB, free: 15.06 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/0.01233, allocations: 0 / 259.1 MB, free: 15.06 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.659e-06/0.01234, allocations: 0 / 259.1 MB, free: 15.06 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005014/0.01284, allocations: 0.5354 MB / 259.6 MB, free: 14.48 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.844e-06/0.01284, allocations: 3.938 kB / 259.6 MB, free: 14.47 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.231e-05/0.01288, allocations: 15.98 kB / 259.6 MB, free: 14.46 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.445e-06/0.01288, allocations: 0 / 259.6 MB, free: 14.46 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.205e-05/0.0129, allocations: 4 kB / 259.6 MB, free: 14.45 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.005e-06/0.0129, allocations: 4 kB / 259.6 MB, free: 14.45 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.0129, allocations: 0 / 259.6 MB, free: 14.45 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002328/0.01313, allocations: 319.6 kB / 259.9 MB, free: 14.12 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.177e-05/0.01314, allocations: 15.91 kB / 260 MB, free: 14.1 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.741e-05/0.01316, allocations: 4 kB / 260 MB, free: 14.1 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.386e-05/0.01321, allocations: 15.98 kB / 260 MB, free: 14.08 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.06e-05/0.01327, allocations: 19.97 kB / 260 MB, free: 14.06 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.588e-06/0.01328, allocations: 4 kB / 260 MB, free: 14.06 MB / 250.7 MB Notification: Performance of sorting global known variables: time 5.461e-05/0.01333, allocations: 154.8 kB / 260.2 MB, free: 13.91 MB / 250.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01333, allocations: 0 / 260.2 MB, free: 13.91 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002198/0.01355, allocations: 51.83 kB / 260.2 MB, free: 13.86 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.0001251/0.01367, allocations: 111.2 kB / 260.3 MB, free: 13.74 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0002185/0.01389, allocations: 157.2 kB / 260.5 MB, free: 13.58 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.213e-06/0.01389, allocations: 0 / 260.5 MB, free: 13.58 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 8.491e-05/0.01398, allocations: 79.52 kB / 260.5 MB, free: 13.5 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002102/0.01419, allocations: 23.98 kB / 260.6 MB, free: 13.48 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005194/0.01471, allocations: 338.8 kB / 260.9 MB, free: 13.12 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.971e-05/0.01476, allocations: 80.27 kB / 261 MB, free: 13.02 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 5.525e-05/0.01481, allocations: 30.06 kB / 261 MB, free: 13 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.724e-05/0.01486, allocations: 24.44 kB / 261 MB, free: 12.97 MB / 250.7 MB Notification: Performance of SimCode: time 4.21e-07/0.01486, allocations: 0 / 261 MB, free: 12.97 MB / 250.7 MB Notification: Performance of Templates: time 0.004337/0.0192, allocations: 1.939 MB / 263 MB, free: 11.05 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: 3.071238763164729]