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.001418/0.001418, allocations: 107.1 kB / 18.46 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001759/0.001759, allocations: 203.9 kB / 19.4 MB, free: 3.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.448/1.448, allocations: 227.4 MB / 247.6 MB, free: 10.57 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00129/0.00129, allocations: 63.89 kB / 359.4 MB, free: 12.99 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2645/0.2658, allocations: 50.54 MB / 409.9 MB, free: 1.785 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.00239/0.2682, allocations: 1.489 MB / 411.4 MB, free: 300 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006126/0.2688, allocations: 283.2 kB / 411.7 MB, free: 16 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.75e-05/0.2689, allocations: 0 / 411.7 MB, free: 16 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000135/0.2691, allocations: 23.84 kB / 411.7 MB, free: 15.99 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 6.656e-05/0.2691, allocations: 19.81 kB / 411.7 MB, free: 15.97 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003278/0.2695, allocations: 115.8 kB / 411.8 MB, free: 15.86 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002584/0.2698, allocations: 255.4 kB / 412.1 MB, free: 15.61 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002473/0.27, allocations: 170.3 kB / 412.2 MB, free: 15.44 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.272e-05/0.2701, allocations: 87.7 kB / 412.3 MB, free: 15.35 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001205/0.2702, allocations: 99.52 kB / 412.4 MB, free: 15.25 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.381e-05/0.2703, allocations: 28 kB / 412.5 MB, free: 15.23 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.849e-05/0.2703, allocations: 28 kB / 412.5 MB, free: 15.2 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.945e-05/0.2704, allocations: 43.91 kB / 412.5 MB, free: 15.16 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.255e-05/0.2705, allocations: 103.5 kB / 412.6 MB, free: 15.05 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002399/0.2707, allocations: 239.1 kB / 412.9 MB, free: 14.82 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.636e-06/0.2708, allocations: 0 / 412.9 MB, free: 14.82 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.2708, allocations: 0 / 412.9 MB, free: 14.82 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.32e-06/0.2708, allocations: 0 / 412.9 MB, free: 14.82 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.0006134/0.2714, allocations: 483.9 kB / 413.3 MB, free: 14.3 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.42e-05/0.2714, allocations: 8.031 kB / 413.3 MB, free: 14.29 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002092/0.2716, allocations: 32.64 kB / 413.4 MB, free: 14.25 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000266/0.2719, allocations: 228 kB / 413.6 MB, free: 13.99 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.497e-05/0.272, allocations: 20.94 kB / 413.6 MB, free: 13.97 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.391e-05/0.272, allocations: 32.3 kB / 413.6 MB, free: 13.94 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003983/0.2724, allocations: 240 kB / 413.9 MB, free: 13.7 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.043e-05/0.2724, allocations: 4.188 kB / 413.9 MB, free: 13.69 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.7e-05/0.2725, allocations: 15.94 kB / 413.9 MB, free: 13.68 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.534e-06/0.2725, allocations: 4 kB / 413.9 MB, free: 13.67 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002725/0.2728, allocations: 157.6 kB / 414.1 MB, free: 13.52 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009022/0.2737, allocations: 0.6856 MB / 414.7 MB, free: 12.78 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002759/0.274, allocations: 170.8 kB / 414.9 MB, free: 12.6 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001171/0.2741, allocations: 84.2 kB / 415 MB, free: 12.52 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.923e-05/0.2741, allocations: 0 / 415 MB, free: 12.52 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001728/0.2743, allocations: 119.3 kB / 415.1 MB, free: 12.39 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.582e-06/0.2743, allocations: 0 / 415.1 MB, free: 12.39 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0003879/0.2747, allocations: 214.8 kB / 415.3 MB, free: 12.18 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.804e-05/0.2747, allocations: 59.39 kB / 415.4 MB, free: 12.11 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001067/0.2749, allocations: 149.9 kB / 415.5 MB, free: 11.95 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.732e-05/0.2749, allocations: 33.7 kB / 415.6 MB, free: 11.91 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.137e-05/0.275, allocations: 136.6 kB / 415.7 MB, free: 11.77 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.743e-05/0.275, allocations: 55.2 kB / 415.7 MB, free: 11.72 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001032/0.2751, allocations: 81.91 kB / 415.8 MB, free: 11.63 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001063/0.2753, allocations: 322.8 kB / 416.1 MB, free: 11.3 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001124/0.2754, allocations: 64.62 kB / 416.2 MB, free: 11.24 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001503/0.2755, allocations: 136 kB / 416.3 MB, free: 11.09 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002319/0.2758, allocations: 171.2 kB / 416.5 MB, free: 10.89 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.947e-06/0.2758, allocations: 4 kB / 416.5 MB, free: 10.89 MB / 334.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003392/0.2761, allocations: 233.3 kB / 416.7 MB, free: 10.66 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.49e-05/0.2761, allocations: 11.92 kB / 416.7 MB, free: 10.64 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.742e-06/0.2762, allocations: 8.219 kB / 416.8 MB, free: 10.64 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.471e-05/0.2762, allocations: 4 kB / 416.8 MB, free: 10.63 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001291/0.2763, allocations: 27.92 kB / 416.8 MB, free: 10.61 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.397e-06/0.2763, allocations: 3.938 kB / 416.8 MB, free: 10.6 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.629e-05/0.2764, allocations: 27.75 kB / 416.8 MB, free: 10.57 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.926e-05/0.2765, allocations: 12 kB / 416.8 MB, free: 10.56 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.0001415/0.2766, allocations: 161.7 kB / 417 MB, free: 10.39 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.306e-05/0.2766, allocations: 15.75 kB / 417 MB, free: 10.38 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.098e-05/0.2767, allocations: 24.84 kB / 417 MB, free: 10.36 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.811e-06/0.2767, allocations: 3.984 kB / 417 MB, free: 10.35 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.2767, allocations: 0 / 417 MB, free: 10.35 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.328e-05/0.2768, allocations: 88.95 kB / 417.1 MB, free: 10.25 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.24e-05/0.2768, allocations: 0 / 417.1 MB, free: 10.25 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.12e-05/0.2769, allocations: 11.98 kB / 417.1 MB, free: 10.23 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.121e-05/0.2769, allocations: 19.98 kB / 417.1 MB, free: 10.21 MB / 334.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0003386/0.2773, allocations: 260.7 kB / 417.4 MB, free: 9.953 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0002949/0.2776, allocations: 357.4 kB / 417.8 MB, free: 9.59 MB / 334.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001085/0.2777, allocations: 71.97 kB / 417.8 MB, free: 9.52 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.369e-05/0.2778, allocations: 98.77 kB / 417.9 MB, free: 9.426 MB / 334.1 MB Notification: Performance of Backend: time 5.61e-07/0.2778, allocations: 0 / 417.9 MB, free: 9.426 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005137/0.2783, allocations: 198.5 kB / 418.1 MB, free: 9.227 MB / 334.1 MB Notification: Performance of SimCode: time 0.0006546/0.2789, allocations: 0.727 MB / 418.8 MB, free: 8.445 MB / 334.1 MB Notification: Performance of Templates: time 0.00483/0.2838, allocations: 1.865 MB / 420.7 MB, free: 6.586 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample/FirstExample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches