Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_trunk_Modelica.StateGraph.Examples.FirstExample") translateModel(Modelica.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_trunk_Modelica.StateGraph.Examples.FirstExample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.002163/0.002163, allocations: 118.2 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002525/0.002525, allocations: 197.2 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.532/1.532, allocations: 227.4 MB / 246.9 MB, free: 10.52 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001835/0.001835, allocations: 59.91 kB / 358.7 MB, free: 12.98 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4165/0.4184, allocations: 50.55 MB / 409.2 MB, free: 1.617 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.003316/0.4217, allocations: 1.493 MB / 410.7 MB, free: 124 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008925/0.4227, allocations: 279.2 kB / 411 MB, free: 15.85 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001582/0.4228, allocations: 3.938 kB / 411 MB, free: 15.84 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001722/0.423, allocations: 23.75 kB / 411 MB, free: 15.82 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 7.43e-05/0.4231, allocations: 19.8 kB / 411 MB, free: 15.8 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005395/0.4237, allocations: 111.8 kB / 411.1 MB, free: 15.69 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004286/0.4241, allocations: 255.6 kB / 411.4 MB, free: 15.44 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003842/0.4245, allocations: 166.3 kB / 411.5 MB, free: 15.27 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001496/0.4247, allocations: 87.75 kB / 411.6 MB, free: 15.19 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001883/0.4249, allocations: 99.47 kB / 411.7 MB, free: 15.09 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.408e-05/0.4249, allocations: 24 kB / 411.8 MB, free: 15.07 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.704e-05/0.425, allocations: 24 kB / 411.8 MB, free: 15.04 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.858e-05/0.4251, allocations: 55.83 kB / 411.8 MB, free: 14.99 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000128/0.4252, allocations: 99.52 kB / 411.9 MB, free: 14.89 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003779/0.4256, allocations: 243.1 kB / 412.2 MB, free: 14.65 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.242e-06/0.4256, allocations: 4 kB / 412.2 MB, free: 14.65 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.4256, allocations: 0 / 412.2 MB, free: 14.65 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.021e-05/0.4256, allocations: 0 / 412.2 MB, free: 14.65 MB / 334.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.0008395/0.4265, allocations: 475.8 kB / 412.6 MB, free: 14.13 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.741e-05/0.4265, allocations: 12.03 kB / 412.6 MB, free: 14.12 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002676/0.4268, allocations: 28.64 kB / 412.7 MB, free: 14.09 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003544/0.4272, allocations: 232 kB / 412.9 MB, free: 13.83 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.138e-05/0.4272, allocations: 24.92 kB / 412.9 MB, free: 13.8 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.742e-05/0.4273, allocations: 36.31 kB / 413 MB, free: 13.77 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004355/0.4277, allocations: 240 kB / 413.2 MB, free: 13.52 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.234e-05/0.4278, allocations: 192 / 413.2 MB, free: 13.52 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.472e-05/0.4278, allocations: 7.938 kB / 413.2 MB, free: 13.52 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.065e-05/0.4278, allocations: 8 kB / 413.2 MB, free: 13.51 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002915/0.4281, allocations: 157.6 kB / 413.4 MB, free: 13.35 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001036/0.4291, allocations: 0.6934 MB / 414.1 MB, free: 12.61 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002974/0.4295, allocations: 166.8 kB / 414.2 MB, free: 12.43 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001203/0.4296, allocations: 76.83 kB / 414.3 MB, free: 12.36 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.689e-05/0.4296, allocations: 4 kB / 414.3 MB, free: 12.35 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001939/0.4298, allocations: 119.3 kB / 414.4 MB, free: 12.22 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.553e-06/0.4298, allocations: 0 / 414.4 MB, free: 12.22 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004213/0.4303, allocations: 220.4 kB / 414.6 MB, free: 12 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.521e-05/0.4303, allocations: 55.41 kB / 414.7 MB, free: 11.94 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001277/0.4304, allocations: 153.4 kB / 414.8 MB, free: 11.78 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.444e-05/0.4305, allocations: 37.7 kB / 414.9 MB, free: 11.74 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.938e-05/0.4306, allocations: 136.5 kB / 415 MB, free: 11.6 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.215e-05/0.4306, allocations: 59.2 kB / 415.1 MB, free: 11.54 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001009/0.4308, allocations: 77.92 kB / 415.1 MB, free: 11.46 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001221/0.4309, allocations: 326.8 kB / 415.5 MB, free: 11.13 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001074/0.431, allocations: 64.62 kB / 415.5 MB, free: 11.07 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001559/0.4312, allocations: 128.1 kB / 415.6 MB, free: 10.92 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002298/0.4314, allocations: 179.1 kB / 415.8 MB, free: 10.72 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.815e-06/0.4314, allocations: 0 / 415.8 MB, free: 10.72 MB / 334.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003246/0.4317, allocations: 237.3 kB / 416.1 MB, free: 10.48 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.984e-05/0.4318, allocations: 8 kB / 416.1 MB, free: 10.47 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.503e-06/0.4318, allocations: 0 / 416.1 MB, free: 10.47 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.116e-05/0.4318, allocations: 4 kB / 416.1 MB, free: 10.47 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000143/0.432, allocations: 31.92 kB / 416.1 MB, free: 10.44 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.748e-06/0.432, allocations: 7.938 kB / 416.1 MB, free: 10.43 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.339e-05/0.4321, allocations: 27.73 kB / 416.1 MB, free: 10.4 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.904e-05/0.4321, allocations: 16.16 kB / 416.1 MB, free: 10.39 MB / 334.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.0001469/0.4323, allocations: 153.7 kB / 416.3 MB, free: 10.23 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.398e-05/0.4323, allocations: 19.75 kB / 416.3 MB, free: 10.21 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.428e-05/0.4323, allocations: 20.83 kB / 416.3 MB, free: 10.19 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.302e-06/0.4324, allocations: 4 kB / 416.3 MB, free: 10.18 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.899e-06/0.4324, allocations: 3.938 kB / 416.3 MB, free: 10.18 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.987e-06/0.4324, allocations: 0 / 416.3 MB, free: 10.18 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006498/0.433, allocations: 0.5492 MB / 416.9 MB, free: 9.574 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.723e-06/0.433, allocations: 0 / 416.9 MB, free: 9.574 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.041e-05/0.4331, allocations: 19.98 kB / 416.9 MB, free: 9.555 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.994e-06/0.4331, allocations: 0 / 416.9 MB, free: 9.555 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.349e-05/0.4331, allocations: 0 / 416.9 MB, free: 9.555 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.717e-06/0.4332, allocations: 4 kB / 416.9 MB, free: 9.551 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/0.4332, allocations: 0 / 416.9 MB, free: 9.551 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002847/0.4335, allocations: 274.8 kB / 417.2 MB, free: 9.27 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.041e-05/0.4335, allocations: 96.94 kB / 417.3 MB, free: 9.156 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.403e-05/0.4336, allocations: 8 kB / 417.3 MB, free: 9.148 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.547e-05/0.4336, allocations: 8 kB / 417.3 MB, free: 9.141 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.598e-05/0.4337, allocations: 23.97 kB / 417.3 MB, free: 9.117 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.281e-05/0.4337, allocations: 7.938 kB / 417.3 MB, free: 9.109 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.467e-05/0.4338, allocations: 95.27 kB / 417.4 MB, free: 9.016 MB / 334.1 MB Notification: Performance of sort global known variables: time 2e-07/0.4338, allocations: 0 / 417.4 MB, free: 9.016 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002766/0.4341, allocations: 43.84 kB / 417.5 MB, free: 8.973 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: 17 (transition2.enableFire,step.active,transition1.enableFire,initialStep.active,$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 (24): * Single equations (assignments): 20 * 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.0001436/0.4342, allocations: 115.2 kB / 417.6 MB, free: 8.852 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003269/0.4346, allocations: 168.1 kB / 417.7 MB, free: 8.688 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.4346, allocations: 0 / 417.7 MB, free: 8.688 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000125/0.4347, allocations: 79.91 kB / 417.8 MB, free: 8.609 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002968/0.435, allocations: 19.98 kB / 417.8 MB, free: 8.59 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000613/0.4356, allocations: 317.3 kB / 418.1 MB, free: 8.246 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003746/0.436, allocations: 0.7327 MB / 418.9 MB, free: 7.484 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 6.926e-05/0.4361, allocations: 13.95 kB / 418.9 MB, free: 7.473 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.021e-05/0.4362, allocations: 23.42 kB / 418.9 MB, free: 7.449 MB / 334.1 MB Notification: Performance of SimCode: time 2.51e-07/0.4362, allocations: 4 kB / 418.9 MB, free: 7.445 MB / 334.1 MB Notification: Performance of Templates: time 0.004784/0.441, allocations: 1.674 MB / 420.6 MB, free: 5.781 MB / 334.1 MB make -j1 -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.makefile (rm -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.sim & ./Modelica_trunk_Modelica.StateGraph.Examples.FirstExample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.StateGraph.Examples.FirstExample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches