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.001377/0.001377, allocations: 84.69 kB / 21.43 MB, free: 296 kB / 14.72 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.001591/0.001591, allocations: 164 kB / 24.7 MB, free: 3.547 MB / 14.72 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 1.327/1.327, allocations: 158.6 MB / 186.5 MB, free: 6.398 MB / 174.1 MB " [Timeout remaining time 178] 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 2.014e-06/2.014e-06, allocations: 0 / 298.9 MB, free: 8.762 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.088e-05/3.289e-05, allocations: 2.281 kB / 298.9 MB, free: 8.758 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.003158/0.003191, allocations: 1.639 MB / 300.6 MB, free: 7.098 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008042/0.003995, allocations: 263.8 kB / 300.8 MB, free: 6.84 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001539/0.004149, allocations: 11.94 kB / 300.8 MB, free: 6.828 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000162/0.004311, allocations: 19.75 kB / 300.8 MB, free: 6.809 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 9.374e-05/0.004405, allocations: 23.73 kB / 300.9 MB, free: 6.785 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005559/0.00496, allocations: 115.8 kB / 301 MB, free: 6.672 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004437/0.005404, allocations: 279.5 kB / 301.3 MB, free: 6.398 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003694/0.005774, allocations: 159.5 kB / 301.4 MB, free: 6.242 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001944/0.005968, allocations: 135.8 kB / 301.5 MB, free: 6.109 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001479/0.006116, allocations: 79.75 kB / 301.6 MB, free: 6.031 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.177e-05/0.006168, allocations: 24 kB / 301.6 MB, free: 6.008 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.184e-05/0.00626, allocations: 35.88 kB / 301.7 MB, free: 5.973 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.88e-05/0.006338, allocations: 55.81 kB / 301.7 MB, free: 5.918 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 9.722e-05/0.006436, allocations: 71.81 kB / 301.8 MB, free: 5.848 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004432/0.006879, allocations: 259.1 kB / 302.1 MB, free: 5.594 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.586e-06/0.006887, allocations: 4 kB / 302.1 MB, free: 5.59 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.864e-06/0.006889, allocations: 0 / 302.1 MB, free: 5.59 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.196e-05/0.006901, allocations: 0 / 302.1 MB, free: 5.59 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.0008614/0.007762, allocations: 424.6 kB / 302.5 MB, free: 5.145 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.803e-05/0.00781, allocations: 15.98 kB / 302.5 MB, free: 5.129 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.12e-05/0.007892, allocations: 28.8 kB / 302.5 MB, free: 5.102 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004018/0.008293, allocations: 173.5 kB / 302.7 MB, free: 4.906 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.811e-05/0.008342, allocations: 24.81 kB / 302.7 MB, free: 4.883 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.177e-05/0.008383, allocations: 24.38 kB / 302.7 MB, free: 4.859 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005073/0.008891, allocations: 273.9 kB / 303 MB, free: 4.57 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.309e-05/0.008904, allocations: 192 / 303 MB, free: 4.57 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.35e-05/0.008937, allocations: 12.38 kB / 303 MB, free: 4.559 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.495e-05/0.008952, allocations: 4.375 kB / 303 MB, free: 4.555 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003443/0.009296, allocations: 173.8 kB / 303.2 MB, free: 4.383 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001285/0.01058, allocations: 0.8399 MB / 304 MB, free: 3.5 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003315/0.01091, allocations: 134.8 kB / 304.2 MB, free: 3.359 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001248/0.01104, allocations: 68.83 kB / 304.2 MB, free: 3.289 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.575e-05/0.01106, allocations: 4 kB / 304.2 MB, free: 3.285 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000229/0.01129, allocations: 115.2 kB / 304.3 MB, free: 3.16 MB / 286.1 MB Notification: Performance of pre-optimization done (n=23): time 2.014e-06/0.01129, allocations: 0 / 304.3 MB, free: 3.16 MB / 286.1 MB Notification: Performance of matching and sorting (n=23): time 0.0004791/0.01177, allocations: 217.3 kB / 304.6 MB, free: 2.941 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.238e-05/0.01184, allocations: 55.41 kB / 304.6 MB, free: 2.875 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001662/0.012, allocations: 162 kB / 304.8 MB, free: 2.707 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 4.525e-05/0.01205, allocations: 33.7 kB / 304.8 MB, free: 2.668 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001264/0.01217, allocations: 156.6 kB / 305 MB, free: 2.508 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.633e-05/0.01225, allocations: 63.52 kB / 305 MB, free: 2.445 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001216/0.01237, allocations: 78 kB / 305.1 MB, free: 2.359 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001725/0.01254, allocations: 326.8 kB / 305.4 MB, free: 2.031 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001412/0.01269, allocations: 64.62 kB / 305.5 MB, free: 1.969 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001954/0.01288, allocations: 145.7 kB / 305.6 MB, free: 1.797 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003243/0.01321, allocations: 188.4 kB / 305.8 MB, free: 1.582 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/0.01321, allocations: 0 / 305.8 MB, free: 1.582 MB / 286.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0004623/0.01367, allocations: 265.5 kB / 306.1 MB, free: 1.316 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.891e-05/0.01369, allocations: 4 kB / 306.1 MB, free: 1.312 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.708e-06/0.0137, allocations: 4 kB / 306.1 MB, free: 1.309 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.057e-05/0.01373, allocations: 4 kB / 306.1 MB, free: 1.305 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001614/0.01389, allocations: 35.86 kB / 306.1 MB, free: 1.27 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.263e-05/0.0139, allocations: 4 kB / 306.1 MB, free: 1.266 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000117/0.01402, allocations: 23.88 kB / 306.1 MB, free: 1.242 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.278e-05/0.01405, allocations: 12 kB / 306.1 MB, free: 1.23 MB / 286.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: 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.0001881/0.01424, allocations: 160.3 kB / 306.3 MB, free: 1.062 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.15e-05/0.01427, allocations: 23.88 kB / 306.3 MB, free: 1.039 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003781/0.01465, allocations: 194.8 kB / 306.5 MB, free: 0.8438 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.338e-06/0.01466, allocations: 0 / 306.5 MB, free: 0.8438 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.5e-06/0.01466, allocations: 0 / 306.5 MB, free: 0.8438 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.01e-06/0.01467, allocations: 0 / 306.5 MB, free: 0.8438 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007815/0.01545, allocations: 0.4971 MB / 307 MB, free: 312 kB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.152e-06/0.01545, allocations: 7.984 kB / 307 MB, free: 304 kB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.947e-05/0.01553, allocations: 12 kB / 307 MB, free: 292 kB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.893e-06/0.01554, allocations: 4 kB / 307 MB, free: 288 kB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.298e-05/0.01555, allocations: 0 / 307 MB, free: 288 kB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.154e-06/0.01556, allocations: 0 / 307 MB, free: 288 kB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.556e-06/0.01556, allocations: 7.984 kB / 307 MB, free: 280 kB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003888/0.01595, allocations: 287.7 kB / 307.3 MB, free: 15.97 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.775e-05/0.01598, allocations: 15.91 kB / 307.3 MB, free: 15.96 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.874e-05/0.016, allocations: 7.938 kB / 307.3 MB, free: 15.95 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.843e-05/0.01609, allocations: 8 kB / 307.4 MB, free: 15.95 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.65e-05/0.01618, allocations: 19.97 kB / 307.4 MB, free: 15.93 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.914e-05/0.01622, allocations: 11.98 kB / 307.4 MB, free: 15.91 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.645e-05/0.01629, allocations: 103.2 kB / 307.5 MB, free: 15.81 MB / 302.1 MB Notification: Performance of sort global known variables: time 9e-08/0.01629, allocations: 3.938 kB / 307.5 MB, free: 15.81 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003516/0.01665, allocations: 55.83 kB / 307.5 MB, free: 15.75 MB / 302.1 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.0001967/0.01684, allocations: 107.2 kB / 307.7 MB, free: 15.64 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003702/0.01721, allocations: 167.7 kB / 307.8 MB, free: 15.48 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.01722, allocations: 0 / 307.8 MB, free: 15.48 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001378/0.01735, allocations: 67.92 kB / 307.9 MB, free: 15.41 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003033/0.01766, allocations: 34.56 kB / 307.9 MB, free: 15.38 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007306/0.01839, allocations: 347.2 kB / 308.3 MB, free: 15.01 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001479/0.01853, allocations: 129.2 kB / 308.4 MB, free: 14.86 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.09e-05/0.01863, allocations: 29.94 kB / 308.4 MB, free: 14.83 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.59e-05/0.01869, allocations: 20.5 kB / 308.4 MB, free: 14.81 MB / 302.1 MB Notification: Performance of SimCode: time 9.12e-07/0.01869, allocations: 0 / 308.4 MB, free: 14.81 MB / 302.1 MB Notification: Performance of Templates: time 0.006323/0.02502, allocations: 1.922 MB / 310.4 MB, free: 12.9 MB / 302.1 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=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.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.26948706805706]