Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.3_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_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002274/0.002274, allocations: 181.3 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.993/1.993, allocations: 205.2 MB / 219.4 MB, free: 14.28 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001067/0.001067, allocations: 94.64 kB / 267.5 MB, free: 14.1 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.629e-05/2.686e-05, allocations: 4 kB / 321.5 MB, free: 17.86 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08985/0.0899, allocations: 47.57 MB / 369.1 MB, free: 2.219 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3842/0.4741, allocations: 75.08 MB / 444.2 MB, free: 2.109 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002639/0.4745, allocations: 62.16 kB / 444.2 MB, free: 2.078 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01148/0.486, allocations: 2.829 MB / 447 MB, free: 15.62 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.643e-06/0.486, allocations: 0 / 447 MB, free: 15.62 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.816e-05/0.4861, allocations: 8 kB / 447.1 MB, free: 15.61 MB / 330.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.000714/0.4868, allocations: 433.7 kB / 447.5 MB, free: 15.16 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.052e-05/0.4868, allocations: 12.03 kB / 447.5 MB, free: 15.14 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.877e-05/0.4869, allocations: 19.75 kB / 447.5 MB, free: 15.12 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003273/0.4873, allocations: 230.4 kB / 447.7 MB, free: 14.88 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.556e-05/0.4873, allocations: 19.25 kB / 447.7 MB, free: 14.86 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.428e-05/0.4874, allocations: 22.56 kB / 447.8 MB, free: 14.85 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005861/0.488, allocations: 239 kB / 448 MB, free: 14.67 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.533e-05/0.488, allocations: 0 / 448 MB, free: 14.67 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.65e-05/0.4881, allocations: 15.11 kB / 448 MB, free: 14.66 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.064e-05/0.4881, allocations: 4 kB / 448 MB, free: 14.66 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004341/0.4885, allocations: 156.7 kB / 448.2 MB, free: 14.55 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001421/0.49, allocations: 0.6866 MB / 448.9 MB, free: 13.93 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004127/0.4904, allocations: 168 kB / 449 MB, free: 13.81 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001854/0.4906, allocations: 78.88 kB / 449.1 MB, free: 13.75 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.416e-05/0.4907, allocations: 192 / 449.1 MB, free: 13.75 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000276/0.491, allocations: 119.6 kB / 449.2 MB, free: 13.65 MB / 330.7 MB Notification: Performance of pre-optimization done (n=24): time 4.208e-06/0.491, allocations: 3.984 kB / 449.2 MB, free: 13.64 MB / 330.7 MB Notification: Performance of matching and sorting (n=24): time 0.0004844/0.4915, allocations: 169.2 kB / 449.4 MB, free: 13.5 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.6e-05/0.4916, allocations: 59.41 kB / 449.4 MB, free: 13.43 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001563/0.4917, allocations: 133.6 kB / 449.6 MB, free: 13.31 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.397e-05/0.4918, allocations: 35.77 kB / 449.6 MB, free: 13.27 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001189/0.4919, allocations: 200.8 kB / 449.8 MB, free: 13.09 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.248e-05/0.492, allocations: 64.55 kB / 449.9 MB, free: 13.03 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.595e-05/0.492, allocations: 3.938 kB / 449.9 MB, free: 13.03 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.00013/0.4922, allocations: 326.8 kB / 450.2 MB, free: 12.71 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001698/0.4923, allocations: 59.22 kB / 450.3 MB, free: 12.67 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002286/0.4926, allocations: 126.5 kB / 450.4 MB, free: 12.55 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001898/0.4928, allocations: 69.39 kB / 450.4 MB, free: 12.5 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.232e-06/0.4928, allocations: 4 kB / 450.4 MB, free: 12.5 MB / 330.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0005332/0.4933, allocations: 221.1 kB / 450.7 MB, free: 12.32 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.32e-05/0.4934, allocations: 8 kB / 450.7 MB, free: 12.31 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.032e-05/0.4934, allocations: 3.938 kB / 450.7 MB, free: 12.3 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.308e-05/0.4935, allocations: 11.89 kB / 450.7 MB, free: 12.29 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002396/0.4937, allocations: 31.86 kB / 450.7 MB, free: 12.27 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.371e-05/0.4937, allocations: 4.219 kB / 450.7 MB, free: 12.26 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001663/0.4939, allocations: 31.77 kB / 450.8 MB, free: 12.23 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.007e-05/0.494, allocations: 11.62 kB / 450.8 MB, free: 12.23 MB / 330.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 () * 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.0001325/0.4941, allocations: 130.4 kB / 450.9 MB, free: 12.1 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.609e-05/0.4942, allocations: 7.906 kB / 450.9 MB, free: 12.09 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005087/0.4947, allocations: 201.3 kB / 451.1 MB, free: 11.93 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.754e-06/0.4947, allocations: 3.953 kB / 451.1 MB, free: 11.93 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.009e-06/0.4947, allocations: 4 kB / 451.1 MB, free: 11.93 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.266e-06/0.4947, allocations: 4 kB / 451.1 MB, free: 11.92 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001084/0.4958, allocations: 0.5547 MB / 451.7 MB, free: 11.39 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.213e-05/0.4959, allocations: 3.953 kB / 451.7 MB, free: 11.39 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001459/0.496, allocations: 15.69 kB / 451.7 MB, free: 11.38 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.045e-05/0.4961, allocations: 3.984 kB / 451.7 MB, free: 11.38 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.275e-05/0.4961, allocations: 11.62 kB / 451.7 MB, free: 11.37 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.028e-06/0.4961, allocations: 0 / 451.7 MB, free: 11.37 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.4961, allocations: 0 / 451.7 MB, free: 11.37 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004488/0.4966, allocations: 271.5 kB / 452 MB, free: 11.12 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.6e-05/0.4967, allocations: 96.89 kB / 452.1 MB, free: 11.01 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.598e-05/0.4967, allocations: 7.938 kB / 452.1 MB, free: 11 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001458/0.4969, allocations: 7.625 kB / 452.1 MB, free: 11 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.994e-05/0.497, allocations: 35.56 kB / 452.1 MB, free: 10.96 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.491e-05/0.497, allocations: 7.75 kB / 452.1 MB, free: 10.96 MB / 330.7 MB Notification: Performance of sorting global known variables: time 7.919e-05/0.4971, allocations: 99.27 kB / 452.2 MB, free: 10.87 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.4971, allocations: 0 / 452.2 MB, free: 10.87 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004201/0.4975, allocations: 39.31 kB / 452.3 MB, free: 10.84 MB / 330.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) * 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.0001869/0.4977, allocations: 114.2 kB / 452.4 MB, free: 10.72 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0004676/0.4982, allocations: 171.7 kB / 452.5 MB, free: 10.59 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.066e-06/0.4982, allocations: 4.062 kB / 452.5 MB, free: 10.59 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001964/0.4984, allocations: 80.98 kB / 452.6 MB, free: 10.53 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002764/0.4987, allocations: 11.69 kB / 452.6 MB, free: 10.52 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00066/0.4994, allocations: 260.6 kB / 452.9 MB, free: 10.28 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003586/0.4998, allocations: 0.744 MB / 453.6 MB, free: 9.508 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000108/0.4999, allocations: 19.44 kB / 453.6 MB, free: 9.488 MB / 330.7 MB Notification: Performance of SimCode: time 1.172e-06/0.4999, allocations: 0 / 453.6 MB, free: 9.488 MB / 330.7 MB Notification: Performance of Templates: time 0.006457/0.5064, allocations: 2.283 MB / 455.9 MB, free: 7.234 MB / 330.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample.makefile (rm -f Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample.sim & ./Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/StateGraph/Examples/FirstExample/FirstExample.csv","../files/Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches