Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.001264/0.001264, allocations: 80.31 kB / 22.21 MB, free: 2.289 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.001921/0.001921, allocations: 172.9 kB / 25.61 MB, free: 8.449 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.992/0.992, allocations: 177.1 MB / 206 MB, free: 4.445 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2") translateModel(Modelica.StateGraph.Examples.FirstExample_Variant2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.472e-06/1.472e-06, allocations: 0 / 274.1 MB, free: 4.449 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.936e-05/3.083e-05, allocations: 6.25 kB / 274.1 MB, free: 4.441 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.002469/0.002499, allocations: 1.688 MB / 275.8 MB, free: 2.758 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.000621/0.00312, allocations: 303 kB / 276.1 MB, free: 2.461 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.823e-05/0.003219, allocations: 4.531 kB / 276.1 MB, free: 2.457 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001388/0.003357, allocations: 28.36 kB / 276.2 MB, free: 2.43 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 3.763e-05/0.003395, allocations: 11.81 kB / 276.2 MB, free: 2.418 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003992/0.003794, allocations: 132.9 kB / 276.3 MB, free: 2.289 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002713/0.004066, allocations: 287.3 kB / 276.6 MB, free: 2.008 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002403/0.004306, allocations: 161.4 kB / 276.7 MB, free: 1.848 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001215/0.004427, allocations: 131.8 kB / 276.9 MB, free: 1.719 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001156/0.004543, allocations: 72.7 kB / 276.9 MB, free: 1.648 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.034e-05/0.004573, allocations: 24 kB / 277 MB, free: 1.625 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.782e-05/0.004641, allocations: 32.62 kB / 277 MB, free: 1.594 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 5.66e-05/0.004698, allocations: 59.8 kB / 277.1 MB, free: 1.535 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 6.049e-05/0.004758, allocations: 73.81 kB / 277.1 MB, free: 1.465 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000281/0.005039, allocations: 195.1 kB / 277.3 MB, free: 1.273 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.908e-06/0.005043, allocations: 0 / 277.3 MB, free: 1.273 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.212e-06/0.005044, allocations: 0 / 277.3 MB, free: 1.273 MB / 250.7 MB Notification: Performance of Transformations before backend: time 5.891e-06/0.00505, allocations: 0 / 277.3 MB, free: 1.273 MB / 250.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.0005714/0.005622, allocations: 0.5131 MB / 277.8 MB, free: 0.7188 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.117e-05/0.005663, allocations: 8.031 kB / 277.8 MB, free: 0.7109 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002119/0.005875, allocations: 60.77 kB / 277.9 MB, free: 0.6523 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000208/0.006083, allocations: 176.2 kB / 278.1 MB, free: 464 kB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.808e-05/0.006111, allocations: 21.47 kB / 278.1 MB, free: 444 kB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.39e-05/0.006135, allocations: 28.38 kB / 278.1 MB, free: 416 kB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000236/0.006371, allocations: 236.7 kB / 278.3 MB, free: 148 kB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.197e-05/0.006383, allocations: 4.125 kB / 278.4 MB, free: 144 kB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.011e-05/0.006403, allocations: 16.38 kB / 278.4 MB, free: 128 kB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.843e-06/0.00641, allocations: 4.375 kB / 278.4 MB, free: 124 kB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.619e-05/0.006506, allocations: 79.31 kB / 278.4 MB, free: 48 kB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009862/0.007492, allocations: 1.038 MB / 279.5 MB, free: 14.96 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001747/0.007667, allocations: 138.4 kB / 279.6 MB, free: 14.8 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.998e-05/0.007717, allocations: 59.28 kB / 279.7 MB, free: 14.73 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.785e-05/0.007735, allocations: 8 kB / 279.7 MB, free: 14.73 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001255/0.00786, allocations: 131.1 kB / 279.8 MB, free: 14.58 MB / 266.7 MB Notification: Performance of pre-optimization done (n=24): time 1.703e-06/0.007862, allocations: 0 / 279.8 MB, free: 14.58 MB / 266.7 MB Notification: Performance of matching and sorting (n=24): time 0.0002559/0.008118, allocations: 177.3 kB / 280 MB, free: 14.4 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.762e-05/0.008165, allocations: 85.05 kB / 280.1 MB, free: 14.3 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001076/0.008273, allocations: 220.6 kB / 280.3 MB, free: 14.07 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.203e-05/0.008295, allocations: 33.7 kB / 280.3 MB, free: 14.03 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.941e-05/0.008384, allocations: 195.5 kB / 280.5 MB, free: 13.83 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.728e-05/0.008422, allocations: 63.45 kB / 280.6 MB, free: 13.77 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.736e-05/0.008499, allocations: 87.42 kB / 280.7 MB, free: 13.67 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001253/0.008624, allocations: 0.504 MB / 281.2 MB, free: 13.16 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.651e-05/0.008661, allocations: 23.98 kB / 281.2 MB, free: 13.13 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.809e-05/0.008749, allocations: 140.6 kB / 281.3 MB, free: 12.95 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001432/0.008892, allocations: 176.5 kB / 281.5 MB, free: 12.74 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.504e-06/0.008895, allocations: 3.938 kB / 281.5 MB, free: 12.73 MB / 266.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0002034/0.009098, allocations: 209.9 kB / 281.7 MB, free: 12.52 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.593e-05/0.009114, allocations: 10.28 kB / 281.7 MB, free: 12.52 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.023e-06/0.009121, allocations: 4 kB / 281.7 MB, free: 12.51 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.004e-05/0.009131, allocations: 4.281 kB / 281.7 MB, free: 12.51 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.369e-05/0.009225, allocations: 35.92 kB / 281.8 MB, free: 12.47 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.735e-06/0.009232, allocations: 11.92 kB / 281.8 MB, free: 12.46 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.018e-05/0.009293, allocations: 31.83 kB / 281.8 MB, free: 12.43 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.169e-05/0.009304, allocations: 8 kB / 281.8 MB, free: 12.42 MB / 266.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: 32 ($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,transition2.t_start,$PRE.transition2.t_start,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 (41): * Single equations (assignments): 41 * 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.0001069/0.009411, allocations: 188.5 kB / 282 MB, free: 12.23 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.378e-05/0.009435, allocations: 27.84 kB / 282 MB, free: 12.2 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.63e-05/0.009471, allocations: 16.92 kB / 282 MB, free: 12.19 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.238e-06/0.009476, allocations: 4 kB / 282 MB, free: 12.18 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.695e-06/0.009478, allocations: 3.938 kB / 282 MB, free: 12.18 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.835e-06/0.009486, allocations: 8 kB / 282.1 MB, free: 12.17 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004262/0.009912, allocations: 496 kB / 282.5 MB, free: 11.65 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.009914, allocations: 0 / 282.5 MB, free: 11.65 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.341e-05/0.009958, allocations: 19.92 kB / 282.6 MB, free: 11.63 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.727e-06/0.009961, allocations: 3.984 kB / 282.6 MB, free: 11.63 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.13e-05/0.009973, allocations: 8 kB / 282.6 MB, free: 11.62 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.505e-06/0.009975, allocations: 0 / 282.6 MB, free: 11.62 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.009977, allocations: 0 / 282.6 MB, free: 11.62 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002093/0.01019, allocations: 307.3 kB / 282.9 MB, free: 11.3 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.575e-05/0.0102, allocations: 15.91 kB / 282.9 MB, free: 11.28 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.806e-05/0.01022, allocations: 12 kB / 282.9 MB, free: 11.27 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.649e-05/0.01027, allocations: 11.98 kB / 282.9 MB, free: 11.26 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.776e-05/0.01031, allocations: 15.91 kB / 282.9 MB, free: 11.24 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.101e-05/0.01033, allocations: 8 kB / 282.9 MB, free: 11.23 MB / 266.7 MB Notification: Performance of sorting global known variables: time 4.785e-05/0.01037, allocations: 139.2 kB / 283.1 MB, free: 11.1 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01037, allocations: 0 / 283.1 MB, free: 11.1 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001916/0.01056, allocations: 51.83 kB / 283.1 MB, free: 11.05 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 18 (transition2.t_start,step.localActive,step.active,transition1.enableFire,initialStep.active,$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: 3 (initialStep.newActive,step.newActive,transition2.t_start) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.0001042/0.01067, allocations: 111.2 kB / 283.2 MB, free: 10.93 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001832/0.01085, allocations: 147.8 kB / 283.4 MB, free: 10.78 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.01085, allocations: 0 / 283.4 MB, free: 10.78 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 6.765e-05/0.01092, allocations: 66.44 kB / 283.4 MB, free: 10.71 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002061/0.01113, allocations: 23.92 kB / 283.5 MB, free: 10.69 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004188/0.01155, allocations: 330.3 kB / 283.8 MB, free: 10.34 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.008e-05/0.0116, allocations: 84.27 kB / 283.9 MB, free: 10.23 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 5.316e-05/0.01165, allocations: 26.44 kB / 283.9 MB, free: 10.21 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.949e-05/0.01174, allocations: 102.2 kB / 284 MB, free: 10.11 MB / 266.7 MB Notification: Performance of SimCode: time 9.52e-07/0.01174, allocations: 0 / 284 MB, free: 10.11 MB / 266.7 MB Notification: Performance of Templates: time 0.004191/0.01593, allocations: 1.97 MB / 286 MB, free: 8.184 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & ./Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/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.7788618518970907]