Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.RootMeanSquare.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) 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(ModelicaTest.Blocks.RootMeanSquare,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mean1.x|rootMeanSquare.mean.x|mean1.y|rootMeanSquare.mean.y",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.RootMeanSquare") translateModel(ModelicaTest.Blocks.RootMeanSquare,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mean1.x|rootMeanSquare.mean.x|mean1.y|rootMeanSquare.mean.y",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.RootMeanSquare") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001472/0.001472, allocations: 181.4 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 2.056/2.056, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.001078/0.001078, allocations: 82.7 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2727/0.2727, allocations: 43.5 MB / 359.1 MB, free: 12.23 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 3.23e-05/3.246e-05, allocations: 0 / 425.3 MB, free: 23.36 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1133/0.1134, allocations: 58.85 MB / 484.1 MB, free: 12.47 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.46/0.5735, allocations: 85.76 MB / 0.5565 GB, free: 1.824 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002037/0.5737, allocations: 61.77 kB / 0.5566 GB, free: 1.797 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0067/0.5804, allocations: 1.683 MB / 0.5582 GB, free: 356 kB / 362.7 MB Notification: Performance of FrontEnd: time 1.553e-06/0.5805, allocations: 0 / 0.5582 GB, free: 356 kB / 362.7 MB Notification: Performance of Transformations before backend: time 1.398e-05/0.5805, allocations: 4 kB / 0.5582 GB, free: 352 kB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0005358/0.5811, allocations: 375.1 kB / 0.5586 GB, free: 15.94 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.587e-05/0.5811, allocations: 12.03 kB / 0.5586 GB, free: 15.93 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.27e-05/0.5812, allocations: 11.89 kB / 0.5586 GB, free: 15.92 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002986/0.5815, allocations: 211.2 kB / 0.5588 GB, free: 15.68 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.964e-05/0.5815, allocations: 6.875 kB / 0.5588 GB, free: 15.68 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.615e-05/0.5816, allocations: 7.062 kB / 0.5588 GB, free: 15.68 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002305/0.5818, allocations: 87.7 kB / 0.5589 GB, free: 15.6 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.516e-05/0.5818, allocations: 8 kB / 0.5589 GB, free: 15.59 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.995e-05/0.5819, allocations: 0 / 0.5589 GB, free: 15.59 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.125e-06/0.5819, allocations: 7.609 kB / 0.5589 GB, free: 15.59 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001378/0.582, allocations: 37.11 kB / 0.559 GB, free: 15.57 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006887/0.5827, allocations: 378.5 kB / 0.5593 GB, free: 15.19 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001422/0.5829, allocations: 52.75 kB / 0.5594 GB, free: 15.14 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.964e-05/0.583, allocations: 23.77 kB / 0.5594 GB, free: 15.12 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.619e-05/0.583, allocations: 0 / 0.5594 GB, free: 15.12 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002229/0.5833, allocations: 97.42 kB / 0.5595 GB, free: 15.02 MB / 378.7 MB Notification: Performance of pre-optimization done (n=9): time 2.424e-06/0.5833, allocations: 4 kB / 0.5595 GB, free: 15.02 MB / 378.7 MB Notification: Performance of matching and sorting (n=9): time 0.0002929/0.5836, allocations: 92.95 kB / 0.5596 GB, free: 14.93 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.005e-05/0.5836, allocations: 55.41 kB / 0.5596 GB, free: 14.87 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001356/0.5838, allocations: 122.6 kB / 0.5598 GB, free: 14.75 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.406e-05/0.5838, allocations: 29.14 kB / 0.5598 GB, free: 14.71 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.02e-05/0.5839, allocations: 169.5 kB / 0.56 GB, free: 14.55 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.751e-05/0.584, allocations: 27.53 kB / 0.56 GB, free: 14.53 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.063e-05/0.584, allocations: 3 kB / 0.56 GB, free: 14.53 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001099/0.5841, allocations: 321.9 kB / 0.5603 GB, free: 14.21 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.813e-05/0.5842, allocations: 19.25 kB / 0.5603 GB, free: 14.2 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001104/0.5843, allocations: 76.27 kB / 0.5604 GB, free: 14.1 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001145/0.5844, allocations: 33.86 kB / 0.5604 GB, free: 14.08 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.206e-06/0.5845, allocations: 0 / 0.5604 GB, free: 14.08 MB / 378.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002915/0.5848, allocations: 122.4 kB / 0.5605 GB, free: 13.97 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.979e-05/0.5848, allocations: 8.219 kB / 0.5605 GB, free: 13.96 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.091e-05/0.5848, allocations: 7.953 kB / 0.5605 GB, free: 13.95 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.74e-05/0.5848, allocations: 4 kB / 0.5605 GB, free: 13.95 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002105/0.5851, allocations: 31.55 kB / 0.5606 GB, free: 13.92 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.729e-06/0.5851, allocations: 0.625 kB / 0.5606 GB, free: 13.92 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001238/0.5852, allocations: 19.83 kB / 0.5606 GB, free: 13.9 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.554e-05/0.5852, allocations: 4 kB / 0.5606 GB, free: 13.9 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.mean1.y,mean1.y,$whenCondition2,$whenCondition1,$PRE.rootMeanSquare.mean.y,rootMeanSquare.mean.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 15 * 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 9.288e-05/0.5853, allocations: 121.7 kB / 0.5607 GB, free: 13.78 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.562e-05/0.5854, allocations: 7.906 kB / 0.5607 GB, free: 13.77 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.556e-05/0.5854, allocations: 15.44 kB / 0.5607 GB, free: 13.77 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.182e-06/0.5855, allocations: 3.953 kB / 0.5607 GB, free: 13.76 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.141e-06/0.5855, allocations: 0 / 0.5607 GB, free: 13.76 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.033e-06/0.5855, allocations: 7.922 kB / 0.5608 GB, free: 13.75 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001999/0.5857, allocations: 198.8 kB / 0.5609 GB, free: 13.53 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-06/0.5857, allocations: 0 / 0.5609 GB, free: 13.53 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001595/0.5859, allocations: 15.98 kB / 0.561 GB, free: 13.51 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.376e-06/0.5859, allocations: 0 / 0.561 GB, free: 13.51 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.168e-05/0.5859, allocations: 6.875 kB / 0.561 GB, free: 13.51 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.414e-06/0.5859, allocations: 4 kB / 0.561 GB, free: 13.5 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.21e-06/0.586, allocations: 7.938 kB / 0.561 GB, free: 13.5 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003588/0.5863, allocations: 144.6 kB / 0.5611 GB, free: 13.36 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.03e-05/0.5864, allocations: 85.05 kB / 0.5612 GB, free: 13.26 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.217e-05/0.5864, allocations: 3.938 kB / 0.5612 GB, free: 13.26 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001111/0.5866, allocations: 7.984 kB / 0.5612 GB, free: 13.25 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.892e-05/0.5866, allocations: 7.953 kB / 0.5612 GB, free: 13.25 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.761e-05/0.5866, allocations: 8.141 kB / 0.5612 GB, free: 13.24 MB / 378.7 MB Notification: Performance of sorting global known variables: time 8.72e-05/0.5867, allocations: 112.4 kB / 0.5613 GB, free: 13.14 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.61e-07/0.5868, allocations: 0 / 0.5613 GB, free: 13.14 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003013/0.5871, allocations: 35.39 kB / 0.5614 GB, free: 13.11 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (mean1.x,rootMeanSquare.mean.x) * Number of discrete variables: 4 ($whenCondition2,$whenCondition1,mean1.y,rootMeanSquare.mean.y) * Number of discrete states: 2 (mean1.x,rootMeanSquare.mean.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0001533/0.5872, allocations: 103.2 kB / 0.5615 GB, free: 13 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002117/0.5875, allocations: 68.55 kB / 0.5615 GB, free: 12.95 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.57e-06/0.5875, allocations: 4 kB / 0.5615 GB, free: 12.94 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 9.495e-05/0.5876, allocations: 23.19 kB / 0.5616 GB, free: 12.93 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001966/0.5878, allocations: 15.48 kB / 0.5616 GB, free: 12.91 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004968/0.5883, allocations: 189.9 kB / 0.5617 GB, free: 12.72 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002844/0.5886, allocations: 0.7081 MB / 0.5624 GB, free: 11.98 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.869e-05/0.5887, allocations: 18.56 kB / 0.5625 GB, free: 11.97 MB / 378.7 MB Notification: Performance of SimCode: time 7.31e-07/0.5887, allocations: 0 / 0.5625 GB, free: 11.97 MB / 378.7 MB Notification: Performance of Templates: time 0.003685/0.5924, allocations: 1.295 MB / 0.5637 GB, free: 10.69 MB / 378.7 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.RootMeanSquare.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.RootMeanSquare.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.RootMeanSquare.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.RootMeanSquare.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.RootMeanSquare.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.RootMeanSquare --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.RootMeanSquare.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.RootMeanSquare_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/RootMeanSquare/RootMeanSquare.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.RootMeanSquare.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches