Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.001226/0.001226, allocations: 76.17 kB / 9.931 MB, free: 0.7578 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001917/0.003144, allocations: 449.7 kB / 10.37 MB, free: 328 kB / 10.45 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.001478/0.001478, allocations: 169.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001714/0.003192, allocations: 455.6 kB / 11.71 MB, free: 2.461 MB / 13.93 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.9751/0.9751, allocations: 177.2 MB / 189.6 MB, free: 5.297 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08251/1.058, allocations: 53.64 MB / 243.3 MB, free: 15.57 MB / 250.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_Variant3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3") translateModel(Modelica.StateGraph.Examples.FirstExample_Variant3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.674e-06/1.674e-06, allocations: 0 / 244.5 MB, free: 14.34 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.05e-05/2.217e-05, allocations: 2.312 kB / 244.5 MB, free: 14.34 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.003747/0.003769, allocations: 1.781 MB / 246.3 MB, free: 12.54 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007929/0.004562, allocations: 311 kB / 246.6 MB, free: 12.24 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000128/0.00469, allocations: 4 kB / 246.6 MB, free: 12.23 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001292/0.004819, allocations: 35.61 kB / 246.6 MB, free: 12.2 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 7.394e-05/0.004893, allocations: 15.81 kB / 246.6 MB, free: 12.18 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004307/0.005323, allocations: 131.7 kB / 246.8 MB, free: 12.05 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003801/0.005704, allocations: 271.5 kB / 247 MB, free: 11.79 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003915/0.006095, allocations: 152 kB / 247.2 MB, free: 11.64 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002023/0.006297, allocations: 135.7 kB / 247.3 MB, free: 11.51 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001822/0.00648, allocations: 79.77 kB / 247.4 MB, free: 11.43 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.059e-05/0.00652, allocations: 20 kB / 247.4 MB, free: 11.41 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001016/0.006622, allocations: 31.98 kB / 247.4 MB, free: 11.38 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 6.524e-05/0.006687, allocations: 43.86 kB / 247.5 MB, free: 11.34 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 7.914e-05/0.006766, allocations: 55.88 kB / 247.5 MB, free: 11.28 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002982/0.007064, allocations: 171.3 kB / 247.7 MB, free: 11.11 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.741e-05/0.007082, allocations: 0 / 247.7 MB, free: 11.11 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.362e-06/0.007083, allocations: 0 / 247.7 MB, free: 11.11 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.828e-05/0.007101, allocations: 0 / 247.7 MB, free: 11.11 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.0006735/0.007775, allocations: 439.4 kB / 248.1 MB, free: 10.65 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.981e-05/0.007815, allocations: 12.03 kB / 248.1 MB, free: 10.64 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002867/0.008101, allocations: 130 kB / 248.3 MB, free: 10.5 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002257/0.008327, allocations: 153.5 kB / 248.4 MB, free: 10.32 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.549e-05/0.008363, allocations: 20.88 kB / 248.4 MB, free: 10.3 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.388e-05/0.008396, allocations: 32.36 kB / 248.5 MB, free: 10.27 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002736/0.00867, allocations: 214.6 kB / 248.7 MB, free: 10.04 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.639e-05/0.008687, allocations: 4.125 kB / 248.7 MB, free: 10.03 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.11e-05/0.008708, allocations: 16.36 kB / 248.7 MB, free: 10.02 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.708e-06/0.008717, allocations: 4.375 kB / 248.7 MB, free: 10.01 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001243/0.008842, allocations: 75.34 kB / 248.8 MB, free: 9.938 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008245/0.009666, allocations: 0.7193 MB / 249.5 MB, free: 9.191 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002023/0.009869, allocations: 105.2 kB / 249.6 MB, free: 9.07 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.538e-05/0.009924, allocations: 49.69 kB / 249.7 MB, free: 9.016 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.144e-05/0.009945, allocations: 4 kB / 249.7 MB, free: 9.012 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001766/0.01012, allocations: 127.2 kB / 249.8 MB, free: 8.871 MB / 250.7 MB Notification: Performance of pre-optimization done (n=24): time 1.834e-06/0.01012, allocations: 0 / 249.8 MB, free: 8.871 MB / 250.7 MB Notification: Performance of matching and sorting (n=24): time 0.00023/0.01035, allocations: 133.4 kB / 249.9 MB, free: 8.734 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.305e-05/0.01041, allocations: 89.22 kB / 250 MB, free: 8.629 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001055/0.01051, allocations: 158.5 kB / 250.2 MB, free: 8.461 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.614e-05/0.01054, allocations: 41.64 kB / 250.2 MB, free: 8.414 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.013e-05/0.01062, allocations: 140.8 kB / 250.3 MB, free: 8.273 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.918e-05/0.01067, allocations: 63.45 kB / 250.4 MB, free: 8.211 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.197e-05/0.01076, allocations: 85.41 kB / 250.5 MB, free: 8.121 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 9.672e-05/0.01086, allocations: 326.8 kB / 250.8 MB, free: 7.793 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.178e-05/0.0109, allocations: 27.98 kB / 250.8 MB, free: 7.766 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.707e-05/0.01097, allocations: 112.5 kB / 250.9 MB, free: 7.625 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001251/0.01109, allocations: 152.9 kB / 251.1 MB, free: 7.445 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.01109, allocations: 0 / 251.1 MB, free: 7.445 MB / 250.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0001563/0.01125, allocations: 181.4 kB / 251.3 MB, free: 7.262 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.358e-05/0.01126, allocations: 7.938 kB / 251.3 MB, free: 7.254 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.103e-06/0.01127, allocations: 4 kB / 251.3 MB, free: 7.25 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.394e-05/0.01128, allocations: 7.984 kB / 251.3 MB, free: 7.242 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001313/0.01142, allocations: 43.92 kB / 251.3 MB, free: 7.199 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.26e-06/0.01142, allocations: 4 kB / 251.3 MB, free: 7.195 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.926e-05/0.01148, allocations: 27.83 kB / 251.4 MB, free: 7.168 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.048e-05/0.01149, allocations: 12 kB / 251.4 MB, free: 7.156 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: 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 9.656e-05/0.01159, allocations: 137.9 kB / 251.5 MB, free: 7.012 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.263e-05/0.01161, allocations: 23.92 kB / 251.5 MB, free: 6.988 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.68e-05/0.01165, allocations: 20.88 kB / 251.5 MB, free: 6.969 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.198e-06/0.01165, allocations: 4 kB / 251.5 MB, free: 6.965 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.286e-06/0.01165, allocations: 0 / 251.5 MB, free: 6.965 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.31e-06/0.01166, allocations: 3.984 kB / 251.6 MB, free: 6.961 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003456/0.012, allocations: 372.5 kB / 251.9 MB, free: 6.57 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.874e-06/0.01201, allocations: 0 / 251.9 MB, free: 6.57 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.09e-05/0.01206, allocations: 19.98 kB / 251.9 MB, free: 6.551 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.096e-05/0.01207, allocations: 11.91 kB / 251.9 MB, free: 6.539 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.144e-06/0.01207, allocations: 4 kB / 251.9 MB, free: 6.535 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.977e-06/0.01208, allocations: 8 kB / 252 MB, free: 6.527 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.282e-06/0.01208, allocations: 0 / 252 MB, free: 6.527 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.01208, allocations: 0 / 252 MB, free: 6.527 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001259/0.01221, allocations: 216.2 kB / 252.2 MB, free: 6.297 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.696e-05/0.01222, allocations: 8 kB / 252.2 MB, free: 6.289 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.398e-05/0.01227, allocations: 8 kB / 252.2 MB, free: 6.281 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.367e-05/0.01231, allocations: 15.95 kB / 252.2 MB, free: 6.266 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.637e-06/0.01232, allocations: 11.94 kB / 252.2 MB, free: 6.254 MB / 250.7 MB Notification: Performance of sorting global known variables: time 1.857e-05/0.01234, allocations: 23.84 kB / 252.2 MB, free: 6.23 MB / 250.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01234, allocations: 0 / 252.2 MB, free: 6.23 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001778/0.01252, allocations: 55.83 kB / 252.3 MB, free: 6.176 MB / 250.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,transition1.enableFire,step.active,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.0001012/0.01262, allocations: 100 kB / 252.4 MB, free: 6.07 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.000157/0.01278, allocations: 127 kB / 252.5 MB, free: 5.945 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 9.799e-06/0.01279, allocations: 4 kB / 252.5 MB, free: 5.941 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 5.764e-05/0.01284, allocations: 60.7 kB / 252.6 MB, free: 5.879 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001728/0.01302, allocations: 44.53 kB / 252.6 MB, free: 5.836 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005489/0.01356, allocations: 330.2 kB / 252.9 MB, free: 5.484 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.424e-05/0.01361, allocations: 80.27 kB / 253 MB, free: 5.387 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 5.569e-05/0.01366, allocations: 21.94 kB / 253 MB, free: 5.359 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.536e-05/0.01374, allocations: 79.38 kB / 253.1 MB, free: 5.281 MB / 250.7 MB Notification: Performance of SimCode: time 8.92e-07/0.01374, allocations: 0 / 253.1 MB, free: 5.281 MB / 250.7 MB Notification: Performance of Templates: time 0.003698/0.01744, allocations: 1.928 MB / 255 MB, free: 3.391 MB / 250.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & ./Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3 -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/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.434914557263255]