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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001076/0.001076, allocations: 178.5 kB / 17.04 MB, free: 5.113 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.218/1.218, allocations: 223.3 MB / 241 MB, free: 11.79 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007052/0.0007052, allocations: 97.19 kB / 292.2 MB, free: 10.89 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002343/0.0002343, allocations: 11.94 kB / 351.8 MB, free: 15.3 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1941/0.1943, allocations: 50.4 MB / 402.2 MB, free: 32.59 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.001143/0.1955, allocations: 1.203 MB / 403.4 MB, free: 31.38 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004749/0.196, allocations: 287.2 kB / 403.7 MB, free: 31.1 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.667e-05/0.1961, allocations: 4 kB / 403.7 MB, free: 31.1 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 9.559e-05/0.1962, allocations: 27.73 kB / 403.7 MB, free: 31.07 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 3.088e-05/0.1963, allocations: 3.938 kB / 403.7 MB, free: 31.07 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002739/0.1965, allocations: 95.81 kB / 403.8 MB, free: 30.97 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001861/0.1967, allocations: 219.6 kB / 404 MB, free: 30.76 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001895/0.1969, allocations: 129.4 kB / 404.1 MB, free: 30.63 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.628e-05/0.197, allocations: 65.03 kB / 404.2 MB, free: 30.57 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.252e-05/0.1971, allocations: 71.61 kB / 404.3 MB, free: 30.5 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.349e-05/0.1971, allocations: 12 kB / 404.3 MB, free: 30.48 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.307e-05/0.1972, allocations: 22.08 kB / 404.3 MB, free: 30.46 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.673e-05/0.1972, allocations: 39.84 kB / 404.3 MB, free: 30.43 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.509e-05/0.1973, allocations: 53.64 kB / 404.4 MB, free: 30.37 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001276/0.1974, allocations: 151.7 kB / 404.5 MB, free: 30.22 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.1974, allocations: 0 / 404.5 MB, free: 30.22 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.144e-06/0.1974, allocations: 0 / 404.5 MB, free: 30.22 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.388e-06/0.1974, allocations: 2.969 kB / 404.6 MB, free: 30.22 MB / 298.7 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.000493/0.1979, allocations: 444 kB / 405 MB, free: 29.74 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.911e-05/0.1979, allocations: 8.031 kB / 405 MB, free: 29.73 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.603e-05/0.198, allocations: 31.61 kB / 405 MB, free: 29.7 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001633/0.1982, allocations: 229.5 kB / 405.2 MB, free: 29.44 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.968e-05/0.1982, allocations: 20.56 kB / 405.3 MB, free: 29.42 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.001e-05/0.1982, allocations: 28 kB / 405.3 MB, free: 29.39 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003236/0.1986, allocations: 235.5 kB / 405.5 MB, free: 29.15 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.416e-06/0.1986, allocations: 0 / 405.5 MB, free: 29.15 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.015e-05/0.1986, allocations: 16 kB / 405.5 MB, free: 29.13 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.143e-06/0.1986, allocations: 7.938 kB / 405.5 MB, free: 29.12 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002244/0.1989, allocations: 165.5 kB / 405.7 MB, free: 28.96 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007082/0.1996, allocations: 0.6975 MB / 406.4 MB, free: 28.21 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002225/0.1998, allocations: 171.3 kB / 406.6 MB, free: 28.04 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.339e-05/0.1999, allocations: 84.2 kB / 406.7 MB, free: 27.95 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.799e-05/0.1999, allocations: 192 / 406.7 MB, free: 27.95 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001728/0.2001, allocations: 123.4 kB / 406.8 MB, free: 27.82 MB / 298.7 MB Notification: Performance of pre-optimization done (n=24): time 2.385e-06/0.2001, allocations: 0 / 406.8 MB, free: 27.82 MB / 298.7 MB Notification: Performance of matching and sorting (n=24): time 0.000316/0.2004, allocations: 211.8 kB / 407 MB, free: 27.61 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.892e-05/0.2005, allocations: 59.27 kB / 407 MB, free: 27.54 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.602e-05/0.2006, allocations: 152.5 kB / 407.2 MB, free: 27.38 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.988e-05/0.2006, allocations: 37.64 kB / 407.2 MB, free: 27.34 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.01e-05/0.2006, allocations: 136.6 kB / 407.4 MB, free: 27.2 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.082e-05/0.2007, allocations: 63.19 kB / 407.4 MB, free: 27.14 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.046e-05/0.2007, allocations: 12 kB / 407.4 MB, free: 27.12 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.672e-05/0.2007, allocations: 322.8 kB / 407.8 MB, free: 26.8 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.96e-05/0.2008, allocations: 60.62 kB / 407.8 MB, free: 26.74 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001098/0.201, allocations: 132 kB / 407.9 MB, free: 26.59 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.71e-05/0.2011, allocations: 68.47 kB / 408 MB, free: 26.52 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.2011, allocations: 0 / 408 MB, free: 26.52 MB / 298.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0002669/0.2013, allocations: 245.2 kB / 408.2 MB, free: 26.27 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.358e-05/0.2014, allocations: 12.22 kB / 408.3 MB, free: 26.26 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.909e-06/0.2014, allocations: 0 / 408.3 MB, free: 26.26 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.492e-05/0.2014, allocations: 4 kB / 408.3 MB, free: 26.26 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001166/0.2015, allocations: 31.92 kB / 408.3 MB, free: 26.23 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.263e-06/0.2015, allocations: 4 kB / 408.3 MB, free: 26.22 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.25e-05/0.2016, allocations: 19.84 kB / 408.3 MB, free: 26.2 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.261e-05/0.2016, allocations: 15.98 kB / 408.3 MB, free: 26.19 MB / 298.7 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,$whenCondition2,$whenCondition1,initialStep.active,$PRE.initialStep.localActive,initialStep.localActive,$PRE.initialStep.newActive,initialStep.newActive,$PRE.initialStep.oldActive,initialStep.oldActive,transition1.enableFire,transition1.fire,$PRE.transition1.t_start,transition1.t_start,step.active,$PRE.step.localActive,step.localActive,$PRE.step.newActive,step.newActive,$PRE.step.oldActive,step.oldActive,transition2.enableFire,transition2.fire,$PRE.transition2.t_start,transition2.t_start,stateGraphRoot.activeSteps,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.532e-05/0.2017, allocations: 153.7 kB / 408.5 MB, free: 26.03 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.739e-05/0.2018, allocations: 15.81 kB / 408.5 MB, free: 26.01 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002679/0.202, allocations: 198.3 kB / 408.7 MB, free: 25.81 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.845e-06/0.2021, allocations: 4 kB / 408.7 MB, free: 25.8 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.427e-06/0.2021, allocations: 0 / 408.7 MB, free: 25.8 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.878e-06/0.2021, allocations: 0 / 408.7 MB, free: 25.8 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004947/0.2026, allocations: 0.5741 MB / 409.3 MB, free: 25.18 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.2026, allocations: 0 / 409.3 MB, free: 25.18 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.773e-05/0.2027, allocations: 19.98 kB / 409.3 MB, free: 25.16 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.715e-06/0.2027, allocations: 0 / 409.3 MB, free: 25.16 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.212e-05/0.2027, allocations: 11.94 kB / 409.3 MB, free: 25.14 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.523e-06/0.2027, allocations: 0 / 409.3 MB, free: 25.14 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.2027, allocations: 0 / 409.3 MB, free: 25.14 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002057/0.2029, allocations: 283.6 kB / 409.6 MB, free: 24.85 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.038e-05/0.2029, allocations: 96.89 kB / 409.7 MB, free: 24.74 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.193e-05/0.203, allocations: 11.98 kB / 409.7 MB, free: 24.73 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.112e-05/0.203, allocations: 8 kB / 409.7 MB, free: 24.72 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.755e-05/0.2031, allocations: 19.97 kB / 409.7 MB, free: 24.7 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.406e-05/0.2031, allocations: 11.98 kB / 409.7 MB, free: 24.69 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.183e-05/0.2032, allocations: 99.2 kB / 409.8 MB, free: 24.59 MB / 298.7 MB Notification: Performance of sort global known variables: time 1e-07/0.2032, allocations: 0 / 409.8 MB, free: 24.59 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002406/0.2034, allocations: 51.84 kB / 409.9 MB, free: 24.54 MB / 298.7 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.localActive,transition1.enableFire,initialStep.localActive,$cse1,$cse2,$whenCondition2,$whenCondition1,initialStep.active,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.active,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001083/0.2035, allocations: 107.2 kB / 410 MB, free: 24.43 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002358/0.2038, allocations: 179.8 kB / 410.2 MB, free: 24.25 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.2038, allocations: 0 / 410.2 MB, free: 24.25 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 9.591e-05/0.2039, allocations: 79.91 kB / 410.2 MB, free: 24.17 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002361/0.2041, allocations: 23.94 kB / 410.3 MB, free: 24.15 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004407/0.2046, allocations: 408.9 kB / 410.7 MB, free: 23.71 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001252/0.2047, allocations: 0.7328 MB / 411.4 MB, free: 22.96 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.813e-05/0.2048, allocations: 19.44 kB / 411.4 MB, free: 22.94 MB / 298.7 MB Notification: Performance of SimCode: time 2.21e-07/0.2048, allocations: 0 / 411.4 MB, free: 22.94 MB / 298.7 MB Notification: Performance of Templates: time 0.002987/0.2078, allocations: 2.323 MB / 413.7 MB, free: 20.63 MB / 298.7 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample/FirstExample.csv","../files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches