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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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=5000,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=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001158/0.001158, allocations: 115.7 kB / 17.74 MB, free: 5.297 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001337/0.001337, allocations: 189.6 kB / 18.67 MB, free: 4.375 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.328/1.328, allocations: 222.9 MB / 242.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001163/0.001163, allocations: 43.94 kB / 351.9 MB, free: 3.289 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2551/0.2563, allocations: 49.45 MB / 401.4 MB, free: 8.754 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.003172/0.2595, allocations: 1.69 MB / 403.1 MB, free: 7.211 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.000727/0.2602, allocations: 291.2 kB / 403.4 MB, free: 6.926 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001223/0.2604, allocations: 4 kB / 403.4 MB, free: 6.922 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001439/0.2605, allocations: 35.61 kB / 403.4 MB, free: 6.887 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 6.433e-05/0.2606, allocations: 15.8 kB / 403.4 MB, free: 6.871 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004287/0.2611, allocations: 123.8 kB / 403.5 MB, free: 6.75 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003317/0.2614, allocations: 275.4 kB / 403.8 MB, free: 6.48 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003428/0.2618, allocations: 177.5 kB / 404 MB, free: 6.309 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001159/0.2619, allocations: 87.72 kB / 404.1 MB, free: 6.223 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001477/0.262, allocations: 103.5 kB / 404.2 MB, free: 6.121 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.659e-05/0.2621, allocations: 24 kB / 404.2 MB, free: 6.098 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.029e-05/0.2622, allocations: 32 kB / 404.2 MB, free: 6.066 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.414e-05/0.2623, allocations: 63.81 kB / 404.3 MB, free: 6.004 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001024/0.2624, allocations: 99.47 kB / 404.4 MB, free: 5.906 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003009/0.2627, allocations: 251.1 kB / 404.6 MB, free: 5.66 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.987e-06/0.2627, allocations: 0 / 404.6 MB, free: 5.66 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.2627, allocations: 0 / 404.6 MB, free: 5.66 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.476e-06/0.2627, allocations: 0 / 404.6 MB, free: 5.66 MB / 318.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.0006907/0.2634, allocations: 499.8 kB / 405.1 MB, free: 5.121 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.971e-05/0.2635, allocations: 11.89 kB / 405.1 MB, free: 5.109 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.229e-05/0.2635, allocations: 24.66 kB / 405.1 MB, free: 5.086 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003234/0.2639, allocations: 236 kB / 405.4 MB, free: 4.816 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.279e-05/0.2639, allocations: 24.94 kB / 405.4 MB, free: 4.793 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.022e-05/0.264, allocations: 28.38 kB / 405.4 MB, free: 4.766 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004546/0.2644, allocations: 270.6 kB / 405.7 MB, free: 4.48 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.916e-05/0.2645, allocations: 4.188 kB / 405.7 MB, free: 4.477 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.833e-05/0.2645, allocations: 7.938 kB / 405.7 MB, free: 4.469 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.846e-06/0.2645, allocations: 15.94 kB / 405.7 MB, free: 4.453 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002968/0.2648, allocations: 165.6 kB / 405.9 MB, free: 4.293 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001159/0.266, allocations: 0.9711 MB / 406.9 MB, free: 3.258 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003065/0.2663, allocations: 169.5 kB / 407 MB, free: 3.074 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001202/0.2664, allocations: 83.12 kB / 407.1 MB, free: 2.988 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.998e-05/0.2665, allocations: 4 kB / 407.1 MB, free: 2.984 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002152/0.2667, allocations: 140.7 kB / 407.2 MB, free: 2.832 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 1.853e-06/0.2667, allocations: 0 / 407.2 MB, free: 2.832 MB / 318.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004412/0.2671, allocations: 217.3 kB / 407.5 MB, free: 2.613 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.282e-05/0.2672, allocations: 85.11 kB / 407.5 MB, free: 2.512 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000131/0.2673, allocations: 152.7 kB / 407.7 MB, free: 2.355 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.45e-05/0.2674, allocations: 41.69 kB / 407.7 MB, free: 2.309 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.888e-05/0.2675, allocations: 152.5 kB / 407.9 MB, free: 2.156 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.45e-05/0.2675, allocations: 47.36 kB / 407.9 MB, free: 2.109 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001018/0.2677, allocations: 85.58 kB / 408 MB, free: 2.02 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001139/0.2678, allocations: 330.8 kB / 408.3 MB, free: 1.688 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000126/0.2679, allocations: 63.97 kB / 408.4 MB, free: 1.625 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001622/0.2681, allocations: 152.2 kB / 408.5 MB, free: 1.445 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002601/0.2683, allocations: 200.8 kB / 408.7 MB, free: 1.219 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.106e-06/0.2683, allocations: 0 / 408.7 MB, free: 1.219 MB / 318.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003854/0.2687, allocations: 253.4 kB / 409 MB, free: 0.9648 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.715e-05/0.2688, allocations: 12.06 kB / 409 MB, free: 0.9531 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.043e-06/0.2688, allocations: 0 / 409 MB, free: 0.9531 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.994e-05/0.2688, allocations: 4 kB / 409 MB, free: 0.9492 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001483/0.269, allocations: 35.91 kB / 409 MB, free: 0.9141 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.658e-06/0.269, allocations: 4 kB / 409 MB, free: 0.9102 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001139/0.2691, allocations: 27.78 kB / 409.1 MB, free: 0.8828 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.183e-05/0.2691, allocations: 12 kB / 409.1 MB, free: 0.8711 MB / 318.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.0001481/0.2693, allocations: 157.7 kB / 409.2 MB, free: 0.707 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.123e-05/0.2693, allocations: 19.81 kB / 409.3 MB, free: 0.6875 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003277/0.2697, allocations: 194.3 kB / 409.4 MB, free: 0.4922 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.011e-06/0.2697, allocations: 4 kB / 409.4 MB, free: 500 kB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.102e-06/0.2697, allocations: 0 / 409.4 MB, free: 500 kB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.945e-06/0.2697, allocations: 3.984 kB / 409.4 MB, free: 496 kB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007484/0.2705, allocations: 0.5948 MB / 410 MB, free: 15.82 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.324e-06/0.2705, allocations: 0 / 410 MB, free: 15.82 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.811e-05/0.2706, allocations: 19.92 kB / 410.1 MB, free: 15.8 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.571e-06/0.2706, allocations: 8 kB / 410.1 MB, free: 15.8 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.702e-05/0.2706, allocations: 7.938 kB / 410.1 MB, free: 15.79 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.535e-06/0.2706, allocations: 0 / 410.1 MB, free: 15.79 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.394e-06/0.2706, allocations: 4 kB / 410.1 MB, free: 15.79 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003118/0.2709, allocations: 279.9 kB / 410.4 MB, free: 15.49 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.819e-05/0.271, allocations: 96.95 kB / 410.5 MB, free: 15.38 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.821e-05/0.271, allocations: 7.922 kB / 410.5 MB, free: 15.37 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.827e-05/0.2711, allocations: 16 kB / 410.5 MB, free: 15.36 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.03e-05/0.2712, allocations: 23.91 kB / 410.5 MB, free: 15.33 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.489e-05/0.2712, allocations: 8 kB / 410.5 MB, free: 15.32 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.492e-05/0.2713, allocations: 99.27 kB / 410.6 MB, free: 15.23 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2713, allocations: 0 / 410.6 MB, free: 15.23 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000318/0.2716, allocations: 51.84 kB / 410.7 MB, free: 15.18 MB / 334.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.0001507/0.2718, allocations: 107.2 kB / 410.8 MB, free: 15.06 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003448/0.2721, allocations: 192 kB / 410.9 MB, free: 14.88 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.305e-06/0.2721, allocations: 3.938 kB / 410.9 MB, free: 14.87 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001258/0.2723, allocations: 84.28 kB / 411 MB, free: 14.79 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002979/0.2726, allocations: 27.92 kB / 411.1 MB, free: 14.76 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000604/0.2732, allocations: 379.1 kB / 411.4 MB, free: 14.36 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003235/0.2735, allocations: 0.7402 MB / 412.2 MB, free: 13.59 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.441e-05/0.2736, allocations: 19.44 kB / 412.2 MB, free: 13.56 MB / 334.1 MB Notification: Performance of SimCode: time 2e-07/0.2736, allocations: 0 / 412.2 MB, free: 13.56 MB / 334.1 MB Notification: Performance of Templates: time 0.004508/0.2781, allocations: 2.448 MB / 414.6 MB, free: 11.12 MB / 334.1 MB make -j1 -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.makefile (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) diffSimulationResults("Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample_Variant3/FirstExample_Variant3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches