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.001363/0.001363, allocations: 79.73 kB / 21.97 MB, free: 2.598 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.00111/0.00111, allocations: 164.7 kB / 25.33 MB, free: 8.594 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.967/0.967, allocations: 158.6 MB / 187.2 MB, free: 2.93 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.864e-06/1.864e-06, allocations: 0 / 251 MB, free: 7.547 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.096e-05/3.282e-05, allocations: 6.25 kB / 251 MB, free: 7.539 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.003193/0.003226, allocations: 1.688 MB / 252.7 MB, free: 5.832 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007407/0.003966, allocations: 271.1 kB / 253 MB, free: 5.566 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001268/0.004093, allocations: 3.938 kB / 253 MB, free: 5.562 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001537/0.004247, allocations: 23.73 kB / 253 MB, free: 5.539 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 7.355e-05/0.00432, allocations: 23.73 kB / 253 MB, free: 5.516 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005118/0.004832, allocations: 123.8 kB / 253.1 MB, free: 5.395 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004019/0.005234, allocations: 283.4 kB / 253.4 MB, free: 5.117 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003245/0.005558, allocations: 155.7 kB / 253.6 MB, free: 4.961 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001781/0.005737, allocations: 139.7 kB / 253.7 MB, free: 4.824 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001464/0.005883, allocations: 71.77 kB / 253.8 MB, free: 4.754 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 5.041e-05/0.005933, allocations: 24 kB / 253.8 MB, free: 4.73 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.166e-05/0.006025, allocations: 31.94 kB / 253.8 MB, free: 4.699 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 7.103e-05/0.006096, allocations: 59.81 kB / 253.9 MB, free: 4.641 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 9.849e-05/0.006195, allocations: 67.81 kB / 254 MB, free: 4.574 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000312/0.006507, allocations: 195.3 kB / 254.1 MB, free: 4.383 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.078e-06/0.006511, allocations: 0 / 254.1 MB, free: 4.383 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.252e-06/0.006512, allocations: 0 / 254.1 MB, free: 4.383 MB / 234.7 MB Notification: Performance of Transformations before backend: time 6.732e-06/0.006519, allocations: 0 / 254.1 MB, free: 4.383 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.0007272/0.007246, allocations: 0.5107 MB / 254.7 MB, free: 3.828 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.683e-05/0.007293, allocations: 11.98 kB / 254.7 MB, free: 3.816 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000108/0.007401, allocations: 48.78 kB / 254.7 MB, free: 3.77 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000277/0.007678, allocations: 172.3 kB / 254.9 MB, free: 3.574 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.837e-05/0.007716, allocations: 20.88 kB / 254.9 MB, free: 3.555 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.061e-05/0.007757, allocations: 32.38 kB / 254.9 MB, free: 3.523 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004406/0.008197, allocations: 248.7 kB / 255.2 MB, free: 3.25 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.297e-05/0.00821, allocations: 192 / 255.2 MB, free: 3.25 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.785e-05/0.008238, allocations: 12.38 kB / 255.2 MB, free: 3.238 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.37e-05/0.008252, allocations: 8.375 kB / 255.2 MB, free: 3.23 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002428/0.008494, allocations: 102.8 kB / 255.3 MB, free: 3.133 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001265/0.009759, allocations: 1.072 MB / 256.4 MB, free: 2.004 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003003/0.01006, allocations: 123.2 kB / 256.5 MB, free: 1.871 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.782e-05/0.01016, allocations: 55.69 kB / 256.5 MB, free: 1.812 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.013e-05/0.01018, allocations: 11.94 kB / 256.6 MB, free: 1.801 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001838/0.01036, allocations: 112.8 kB / 256.7 MB, free: 1.676 MB / 234.7 MB Notification: Performance of pre-optimization done (n=23): time 2.545e-06/0.01036, allocations: 0 / 256.7 MB, free: 1.676 MB / 234.7 MB Notification: Performance of matching and sorting (n=23): time 0.0004205/0.01078, allocations: 186 kB / 256.9 MB, free: 1.488 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.906e-05/0.01083, allocations: 63.39 kB / 256.9 MB, free: 1.414 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001504/0.01098, allocations: 213.8 kB / 257.1 MB, free: 1.188 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 2.998e-05/0.01101, allocations: 33.7 kB / 257.2 MB, free: 1.148 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001126/0.01113, allocations: 199.4 kB / 257.4 MB, free: 0.9492 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.438e-05/0.01118, allocations: 59.53 kB / 257.4 MB, free: 0.8906 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001138/0.01129, allocations: 83.67 kB / 257.5 MB, free: 0.7969 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0001451/0.01144, allocations: 0.5001 MB / 258 MB, free: 292 kB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001045/0.01154, allocations: 40.62 kB / 258 MB, free: 252 kB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001505/0.01169, allocations: 146.1 kB / 258.2 MB, free: 64 kB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00026/0.01195, allocations: 184.7 kB / 258.4 MB, free: 15.84 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.586e-06/0.01196, allocations: 0 / 258.4 MB, free: 15.84 MB / 250.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003777/0.01234, allocations: 233.2 kB / 258.6 MB, free: 15.61 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.989e-05/0.01236, allocations: 8 kB / 258.6 MB, free: 15.6 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.257e-06/0.01237, allocations: 3.984 kB / 258.6 MB, free: 15.59 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.95e-05/0.01238, allocations: 4 kB / 258.6 MB, free: 15.59 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001556/0.01254, allocations: 40.14 kB / 258.6 MB, free: 15.55 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.518e-06/0.01255, allocations: 8 kB / 258.6 MB, free: 15.54 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001038/0.01265, allocations: 31.83 kB / 258.7 MB, free: 15.51 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.882e-05/0.01268, allocations: 12 kB / 258.7 MB, free: 15.5 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.0001338/0.01282, allocations: 187.1 kB / 258.9 MB, free: 15.3 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.736e-05/0.01285, allocations: 19.84 kB / 258.9 MB, free: 15.29 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000323/0.01318, allocations: 182.7 kB / 259.1 MB, free: 15.1 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.03e-06/0.01318, allocations: 0 / 259.1 MB, free: 15.1 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.198e-06/0.01319, allocations: 0 / 259.1 MB, free: 15.1 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.29e-06/0.01319, allocations: 4 kB / 259.1 MB, free: 15.1 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000676/0.01387, allocations: 0.5353 MB / 259.6 MB, free: 14.52 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.816e-06/0.01387, allocations: 4 kB / 259.6 MB, free: 14.51 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.12e-05/0.01394, allocations: 11.98 kB / 259.6 MB, free: 14.5 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.892e-06/0.01395, allocations: 4 kB / 259.6 MB, free: 14.5 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.499e-05/0.01396, allocations: 4 kB / 259.6 MB, free: 14.49 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.026e-06/0.01396, allocations: 0 / 259.6 MB, free: 14.49 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.01397, allocations: 0 / 259.6 MB, free: 14.49 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003128/0.01428, allocations: 327.5 kB / 259.9 MB, free: 14.15 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.859e-05/0.0143, allocations: 11.91 kB / 260 MB, free: 14.14 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.987e-05/0.01433, allocations: 11.98 kB / 260 MB, free: 14.13 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.467e-05/0.01441, allocations: 8 kB / 260 MB, free: 14.12 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.109e-05/0.01448, allocations: 19.97 kB / 260 MB, free: 14.1 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.734e-05/0.0145, allocations: 11.98 kB / 260 MB, free: 14.09 MB / 250.7 MB Notification: Performance of sorting global known variables: time 7.84e-05/0.01458, allocations: 146 kB / 260.2 MB, free: 13.95 MB / 250.7 MB Notification: Performance of sort global known variables: time 9e-08/0.01458, allocations: 0 / 260.2 MB, free: 13.95 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.000347/0.01493, allocations: 51.89 kB / 260.2 MB, free: 13.9 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.0001621/0.01509, allocations: 111.2 kB / 260.3 MB, free: 13.78 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0003009/0.01539, allocations: 157.2 kB / 260.5 MB, free: 13.62 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 2.474e-06/0.01539, allocations: 0 / 260.5 MB, free: 13.62 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001231/0.01551, allocations: 75.53 kB / 260.5 MB, free: 13.54 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003249/0.01584, allocations: 23.98 kB / 260.6 MB, free: 13.52 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006305/0.01647, allocations: 342.7 kB / 260.9 MB, free: 13.16 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.484e-05/0.01653, allocations: 80.27 kB / 261 MB, free: 13.06 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 8.586e-05/0.01662, allocations: 26 kB / 261 MB, free: 13.04 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.44e-05/0.0167, allocations: 24.5 kB / 261 MB, free: 13.02 MB / 250.7 MB Notification: Performance of SimCode: time 1.072e-06/0.0167, allocations: 0 / 261 MB, free: 13.02 MB / 250.7 MB Notification: Performance of Templates: time 0.005901/0.0226, allocations: 2.069 MB / 263.1 MB, free: 10.96 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.8061711289919913]