Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2.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_Variant2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_trunk_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2") translateModel(Modelica.StateGraph.Examples.FirstExample_Variant2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_trunk_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001345/0.001345, allocations: 198.2 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.273/1.273, allocations: 226.5 MB / 245.4 MB, free: 8.223 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007699/0.0007699, allocations: 90.89 kB / 297.4 MB, free: 6.898 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002307/0.0002307, allocations: 4 kB / 357.3 MB, free: 10.98 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2044/0.2046, allocations: 51.31 MB / 408.7 MB, free: 27.74 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08741/0.2921, allocations: 77.41 MB / 486.1 MB, free: 14.23 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002274/0.2923, allocations: 71.95 kB / 486.1 MB, free: 14.16 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007444/0.2998, allocations: 3.072 MB / 489.2 MB, free: 11.07 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.854e-06/0.2998, allocations: 0 / 489.2 MB, free: 11.07 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.47e-05/0.2998, allocations: 7.984 kB / 489.2 MB, free: 11.06 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: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.00054/0.3004, allocations: 457.2 kB / 489.7 MB, free: 10.56 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.35e-05/0.3004, allocations: 8.031 kB / 489.7 MB, free: 10.55 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.684e-05/0.3005, allocations: 24.75 kB / 489.7 MB, free: 10.53 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000237/0.3007, allocations: 228.1 kB / 489.9 MB, free: 10.27 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.527e-05/0.3008, allocations: 24.94 kB / 489.9 MB, free: 10.24 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.857e-05/0.3008, allocations: 28.38 kB / 490 MB, free: 10.21 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004302/0.3013, allocations: 274.5 kB / 490.2 MB, free: 9.93 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.205e-05/0.3013, allocations: 4.188 kB / 490.2 MB, free: 9.926 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.712e-05/0.3013, allocations: 11.94 kB / 490.3 MB, free: 9.914 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.919e-06/0.3013, allocations: 8 kB / 490.3 MB, free: 9.906 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003002/0.3016, allocations: 165.6 kB / 490.4 MB, free: 9.742 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001081/0.3027, allocations: 0.9674 MB / 491.4 MB, free: 8.711 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002723/0.303, allocations: 165.5 kB / 491.6 MB, free: 8.531 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001191/0.3031, allocations: 85.62 kB / 491.6 MB, free: 8.441 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.897e-05/0.3032, allocations: 0 / 491.6 MB, free: 8.441 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002131/0.3034, allocations: 146.5 kB / 491.8 MB, free: 8.281 MB / 362.7 MB Notification: Performance of pre-optimization done (n=24): time 1.322e-06/0.3034, allocations: 0 / 491.8 MB, free: 8.281 MB / 362.7 MB Notification: Performance of matching and sorting (n=24): time 0.000429/0.3038, allocations: 229 kB / 492 MB, free: 8.051 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.755e-05/0.3039, allocations: 89.03 kB / 492.1 MB, free: 7.945 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001244/0.304, allocations: 145.6 kB / 492.2 MB, free: 7.793 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.565e-05/0.3041, allocations: 45.69 kB / 492.3 MB, free: 7.742 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.895e-05/0.3042, allocations: 136.6 kB / 492.4 MB, free: 7.605 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.749e-05/0.3042, allocations: 63.23 kB / 492.5 MB, free: 7.543 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.331e-05/0.3042, allocations: 8 kB / 492.5 MB, free: 7.535 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001093/0.3044, allocations: 330.8 kB / 492.8 MB, free: 7.203 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001163/0.3045, allocations: 59.97 kB / 492.9 MB, free: 7.145 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001532/0.3046, allocations: 144.3 kB / 493 MB, free: 6.973 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002421/0.3049, allocations: 189 kB / 493.2 MB, free: 6.758 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.3049, allocations: 3.938 kB / 493.2 MB, free: 6.754 MB / 362.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003626/0.3053, allocations: 249.5 kB / 493.4 MB, free: 6.504 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.871e-05/0.3053, allocations: 12.03 kB / 493.4 MB, free: 6.492 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.853e-06/0.3053, allocations: 4 kB / 493.5 MB, free: 6.488 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.558e-05/0.3053, allocations: 4 kB / 493.5 MB, free: 6.484 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001498/0.3055, allocations: 35.86 kB / 493.5 MB, free: 6.449 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.191e-05/0.3055, allocations: 4 kB / 493.5 MB, free: 6.445 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.338e-05/0.3056, allocations: 19.89 kB / 493.5 MB, free: 6.426 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.853e-05/0.3056, allocations: 16 kB / 493.5 MB, free: 6.41 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 32 ($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,$PRE.timer.entryTime,timer.entryTime,greaterEqual.y,stateGraphRoot.activeSteps,$PRE.transition2.t_start,transition2.t_start,stateGraphRoot.resume,stateGraphRoot.suspend,transition1.condition) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (41): * Single equations (assignments): 41 * 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.0001406/0.3058, allocations: 162.3 kB / 493.7 MB, free: 6.242 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.525e-05/0.3058, allocations: 23.8 kB / 493.7 MB, free: 6.219 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003121/0.3061, allocations: 190.3 kB / 493.9 MB, free: 6.023 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.869e-06/0.3061, allocations: 4 kB / 493.9 MB, free: 6.02 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.711e-06/0.3062, allocations: 4 kB / 493.9 MB, free: 6.016 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.294e-06/0.3062, allocations: 3.984 kB / 493.9 MB, free: 6.012 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006501/0.3068, allocations: 0.587 MB / 494.5 MB, free: 5.363 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.784e-06/0.3068, allocations: 0 / 494.5 MB, free: 5.363 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.878e-05/0.3069, allocations: 16 kB / 494.5 MB, free: 5.348 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.13e-06/0.3069, allocations: 7.938 kB / 494.5 MB, free: 5.34 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.528e-05/0.3069, allocations: 3.984 kB / 494.5 MB, free: 5.336 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.863e-06/0.3069, allocations: 0 / 494.5 MB, free: 5.336 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.037e-06/0.307, allocations: 4 kB / 494.5 MB, free: 5.332 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003026/0.3073, allocations: 292.4 kB / 494.8 MB, free: 5.027 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.335e-05/0.3073, allocations: 92.86 kB / 494.9 MB, free: 4.918 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.719e-05/0.3074, allocations: 11.94 kB / 494.9 MB, free: 4.906 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.743e-05/0.3074, allocations: 11.98 kB / 494.9 MB, free: 4.895 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.475e-05/0.3075, allocations: 15.97 kB / 494.9 MB, free: 4.879 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.627e-05/0.3075, allocations: 12 kB / 495 MB, free: 4.867 MB / 362.7 MB Notification: Performance of sorting global known variables: time 6.266e-05/0.3076, allocations: 98.36 kB / 495 MB, free: 4.773 MB / 362.7 MB Notification: Performance of sort global known variables: time 1e-07/0.3076, allocations: 0 / 495 MB, free: 4.773 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002829/0.3079, allocations: 47.98 kB / 495.1 MB, free: 4.727 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 20 (transition2.t_start,step.active,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,transition2.enableFire,timer.entryTime,greaterEqual.y,stateGraphRoot.activeSteps) * Number of discrete states: 3 (initialStep.newActive,step.newActive,transition2.t_start) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.0001579/0.3081, allocations: 115.2 kB / 495.2 MB, free: 4.605 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003055/0.3084, allocations: 183.9 kB / 495.4 MB, free: 4.426 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.956e-06/0.3084, allocations: 0 / 495.4 MB, free: 4.426 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001347/0.3085, allocations: 87.84 kB / 495.5 MB, free: 4.34 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002723/0.3088, allocations: 20.61 kB / 495.5 MB, free: 4.32 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006143/0.3094, allocations: 429.9 kB / 495.9 MB, free: 3.863 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003062/0.3098, allocations: 0.7365 MB / 496.7 MB, free: 3.102 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.843e-05/0.3098, allocations: 27.44 kB / 496.7 MB, free: 3.074 MB / 362.7 MB Notification: Performance of SimCode: time 2.31e-07/0.3098, allocations: 0 / 496.7 MB, free: 3.074 MB / 362.7 MB Notification: Performance of Templates: time 0.003732/0.3136, allocations: 2.402 MB / 499.1 MB, free: 0.6797 MB / 362.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2.makefile (rm -f Modelica_trunk_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_trunk_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_trunk_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & ./Modelica_trunk_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2 --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample_Variant2/FirstExample_Variant2.csv","../files/Modelica_trunk_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches