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.001137/0.001137, allocations: 112.2 kB / 18.46 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001202/0.001202, allocations: 206.7 kB / 19.41 MB, free: 3.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.421/1.421, allocations: 227.4 MB / 247.6 MB, free: 10.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001263/0.001264, allocations: 55.91 kB / 359.4 MB, free: 12.94 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2673/0.2686, allocations: 50.55 MB / 409.9 MB, free: 1.594 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.002579/0.2712, allocations: 1.497 MB / 411.4 MB, free: 96 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006504/0.2719, allocations: 279.2 kB / 411.7 MB, free: 15.82 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.757e-05/0.272, allocations: 4 kB / 411.7 MB, free: 15.82 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000139/0.2721, allocations: 19.75 kB / 411.7 MB, free: 15.8 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 4.875e-05/0.2722, allocations: 15.8 kB / 411.7 MB, free: 15.78 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000384/0.2726, allocations: 119.7 kB / 411.8 MB, free: 15.66 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003138/0.2729, allocations: 255.5 kB / 412.1 MB, free: 15.41 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003017/0.2732, allocations: 166.3 kB / 412.2 MB, free: 15.25 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001143/0.2733, allocations: 87.75 kB / 412.3 MB, free: 15.16 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001535/0.2735, allocations: 99.53 kB / 412.4 MB, free: 15.06 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.459e-05/0.2735, allocations: 20 kB / 412.4 MB, free: 15.04 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.328e-05/0.2736, allocations: 24 kB / 412.5 MB, free: 15.02 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.341e-05/0.2737, allocations: 55.89 kB / 412.5 MB, free: 14.96 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.77e-05/0.2738, allocations: 99.52 kB / 412.6 MB, free: 14.87 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002782/0.2741, allocations: 243.1 kB / 412.9 MB, free: 14.63 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.683e-06/0.2741, allocations: 0 / 412.9 MB, free: 14.63 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.2741, allocations: 3.938 kB / 412.9 MB, free: 14.62 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.581e-06/0.2741, allocations: 0 / 412.9 MB, free: 14.62 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.0006971/0.2748, allocations: 479.8 kB / 413.3 MB, free: 14.11 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.183e-05/0.2749, allocations: 8.031 kB / 413.3 MB, free: 14.1 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002139/0.2751, allocations: 32.64 kB / 413.4 MB, free: 14.07 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000285/0.2754, allocations: 224.1 kB / 413.6 MB, free: 13.81 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.954e-05/0.2754, allocations: 28.86 kB / 413.6 MB, free: 13.78 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.031e-05/0.2755, allocations: 24.38 kB / 413.6 MB, free: 13.76 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004205/0.2759, allocations: 244 kB / 413.9 MB, free: 13.51 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.09e-05/0.2759, allocations: 192 / 413.9 MB, free: 13.51 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.51e-05/0.2759, allocations: 11.94 kB / 413.9 MB, free: 13.5 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.204e-05/0.276, allocations: 4 kB / 413.9 MB, free: 13.49 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003074/0.2763, allocations: 153.7 kB / 414 MB, free: 13.34 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009179/0.2772, allocations: 0.6934 MB / 414.7 MB, free: 12.59 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002852/0.2775, allocations: 166.8 kB / 414.9 MB, free: 12.42 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001197/0.2776, allocations: 84.39 kB / 415 MB, free: 12.34 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.195e-05/0.2777, allocations: 8 kB / 415 MB, free: 12.33 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001814/0.2778, allocations: 123.2 kB / 415.1 MB, free: 12.2 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.623e-06/0.2779, allocations: 0 / 415.1 MB, free: 12.2 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0003797/0.2782, allocations: 212.7 kB / 415.3 MB, free: 11.99 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.835e-05/0.2783, allocations: 59.39 kB / 415.4 MB, free: 11.92 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001043/0.2784, allocations: 149.9 kB / 415.5 MB, free: 11.76 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.395e-05/0.2784, allocations: 37.7 kB / 415.6 MB, free: 11.72 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.426e-05/0.2785, allocations: 136.6 kB / 415.7 MB, free: 11.58 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.482e-05/0.2786, allocations: 59.2 kB / 415.8 MB, free: 11.52 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.853e-05/0.2787, allocations: 81.92 kB / 415.8 MB, free: 11.43 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001003/0.2788, allocations: 322.8 kB / 416.1 MB, free: 11.11 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001097/0.2789, allocations: 60.62 kB / 416.2 MB, free: 11.05 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001506/0.279, allocations: 136 kB / 416.3 MB, free: 10.89 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002236/0.2793, allocations: 175.2 kB / 416.5 MB, free: 10.7 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.285e-06/0.2793, allocations: 0 / 416.5 MB, free: 10.7 MB / 334.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.000348/0.2796, allocations: 237.3 kB / 416.7 MB, free: 10.46 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.681e-05/0.2797, allocations: 11.94 kB / 416.8 MB, free: 10.45 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.471e-06/0.2797, allocations: 0 / 416.8 MB, free: 10.45 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.707e-05/0.2797, allocations: 4 kB / 416.8 MB, free: 10.45 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001321/0.2798, allocations: 31.86 kB / 416.8 MB, free: 10.41 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.131e-05/0.2799, allocations: 8.156 kB / 416.8 MB, free: 10.41 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.211e-05/0.28, allocations: 31.73 kB / 416.8 MB, free: 10.38 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.897e-05/0.28, allocations: 12 kB / 416.8 MB, free: 10.36 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.0001364/0.2801, allocations: 153.7 kB / 417 MB, free: 10.2 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.56e-05/0.2802, allocations: 19.75 kB / 417 MB, free: 10.18 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.863e-05/0.2802, allocations: 16.83 kB / 417 MB, free: 10.17 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.168e-06/0.2802, allocations: 0 / 417 MB, free: 10.17 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-06/0.2802, allocations: 0 / 417 MB, free: 10.17 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.285e-05/0.2803, allocations: 85.02 kB / 417.1 MB, free: 10.07 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.533e-05/0.2803, allocations: 12 kB / 417.1 MB, free: 10.05 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.927e-05/0.2804, allocations: 11.98 kB / 417.1 MB, free: 10.04 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.451e-05/0.2805, allocations: 23.95 kB / 417.2 MB, free: 10.02 MB / 334.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0003403/0.2808, allocations: 256.7 kB / 417.4 MB, free: 9.762 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0003256/0.2812, allocations: 347.6 kB / 417.7 MB, free: 9.406 MB / 334.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001101/0.2813, allocations: 77.17 kB / 417.8 MB, free: 9.332 MB / 334.1 MB Notification: Performance of sorting global known variables: time 4.737e-05/0.2813, allocations: 95.28 kB / 417.9 MB, free: 9.238 MB / 334.1 MB Notification: Performance of Backend: time 2.4e-07/0.2813, allocations: 0 / 417.9 MB, free: 9.238 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004882/0.2818, allocations: 201.5 kB / 418.1 MB, free: 9.039 MB / 334.1 MB Notification: Performance of SimCode: time 0.0006371/0.2825, allocations: 0.7188 MB / 418.8 MB, free: 8.266 MB / 334.1 MB Notification: Performance of Templates: time 0.004857/0.2873, allocations: 1.877 MB / 420.7 MB, free: 6.398 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