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.0009729/0.000973, allocations: 199.4 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.171/1.171, allocations: 227.2 MB / 245 MB, free: 5.887 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009768/0.0009768, allocations: 107.4 kB / 297.3 MB, free: 5.957 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002178/0.0002179, allocations: 12 kB / 357.9 MB, free: 9.332 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1912/0.1915, allocations: 51.48 MB / 409.4 MB, free: 26.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08533/0.2769, allocations: 76.87 MB / 486.3 MB, free: 13.73 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001902/0.2771, allocations: 70.28 kB / 486.3 MB, free: 13.66 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006731/0.2838, allocations: 2.904 MB / 489.2 MB, free: 10.74 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.643e-06/0.2839, allocations: 4 kB / 489.2 MB, free: 10.73 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.165e-05/0.2839, allocations: 8 kB / 489.2 MB, free: 10.73 MB / 362.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.0004799/0.2844, allocations: 444.2 kB / 489.7 MB, free: 10.24 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.371e-05/0.2844, allocations: 11.97 kB / 489.7 MB, free: 10.23 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.332e-05/0.2845, allocations: 23.72 kB / 489.7 MB, free: 10.21 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002069/0.2847, allocations: 222.8 kB / 489.9 MB, free: 9.949 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.205e-05/0.2847, allocations: 20.56 kB / 490 MB, free: 9.93 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.314e-05/0.2847, allocations: 24 kB / 490 MB, free: 9.906 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003552/0.2851, allocations: 239.5 kB / 490.2 MB, free: 9.66 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.051e-05/0.2851, allocations: 3.938 kB / 490.2 MB, free: 9.656 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.14e-05/0.2852, allocations: 8 kB / 490.2 MB, free: 9.648 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.347e-06/0.2852, allocations: 12 kB / 490.2 MB, free: 9.637 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002669/0.2854, allocations: 157.7 kB / 490.4 MB, free: 9.48 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008252/0.2863, allocations: 0.6938 MB / 491.1 MB, free: 8.73 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002558/0.2865, allocations: 166.3 kB / 491.2 MB, free: 8.562 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.809e-05/0.2866, allocations: 4.188 kB / 491.2 MB, free: 8.559 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001697/0.2867, allocations: 120.3 kB / 491.4 MB, free: 8.43 MB / 362.7 MB Notification: Performance of pre-optimization done (n=24): time 1.754e-06/0.2868, allocations: 0 / 491.4 MB, free: 8.43 MB / 362.7 MB Notification: Performance of matching and sorting (n=24): time 0.000369/0.2871, allocations: 227.1 kB / 491.6 MB, free: 8.203 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.2e-05/0.2872, allocations: 55.41 kB / 491.6 MB, free: 8.137 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.752e-05/0.2873, allocations: 137 kB / 491.8 MB, free: 7.992 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.6e-05/0.2873, allocations: 33.7 kB / 491.8 MB, free: 7.953 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.548e-05/0.2874, allocations: 132.7 kB / 491.9 MB, free: 7.82 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.493e-05/0.2874, allocations: 63.09 kB / 492 MB, free: 7.758 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.204e-05/0.2874, allocations: 16 kB / 492 MB, free: 7.742 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 8.632e-05/0.2875, allocations: 322.8 kB / 492.3 MB, free: 7.418 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001014/0.2876, allocations: 60.62 kB / 492.4 MB, free: 7.355 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001307/0.2878, allocations: 128 kB / 492.5 MB, free: 7.207 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001053/0.2879, allocations: 64 kB / 492.6 MB, free: 7.145 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.2879, allocations: 0 / 492.6 MB, free: 7.145 MB / 362.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.000321/0.2882, allocations: 241.8 kB / 492.8 MB, free: 6.902 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.373e-05/0.2882, allocations: 6.562 kB / 492.8 MB, free: 6.898 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.693e-06/0.2883, allocations: 12 kB / 492.8 MB, free: 6.887 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.318e-05/0.2883, allocations: 7.953 kB / 492.8 MB, free: 6.879 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001194/0.2884, allocations: 31.92 kB / 492.9 MB, free: 6.848 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.322e-06/0.2884, allocations: 0 / 492.9 MB, free: 6.848 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.558e-05/0.2885, allocations: 23.78 kB / 492.9 MB, free: 6.824 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.729e-05/0.2885, allocations: 19.98 kB / 492.9 MB, free: 6.805 MB / 362.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,$PRE.initialStep.localActive,initialStep.localActive,$PRE.initialStep.newActive,initialStep.newActive,$PRE.initialStep.oldActive,initialStep.oldActive,initialStep.active,transition1.enableFire,transition1.fire,$PRE.transition1.t_start,transition1.t_start,$PRE.step.localActive,step.localActive,$PRE.step.newActive,step.newActive,$PRE.step.oldActive,step.oldActive,step.active,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 0.000112/0.2887, allocations: 145.8 kB / 493.1 MB, free: 6.652 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.969e-05/0.2887, allocations: 15.84 kB / 493.1 MB, free: 6.637 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000295/0.289, allocations: 202.3 kB / 493.3 MB, free: 6.438 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.517e-06/0.289, allocations: 4 kB / 493.3 MB, free: 6.434 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-06/0.289, allocations: 3.953 kB / 493.3 MB, free: 6.43 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.707e-06/0.289, allocations: 0 / 493.3 MB, free: 6.43 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006315/0.2897, allocations: 0.5534 MB / 493.8 MB, free: 5.82 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.2897, allocations: 8 kB / 493.8 MB, free: 5.812 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.589e-05/0.2898, allocations: 27.88 kB / 493.9 MB, free: 5.785 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.264e-06/0.2898, allocations: 0 / 493.9 MB, free: 5.785 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.308e-05/0.2898, allocations: 4 kB / 493.9 MB, free: 5.781 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.805e-06/0.2898, allocations: 4 kB / 493.9 MB, free: 5.777 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.52e-07/0.2898, allocations: 0 / 493.9 MB, free: 5.777 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002535/0.2901, allocations: 271.2 kB / 494.1 MB, free: 5.496 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.638e-05/0.2901, allocations: 88.95 kB / 494.2 MB, free: 5.391 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.584e-05/0.2901, allocations: 11.95 kB / 494.2 MB, free: 5.379 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.075e-05/0.2902, allocations: 15.98 kB / 494.3 MB, free: 5.363 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.84e-05/0.2903, allocations: 23.91 kB / 494.3 MB, free: 5.34 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.555e-05/0.2903, allocations: 11.98 kB / 494.3 MB, free: 5.328 MB / 362.7 MB Notification: Performance of sorting global known variables: time 4.312e-05/0.2904, allocations: 95.27 kB / 494.4 MB, free: 5.234 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2904, allocations: 0 / 494.4 MB, free: 5.234 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003088/0.2907, allocations: 40 kB / 494.4 MB, free: 5.195 MB / 362.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.newActive,initialStep.oldActive,initialStep.active,transition1.fire,transition1.t_start,step.newActive,step.oldActive,step.active,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.0001267/0.2908, allocations: 119.1 kB / 494.5 MB, free: 5.066 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002727/0.2911, allocations: 183.7 kB / 494.7 MB, free: 4.887 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.2911, allocations: 0 / 494.7 MB, free: 4.887 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001147/0.2912, allocations: 88.28 kB / 494.8 MB, free: 4.801 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001669/0.2914, allocations: 15.98 kB / 494.8 MB, free: 4.785 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004799/0.2919, allocations: 367.8 kB / 495.2 MB, free: 4.398 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002388/0.2921, allocations: 0.7406 MB / 495.9 MB, free: 3.629 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 7.536e-05/0.2922, allocations: 25.94 kB / 495.9 MB, free: 3.602 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.245e-05/0.2923, allocations: 23.44 kB / 496 MB, free: 3.578 MB / 362.7 MB Notification: Performance of SimCode: time 3.51e-07/0.2923, allocations: 0 / 496 MB, free: 3.578 MB / 362.7 MB Notification: Performance of Templates: time 0.003873/0.2962, allocations: 1.659 MB / 497.6 MB, free: 1.934 MB / 362.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/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