Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.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,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample") translateModel(Modelica.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001679/0.001679, allocations: 105.5 kB / 17.06 MB, free: 6.102 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.001768/0.001768, allocations: 194.9 kB / 18 MB, free: 5.176 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.611/1.611, allocations: 222.9 MB / 241.7 MB, free: 15.08 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00101/0.00101, allocations: 51.92 kB / 351.3 MB, free: 3.238 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3934/0.3944, allocations: 49.43 MB / 400.7 MB, free: 8.742 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.002531/0.397, allocations: 1.489 MB / 402.2 MB, free: 7.359 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006465/0.3977, allocations: 277.5 kB / 402.5 MB, free: 7.09 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.797e-05/0.3978, allocations: 4 kB / 402.5 MB, free: 7.086 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001359/0.3979, allocations: 23.67 kB / 402.5 MB, free: 7.062 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 4.337e-05/0.398, allocations: 19.81 kB / 402.5 MB, free: 7.043 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004158/0.3984, allocations: 115.8 kB / 402.6 MB, free: 6.93 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003015/0.3987, allocations: 263.5 kB / 402.9 MB, free: 6.672 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002793/0.399, allocations: 158.4 kB / 403 MB, free: 6.516 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.8e-05/0.3991, allocations: 83.77 kB / 403.1 MB, free: 6.434 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001264/0.3992, allocations: 99.53 kB / 403.2 MB, free: 6.336 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.669e-05/0.3993, allocations: 23.98 kB / 403.2 MB, free: 6.312 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.367e-05/0.3993, allocations: 32 kB / 403.3 MB, free: 6.281 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.448e-05/0.3994, allocations: 51.89 kB / 403.3 MB, free: 6.23 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001113/0.3995, allocations: 91.53 kB / 403.4 MB, free: 6.141 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002859/0.3998, allocations: 251 kB / 403.6 MB, free: 5.895 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.96e-06/0.3998, allocations: 0 / 403.6 MB, free: 5.895 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.3998, allocations: 0 / 403.6 MB, free: 5.895 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.021e-06/0.3999, allocations: 4 kB / 403.6 MB, free: 5.891 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: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.0007079/0.4006, allocations: 479.8 kB / 404.1 MB, free: 5.375 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.42e-05/0.4006, allocations: 12.03 kB / 404.1 MB, free: 5.363 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.294e-05/0.4007, allocations: 20.66 kB / 404.1 MB, free: 5.344 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003073/0.401, allocations: 232 kB / 404.4 MB, free: 5.078 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.064e-05/0.4011, allocations: 20.94 kB / 404.4 MB, free: 5.055 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.329e-05/0.4011, allocations: 24.38 kB / 404.4 MB, free: 5.031 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004148/0.4015, allocations: 244 kB / 404.7 MB, free: 4.785 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.406e-05/0.4015, allocations: 192 / 404.7 MB, free: 4.785 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.027e-05/0.4016, allocations: 15.94 kB / 404.7 MB, free: 4.77 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.414e-06/0.4016, allocations: 4 kB / 404.7 MB, free: 4.766 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003026/0.4019, allocations: 161.6 kB / 404.8 MB, free: 4.605 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001004/0.4029, allocations: 0.7011 MB / 405.5 MB, free: 3.852 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003035/0.4032, allocations: 174.2 kB / 405.7 MB, free: 3.676 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001192/0.4034, allocations: 80.83 kB / 405.8 MB, free: 3.594 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.23e-05/0.4034, allocations: 0 / 405.8 MB, free: 3.594 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002006/0.4036, allocations: 126.9 kB / 405.9 MB, free: 3.461 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 1.874e-06/0.4036, allocations: 4 kB / 405.9 MB, free: 3.457 MB / 318.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004286/0.404, allocations: 217.3 kB / 406.1 MB, free: 3.238 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.532e-05/0.4041, allocations: 55.41 kB / 406.2 MB, free: 3.172 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001231/0.4042, allocations: 149.6 kB / 406.3 MB, free: 3.02 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.436e-05/0.4043, allocations: 37.69 kB / 406.4 MB, free: 2.977 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.975e-05/0.4044, allocations: 140.6 kB / 406.5 MB, free: 2.836 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.584e-05/0.4044, allocations: 55.2 kB / 406.6 MB, free: 2.781 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001008/0.4045, allocations: 82 kB / 406.6 MB, free: 2.691 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001237/0.4047, allocations: 326.8 kB / 407 MB, free: 2.363 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001161/0.4048, allocations: 60.62 kB / 407 MB, free: 2.305 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001596/0.405, allocations: 132 kB / 407.1 MB, free: 2.152 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002576/0.4052, allocations: 171.6 kB / 407.3 MB, free: 1.961 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.025e-06/0.4052, allocations: 0 / 407.3 MB, free: 1.961 MB / 318.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003686/0.4056, allocations: 253.2 kB / 407.6 MB, free: 1.707 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.89e-05/0.4056, allocations: 4 kB / 407.6 MB, free: 1.703 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.123e-06/0.4057, allocations: 7.938 kB / 407.6 MB, free: 1.695 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.195e-05/0.4057, allocations: 7.984 kB / 407.6 MB, free: 1.688 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001421/0.4058, allocations: 23.92 kB / 407.6 MB, free: 1.664 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.846e-06/0.4058, allocations: 4 kB / 407.6 MB, free: 1.66 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.938e-05/0.4059, allocations: 27.75 kB / 407.6 MB, free: 1.633 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.988e-05/0.406, allocations: 12 kB / 407.6 MB, free: 1.621 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 31 ($PRE.transition1.enableFire,$PRE.transition2.enableFire,stateGraphRoot.activeSteps,transition2.t_start,$PRE.transition2.t_start,transition2.fire,transition2.enableFire,step.oldActive,$PRE.step.oldActive,step.newActive,$PRE.step.newActive,step.localActive,$PRE.step.localActive,step.active,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,transition2.condition,transition1.condition) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 39 * 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.00015/0.4061, allocations: 165.9 kB / 407.8 MB, free: 1.449 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.35e-05/0.4062, allocations: 15.78 kB / 407.8 MB, free: 1.434 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003584/0.4065, allocations: 198.3 kB / 408 MB, free: 1.234 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.2e-06/0.4066, allocations: 4 kB / 408 MB, free: 1.23 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.987e-06/0.4066, allocations: 0 / 408 MB, free: 1.23 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.759e-06/0.4066, allocations: 0 / 408 MB, free: 1.23 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006911/0.4073, allocations: 0.5685 MB / 408.6 MB, free: 0.6055 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/0.4073, allocations: 4 kB / 408.6 MB, free: 0.6016 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.929e-05/0.4074, allocations: 23.92 kB / 408.6 MB, free: 0.5781 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.929e-06/0.4074, allocations: 4 kB / 408.6 MB, free: 0.5742 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.377e-05/0.4074, allocations: 0 / 408.6 MB, free: 0.5742 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.014e-06/0.4074, allocations: 0 / 408.6 MB, free: 0.5742 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.958e-06/0.4074, allocations: 7.922 kB / 408.6 MB, free: 0.5664 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003039/0.4077, allocations: 283.2 kB / 408.9 MB, free: 280 kB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.77e-05/0.4078, allocations: 85.02 kB / 409 MB, free: 176 kB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.751e-05/0.4078, allocations: 8 kB / 409 MB, free: 168 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.728e-05/0.4079, allocations: 15.98 kB / 409 MB, free: 152 kB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.802e-05/0.408, allocations: 27.91 kB / 409 MB, free: 124 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.525e-05/0.408, allocations: 4 kB / 409 MB, free: 120 kB / 318.1 MB Notification: Performance of sorting global known variables: time 5.205e-05/0.4081, allocations: 99.2 kB / 409.1 MB, free: 20 kB / 318.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4081, allocations: 0 / 409.1 MB, free: 20 kB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003203/0.4084, allocations: 47.92 kB / 409.2 MB, free: 15.97 MB / 334.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 (transition2.enableFire,step.active,transition1.enableFire,initialStep.active,$cse1,$cse2,$whenCondition2,$whenCondition1,initialStep.localActive,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.localActive,step.newActive,step.oldActive,transition2.fire,transition2.t_start,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 (26): * Single equations (assignments): 22 * 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.0001489/0.4086, allocations: 111.2 kB / 409.3 MB, free: 15.85 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003316/0.4089, allocations: 188 kB / 409.5 MB, free: 15.67 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.4089, allocations: 0 / 409.5 MB, free: 15.67 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001327/0.4091, allocations: 88.23 kB / 409.6 MB, free: 15.58 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002949/0.4094, allocations: 19.98 kB / 409.6 MB, free: 15.56 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006336/0.41, allocations: 328.1 kB / 409.9 MB, free: 15.21 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003619/0.4104, allocations: 0.7366 MB / 410.6 MB, free: 14.45 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 7.613e-05/0.4105, allocations: 25.89 kB / 410.7 MB, free: 14.42 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.132e-05/0.4105, allocations: 23.42 kB / 410.7 MB, free: 14.4 MB / 334.1 MB Notification: Performance of SimCode: time 2.51e-07/0.4105, allocations: 4 kB / 410.7 MB, free: 14.39 MB / 334.1 MB Notification: Performance of Templates: time 0.005359/0.4159, allocations: 1.89 MB / 412.6 MB, free: 12.52 MB / 334.1 MB make -j1 -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.makefile (rm -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.sim & ./Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample/FirstExample.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches