Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_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_cpp_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_cpp_Modelica.StateGraph.Examples.FirstExample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.000937/0.0009371, allocations: 195 kB / 18.07 MB, free: 3.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.24/1.24, allocations: 226.5 MB / 245.4 MB, free: 8.172 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007258/0.0007259, allocations: 114.6 kB / 297.4 MB, free: 6.867 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002105/0.0002105, allocations: 4 kB / 357.4 MB, free: 10.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2034/0.2036, allocations: 51.29 MB / 408.6 MB, free: 27.69 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08941/0.2931, allocations: 76.79 MB / 485.4 MB, free: 14.8 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001769/0.2933, allocations: 63.97 kB / 485.5 MB, free: 14.74 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006971/0.3003, allocations: 2.915 MB / 488.4 MB, free: 11.8 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.172e-06/0.3003, allocations: 0 / 488.4 MB, free: 11.8 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.375e-05/0.3004, allocations: 8 kB / 488.4 MB, free: 11.8 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.000535/0.3009, allocations: 440.4 kB / 488.9 MB, free: 11.32 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.796e-05/0.3009, allocations: 11.97 kB / 488.9 MB, free: 11.3 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.609e-05/0.301, allocations: 28.66 kB / 488.9 MB, free: 11.28 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002188/0.3012, allocations: 228 kB / 489.1 MB, free: 11.02 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.755e-05/0.3013, allocations: 20.94 kB / 489.1 MB, free: 11 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.647e-05/0.3013, allocations: 24.38 kB / 489.2 MB, free: 10.97 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000379/0.3017, allocations: 240 kB / 489.4 MB, free: 10.73 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.094e-05/0.3017, allocations: 192 / 489.4 MB, free: 10.73 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.406e-05/0.3017, allocations: 11.94 kB / 489.4 MB, free: 10.72 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.635e-06/0.3018, allocations: 7.984 kB / 489.4 MB, free: 10.71 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002784/0.302, allocations: 161.6 kB / 489.6 MB, free: 10.55 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008645/0.3029, allocations: 0.6859 MB / 490.3 MB, free: 9.812 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002777/0.3032, allocations: 166.8 kB / 490.4 MB, free: 9.641 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001125/0.3033, allocations: 76.83 kB / 490.5 MB, free: 9.562 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.37e-05/0.3034, allocations: 4 kB / 490.5 MB, free: 9.559 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001769/0.3035, allocations: 128.3 kB / 490.6 MB, free: 9.422 MB / 362.7 MB Notification: Performance of pre-optimization done (n=24): time 1.533e-06/0.3036, allocations: 0 / 490.6 MB, free: 9.422 MB / 362.7 MB Notification: Performance of matching and sorting (n=24): time 0.0003949/0.304, allocations: 226.4 kB / 490.8 MB, free: 9.195 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.476e-05/0.304, allocations: 59.39 kB / 490.9 MB, free: 9.125 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001188/0.3041, allocations: 141.9 kB / 491 MB, free: 8.973 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.063e-05/0.3042, allocations: 49.62 kB / 491.1 MB, free: 8.918 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.679e-05/0.3042, allocations: 124.6 kB / 491.2 MB, free: 8.793 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.831e-05/0.3043, allocations: 59.25 kB / 491.3 MB, free: 8.734 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.134e-05/0.3043, allocations: 4 kB / 491.3 MB, free: 8.73 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.182e-05/0.3044, allocations: 330.8 kB / 491.6 MB, free: 8.398 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001099/0.3045, allocations: 60.62 kB / 491.7 MB, free: 8.336 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001431/0.3047, allocations: 124.1 kB / 491.8 MB, free: 8.191 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002216/0.3049, allocations: 175.2 kB / 492 MB, free: 7.996 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.963e-06/0.3049, allocations: 0 / 492 MB, free: 7.996 MB / 362.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003411/0.3053, allocations: 249.1 kB / 492.2 MB, free: 7.746 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.457e-05/0.3053, allocations: 4 kB / 492.2 MB, free: 7.742 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.906e-06/0.3053, allocations: 11.97 kB / 492.2 MB, free: 7.73 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.497e-05/0.3053, allocations: 4 kB / 492.2 MB, free: 7.727 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001238/0.3055, allocations: 27.92 kB / 492.2 MB, free: 7.699 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.945e-06/0.3055, allocations: 4 kB / 492.2 MB, free: 7.695 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.044e-05/0.3056, allocations: 19.92 kB / 492.3 MB, free: 7.676 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.983e-05/0.3056, allocations: 16.22 kB / 492.3 MB, free: 7.66 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.0001228/0.3057, allocations: 149.8 kB / 492.4 MB, free: 7.504 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.389e-05/0.3058, allocations: 19.73 kB / 492.4 MB, free: 7.484 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003182/0.3061, allocations: 206.3 kB / 492.6 MB, free: 7.277 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.639e-06/0.3061, allocations: 4 kB / 492.7 MB, free: 7.273 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.128e-06/0.3061, allocations: 0 / 492.7 MB, free: 7.273 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.037e-06/0.3061, allocations: 0 / 492.7 MB, free: 7.273 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006558/0.3068, allocations: 0.5607 MB / 493.2 MB, free: 6.656 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.3068, allocations: 0 / 493.2 MB, free: 6.656 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.552e-05/0.3069, allocations: 19.92 kB / 493.2 MB, free: 6.637 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.335e-06/0.3069, allocations: 4 kB / 493.2 MB, free: 6.633 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.562e-05/0.3069, allocations: 4 kB / 493.2 MB, free: 6.629 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.324e-06/0.3069, allocations: 0 / 493.2 MB, free: 6.629 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.375e-06/0.3069, allocations: 7.938 kB / 493.2 MB, free: 6.621 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002965/0.3072, allocations: 275.7 kB / 493.5 MB, free: 6.336 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.916e-05/0.3073, allocations: 92.89 kB / 493.6 MB, free: 6.227 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.441e-05/0.3073, allocations: 7.984 kB / 493.6 MB, free: 6.219 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.506e-05/0.3074, allocations: 8 kB / 493.6 MB, free: 6.211 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.375e-05/0.3075, allocations: 31.89 kB / 493.7 MB, free: 6.18 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.362e-05/0.3075, allocations: 4 kB / 493.7 MB, free: 6.176 MB / 362.7 MB Notification: Performance of sorting global known variables: time 4.499e-05/0.3075, allocations: 95.27 kB / 493.8 MB, free: 6.082 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3076, allocations: 4 kB / 493.8 MB, free: 6.078 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002718/0.3078, allocations: 40 kB / 493.8 MB, free: 6.039 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.0001526/0.308, allocations: 111.2 kB / 493.9 MB, free: 5.922 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.000286/0.3083, allocations: 183.9 kB / 494.1 MB, free: 5.742 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.3083, allocations: 0 / 494.1 MB, free: 5.742 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001235/0.3084, allocations: 75.92 kB / 494.2 MB, free: 5.668 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002621/0.3087, allocations: 28.36 kB / 494.2 MB, free: 5.641 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005627/0.3093, allocations: 408.5 kB / 494.6 MB, free: 5.203 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002362/0.3095, allocations: 0.7248 MB / 495.3 MB, free: 4.453 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.795e-05/0.3096, allocations: 23.44 kB / 495.3 MB, free: 4.43 MB / 362.7 MB Notification: Performance of SimCode: time 2.5e-07/0.3096, allocations: 4 kB / 495.3 MB, free: 4.426 MB / 362.7 MB Notification: Performance of Templates: time 0.003581/0.3132, allocations: 2.313 MB / 497.6 MB, free: 2.121 MB / 362.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.StateGraph.Examples.FirstExample.makefile (rm -f Modelica_trunk_cpp_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_trunk_cpp_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_trunk_cpp_Modelica.StateGraph.Examples.FirstExample.sim & ./Modelica_trunk_cpp_Modelica.StateGraph.Examples.FirstExample --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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","../files/Modelica_trunk_cpp_Modelica.StateGraph.Examples.FirstExample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches