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/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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/Complex trunk/package.mo): time 0.00197/0.00197, allocations: 207.3 kB / 17.99 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.739/1.739, allocations: 226.7 MB / 245.5 MB, free: 6.984 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001137/0.001137, allocations: 97.75 kB / 296.7 MB, free: 6.473 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001214/0.001214, allocations: 51.91 kB / 356.6 MB, free: 10.61 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2709/0.2722, allocations: 50.46 MB / 407 MB, free: 27.8 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.002576/0.2748, allocations: 1.571 MB / 408.6 MB, free: 26.24 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005919/0.2754, allocations: 304.3 kB / 408.9 MB, free: 25.94 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.753e-05/0.2755, allocations: 7.938 kB / 408.9 MB, free: 25.93 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001442/0.2757, allocations: 20.31 kB / 408.9 MB, free: 25.91 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 4.05e-05/0.2757, allocations: 15.41 kB / 408.9 MB, free: 25.9 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003326/0.2761, allocations: 95.91 kB / 409 MB, free: 25.81 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002289/0.2763, allocations: 243.5 kB / 409.3 MB, free: 25.57 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002152/0.2765, allocations: 148.3 kB / 409.4 MB, free: 25.42 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.974e-05/0.2766, allocations: 75.77 kB / 409.5 MB, free: 25.35 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001314/0.2767, allocations: 99.47 kB / 409.6 MB, free: 25.25 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.178e-05/0.2768, allocations: 15.06 kB / 409.6 MB, free: 25.24 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.97e-05/0.2769, allocations: 24 kB / 409.6 MB, free: 25.21 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.101e-05/0.2769, allocations: 47.88 kB / 409.7 MB, free: 25.17 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 8.04e-05/0.277, allocations: 91.47 kB / 409.8 MB, free: 25.08 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001902/0.2772, allocations: 199.4 kB / 410 MB, free: 24.88 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.578e-06/0.2772, allocations: 0 / 410 MB, free: 24.88 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.413e-06/0.2773, allocations: 0 / 410 MB, free: 24.88 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.42e-06/0.2773, allocations: 0 / 410 MB, free: 24.88 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.0005775/0.2778, allocations: 492.1 kB / 410.4 MB, free: 24.35 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.865e-05/0.2779, allocations: 8.594 kB / 410.5 MB, free: 24.34 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.531e-05/0.278, allocations: 20.75 kB / 410.5 MB, free: 24.32 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001915/0.2782, allocations: 235.9 kB / 410.7 MB, free: 24.05 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.118e-05/0.2782, allocations: 24.92 kB / 410.7 MB, free: 24.03 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.405e-05/0.2782, allocations: 28.36 kB / 410.8 MB, free: 24 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003335/0.2786, allocations: 240 kB / 411 MB, free: 23.76 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.114e-05/0.2786, allocations: 4.188 kB / 411 MB, free: 23.75 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.251e-05/0.2786, allocations: 11.94 kB / 411 MB, free: 23.74 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.296e-06/0.2787, allocations: 8 kB / 411 MB, free: 23.73 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002255/0.2789, allocations: 157.6 kB / 411.2 MB, free: 23.58 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007332/0.2796, allocations: 0.6973 MB / 411.9 MB, free: 22.83 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002293/0.2799, allocations: 177.9 kB / 412 MB, free: 22.65 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.423e-05/0.28, allocations: 80.83 kB / 412.1 MB, free: 22.57 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.312e-05/0.28, allocations: 8 kB / 412.1 MB, free: 22.56 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000204/0.2802, allocations: 116.3 kB / 412.2 MB, free: 22.43 MB / 298.7 MB Notification: Performance of pre-optimization done (n=24): time 1.563e-06/0.2802, allocations: 0 / 412.2 MB, free: 22.43 MB / 298.7 MB Notification: Performance of matching and sorting (n=24): time 0.0003502/0.2806, allocations: 223.3 kB / 412.5 MB, free: 22.21 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.176e-05/0.2806, allocations: 55.41 kB / 412.5 MB, free: 22.14 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.425e-05/0.2807, allocations: 149.9 kB / 412.7 MB, free: 21.99 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.974e-05/0.2807, allocations: 33.7 kB / 412.7 MB, free: 21.95 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.636e-05/0.2808, allocations: 136.7 kB / 412.8 MB, free: 21.81 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.361e-05/0.2808, allocations: 63.09 kB / 412.9 MB, free: 21.75 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.932e-05/0.2809, allocations: 78 kB / 413 MB, free: 21.67 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.389e-05/0.281, allocations: 322.8 kB / 413.3 MB, free: 21.34 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.207e-05/0.2811, allocations: 64.62 kB / 413.3 MB, free: 21.28 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000108/0.2812, allocations: 136 kB / 413.5 MB, free: 21.12 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001756/0.2814, allocations: 171.3 kB / 413.6 MB, free: 20.93 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.2814, allocations: 0 / 413.6 MB, free: 20.93 MB / 298.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0002671/0.2816, allocations: 253.1 kB / 413.9 MB, free: 20.68 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.385e-05/0.2817, allocations: 8 kB / 413.9 MB, free: 20.67 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.521e-06/0.2817, allocations: 0 / 413.9 MB, free: 20.67 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.413e-05/0.2817, allocations: 4 kB / 413.9 MB, free: 20.67 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000111/0.2818, allocations: 27.92 kB / 413.9 MB, free: 20.64 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.496e-06/0.2818, allocations: 4.219 kB / 413.9 MB, free: 20.64 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.817e-05/0.2819, allocations: 27.84 kB / 414 MB, free: 20.61 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.631e-05/0.2819, allocations: 11.98 kB / 414 MB, free: 20.6 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,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.0001025/0.282, allocations: 151.3 kB / 414.1 MB, free: 20.44 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.796e-05/0.2821, allocations: 19.75 kB / 414.1 MB, free: 20.42 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000321/0.2824, allocations: 206.3 kB / 414.3 MB, free: 20.21 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.587e-06/0.2824, allocations: 0 / 414.3 MB, free: 20.21 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.608e-06/0.2824, allocations: 4 kB / 414.3 MB, free: 20.2 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.717e-06/0.2824, allocations: 4 kB / 414.3 MB, free: 20.2 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005213/0.283, allocations: 0.5646 MB / 414.9 MB, free: 19.58 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.283, allocations: 0 / 414.9 MB, free: 19.58 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.448e-05/0.2831, allocations: 15.98 kB / 414.9 MB, free: 19.56 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.896e-06/0.2831, allocations: 0 / 414.9 MB, free: 19.56 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.351e-05/0.2831, allocations: 15.92 kB / 414.9 MB, free: 19.55 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.2831, allocations: 0 / 414.9 MB, free: 19.55 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.2831, allocations: 3.938 kB / 414.9 MB, free: 19.54 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004147/0.2835, allocations: 0.8918 MB / 415.8 MB, free: 18.59 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.544e-05/0.2835, allocations: 96.84 kB / 415.9 MB, free: 18.48 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.345e-05/0.2836, allocations: 4 kB / 415.9 MB, free: 18.48 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.807e-05/0.2837, allocations: 8 kB / 415.9 MB, free: 18.47 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.053e-05/0.2837, allocations: 23.97 kB / 416 MB, free: 18.45 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.243e-05/0.2838, allocations: 11.98 kB / 416 MB, free: 18.43 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.583e-05/0.2838, allocations: 95.27 kB / 416.1 MB, free: 18.34 MB / 298.7 MB Notification: Performance of sort global known variables: time 2.1e-07/0.2838, allocations: 0 / 416.1 MB, free: 18.34 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003548/0.2842, allocations: 47.84 kB / 416.1 MB, free: 18.29 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 (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.0001218/0.2843, allocations: 111.1 kB / 416.2 MB, free: 18.18 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002391/0.2845, allocations: 183.7 kB / 416.4 MB, free: 18 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.2845, allocations: 448 / 416.4 MB, free: 18 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001031/0.2847, allocations: 92.28 kB / 416.5 MB, free: 17.91 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002543/0.2849, allocations: 32.84 kB / 416.5 MB, free: 17.88 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005668/0.2855, allocations: 0.5627 MB / 417.1 MB, free: 17.27 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001353/0.2856, allocations: 0.7404 MB / 417.8 MB, free: 16.5 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 6.716e-05/0.2857, allocations: 21.94 kB / 417.9 MB, free: 16.48 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.974e-05/0.2858, allocations: 23.44 kB / 417.9 MB, free: 16.46 MB / 298.7 MB Notification: Performance of SimCode: time 2.1e-07/0.2858, allocations: 0 / 417.9 MB, free: 16.46 MB / 298.7 MB Notification: Performance of Templates: time 0.003985/0.2898, allocations: 1.819 MB / 419.7 MB, free: 14.65 MB / 298.7 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@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample/FirstExample.csv","../files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches