Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001639/0.001639, allocations: 81.58 kB / 20.68 MB, free: 1.027 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001378/0.001378, allocations: 149.8 kB / 23.94 MB, free: 4.164 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.43/1.43, allocations: 173.3 MB / 200.4 MB, free: 12.85 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.523e-06/1.523e-06, allocations: 0 / 318.9 MB, free: 3.559 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.274e-05/2.427e-05, allocations: 2.281 kB / 318.9 MB, free: 3.555 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.002419/0.002443, allocations: 1.665 MB / 320.6 MB, free: 2.414 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006441/0.003088, allocations: 295.3 kB / 320.8 MB, free: 2.215 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.404e-05/0.003172, allocations: 3.438 kB / 320.8 MB, free: 2.215 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001164/0.003288, allocations: 27.44 kB / 320.9 MB, free: 2.195 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 5.565e-05/0.003344, allocations: 22.94 kB / 320.9 MB, free: 2.176 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003675/0.003711, allocations: 121.6 kB / 321 MB, free: 2.113 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002894/0.004001, allocations: 278.4 kB / 321.3 MB, free: 1.988 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002504/0.004251, allocations: 157 kB / 321.4 MB, free: 1.914 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001461/0.004397, allocations: 135.3 kB / 321.6 MB, free: 1.852 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001258/0.004523, allocations: 77.05 kB / 321.6 MB, free: 1.816 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.289e-05/0.004566, allocations: 23.78 kB / 321.7 MB, free: 1.816 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.308e-05/0.004649, allocations: 33.84 kB / 321.7 MB, free: 1.812 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.257e-05/0.004712, allocations: 56.25 kB / 321.8 MB, free: 1.777 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 8.019e-05/0.004792, allocations: 70.28 kB / 321.8 MB, free: 1.738 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002959/0.005088, allocations: 267.2 kB / 322.1 MB, free: 1.617 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.985e-06/0.005091, allocations: 1.062 kB / 322.1 MB, free: 1.617 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.052e-06/0.005092, allocations: 0 / 322.1 MB, free: 1.617 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.809e-06/0.005096, allocations: 3.938 kB / 322.1 MB, free: 1.613 MB / 286.1 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.0005575/0.005654, allocations: 428.9 kB / 322.5 MB, free: 1.254 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.239e-05/0.005686, allocations: 10.12 kB / 322.5 MB, free: 1.254 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.779e-05/0.005744, allocations: 24.17 kB / 322.5 MB, free: 1.242 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002864/0.006031, allocations: 165.1 kB / 322.7 MB, free: 1.09 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.356e-05/0.006064, allocations: 21.3 kB / 322.7 MB, free: 1.082 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.388e-05/0.006108, allocations: 31 kB / 322.8 MB, free: 1.07 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004328/0.006541, allocations: 272 kB / 323 MB, free: 0.918 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.34e-05/0.006554, allocations: 192 / 323 MB, free: 0.918 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.603e-05/0.00658, allocations: 11.41 kB / 323 MB, free: 0.9102 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.766e-06/0.006589, allocations: 11.53 kB / 323 MB, free: 0.9062 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002849/0.006874, allocations: 168 kB / 323.2 MB, free: 0.8477 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008738/0.007748, allocations: 0.8491 MB / 324.1 MB, free: 140 kB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002594/0.008007, allocations: 154.3 kB / 324.2 MB, free: 48 kB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001032/0.00811, allocations: 68.91 kB / 324.3 MB, free: 12 kB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.165e-05/0.008132, allocations: 2.75 kB / 324.3 MB, free: 12 kB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000277/0.008409, allocations: 146.2 kB / 324.4 MB, free: 15.91 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.633e-06/0.008411, allocations: 0 / 324.4 MB, free: 15.91 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.000473/0.008884, allocations: 231.2 kB / 324.6 MB, free: 15.81 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.069e-05/0.008944, allocations: 82.59 kB / 324.7 MB, free: 15.72 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001415/0.009086, allocations: 158.2 kB / 324.9 MB, free: 15.59 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.235e-05/0.009128, allocations: 36.33 kB / 324.9 MB, free: 15.55 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001074/0.009236, allocations: 139.3 kB / 325.1 MB, free: 15.42 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.436e-05/0.0093, allocations: 66.7 kB / 325.1 MB, free: 15.37 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001158/0.009416, allocations: 82.42 kB / 325.2 MB, free: 15.32 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001538/0.009569, allocations: 324.1 kB / 325.5 MB, free: 15.01 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001361/0.009706, allocations: 63.02 kB / 325.6 MB, free: 14.99 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002082/0.009914, allocations: 148.7 kB / 325.7 MB, free: 14.87 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003691/0.01028, allocations: 194.4 kB / 325.9 MB, free: 14.73 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.408e-06/0.01029, allocations: 5.031 kB / 325.9 MB, free: 14.72 MB / 302.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0004557/0.01074, allocations: 259.8 kB / 326.2 MB, free: 14.6 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.514e-05/0.01076, allocations: 9.906 kB / 326.2 MB, free: 14.6 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.583e-06/0.01076, allocations: 2.875 kB / 326.2 MB, free: 14.6 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.314e-05/0.01079, allocations: 8.484 kB / 326.2 MB, free: 14.6 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001485/0.01094, allocations: 35.47 kB / 326.2 MB, free: 14.59 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.176e-05/0.01095, allocations: 8.453 kB / 326.2 MB, free: 14.59 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000114/0.01106, allocations: 29.05 kB / 326.3 MB, free: 14.57 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.328e-05/0.0111, allocations: 15.89 kB / 326.3 MB, free: 14.56 MB / 302.1 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,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 (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.0001642/0.01126, allocations: 154 kB / 326.4 MB, free: 14.42 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.03e-05/0.01129, allocations: 19.23 kB / 326.4 MB, free: 14.41 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003738/0.01166, allocations: 201 kB / 326.6 MB, free: 14.31 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.967e-06/0.01167, allocations: 2.844 kB / 326.6 MB, free: 14.31 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.819e-06/0.01167, allocations: 5 kB / 326.7 MB, free: 14.31 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.29e-06/0.01168, allocations: 1.562 kB / 326.7 MB, free: 14.31 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007423/0.01242, allocations: 0.5052 MB / 327.2 MB, free: 13.94 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.006e-06/0.01242, allocations: 2.078 kB / 327.2 MB, free: 13.94 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.919e-05/0.0125, allocations: 18.03 kB / 327.2 MB, free: 13.93 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.557e-06/0.01251, allocations: 5.156 kB / 327.2 MB, free: 13.93 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.14e-05/0.01253, allocations: 7.922 kB / 327.2 MB, free: 13.93 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.655e-06/0.01253, allocations: 1.062 kB / 327.2 MB, free: 13.93 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.784e-06/0.01253, allocations: 1.625 kB / 327.2 MB, free: 13.93 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003737/0.01291, allocations: 294 kB / 327.5 MB, free: 13.73 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.102e-05/0.01293, allocations: 17.41 kB / 327.5 MB, free: 13.71 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.28e-05/0.01296, allocations: 6.953 kB / 327.5 MB, free: 13.71 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001005/0.01306, allocations: 8.734 kB / 327.5 MB, free: 13.71 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.119e-05/0.01314, allocations: 18.64 kB / 327.5 MB, free: 13.71 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.948e-05/0.01316, allocations: 10.73 kB / 327.5 MB, free: 13.7 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.823e-05/0.01324, allocations: 106.9 kB / 327.6 MB, free: 13.62 MB / 302.1 MB Notification: Performance of sort global known variables: time 7e-08/0.01324, allocations: 0 / 327.6 MB, free: 13.62 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003163/0.01355, allocations: 51.27 kB / 327.7 MB, free: 13.6 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 20 (transition2.t_start,step.localActive,transition1.enableFire,step.active,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: 3 (initialStep.newActive,step.newActive,transition2.t_start) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 21 * 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.0001772/0.01373, allocations: 119.4 kB / 327.8 MB, free: 13.5 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003445/0.01408, allocations: 169.2 kB / 328 MB, free: 13.45 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.01408, allocations: 0 / 328 MB, free: 13.45 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001547/0.01423, allocations: 81.78 kB / 328.1 MB, free: 13.42 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002957/0.01453, allocations: 24.36 kB / 328.1 MB, free: 13.41 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000641/0.01517, allocations: 349.2 kB / 328.4 MB, free: 13.18 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001386/0.01531, allocations: 130.5 kB / 328.6 MB, free: 13.09 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.897e-05/0.01539, allocations: 25 kB / 328.6 MB, free: 13.09 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.547e-05/0.01545, allocations: 24.62 kB / 328.6 MB, free: 13.08 MB / 302.1 MB Notification: Performance of SimCode: time 3.2e-07/0.01545, allocations: 0 / 328.6 MB, free: 13.08 MB / 302.1 MB Notification: Performance of Templates: time 0.005803/0.02126, allocations: 1.923 MB / 330.5 MB, free: 12.77 MB / 302.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & ./Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample_Variant3/FirstExample_Variant3.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.287396911531687]