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.0009289/0.0009289, allocations: 177.6 kB / 17.41 MB, free: 4.41 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.449/1.449, allocations: 205.4 MB / 223.6 MB, free: 9.023 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.0007661/0.000766, allocations: 85.42 kB / 271.9 MB, free: 8.254 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3721/0.3721, allocations: 43.56 MB / 363.8 MB, free: 52.13 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005335/0.0005336, allocations: 15.98 kB / 432.6 MB, free: 5.898 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1293/0.1299, allocations: 58.85 MB / 491.4 MB, free: 10.96 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3225/0.4524, allocations: 85.88 MB / 0.5638 GB, free: 0.5625 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001955/0.4526, allocations: 63.95 kB / 0.5638 GB, free: 0.5 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004812/0.4574, allocations: 1.692 MB / 0.5655 GB, free: 14.82 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.014e-06/0.4575, allocations: 0 / 0.5655 GB, free: 14.82 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.411e-05/0.4575, allocations: 4 kB / 0.5655 GB, free: 14.82 MB / 394.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.0005289/0.458, allocations: 396.6 kB / 0.5659 GB, free: 14.39 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.283e-05/0.4581, allocations: 8.031 kB / 0.5659 GB, free: 14.38 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.341e-05/0.4581, allocations: 15.8 kB / 0.5659 GB, free: 14.37 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002345/0.4584, allocations: 208 kB / 0.5661 GB, free: 14.12 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.753e-05/0.4584, allocations: 8.375 kB / 0.5661 GB, free: 14.12 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.033e-05/0.4584, allocations: 8.375 kB / 0.5661 GB, free: 14.11 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002075/0.4587, allocations: 94.2 kB / 0.5662 GB, free: 14.01 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.158e-05/0.4587, allocations: 192 / 0.5662 GB, free: 14.01 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.673e-05/0.4587, allocations: 3.938 kB / 0.5662 GB, free: 14.01 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.2e-06/0.4587, allocations: 5.688 kB / 0.5662 GB, free: 14 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001348/0.4588, allocations: 51.95 kB / 0.5663 GB, free: 13.95 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005485/0.4594, allocations: 368.6 kB / 0.5666 GB, free: 13.54 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001318/0.4596, allocations: 62.55 kB / 0.5667 GB, free: 13.47 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.159e-05/0.4596, allocations: 28.98 kB / 0.5667 GB, free: 13.44 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.478e-05/0.4597, allocations: 12.5 kB / 0.5667 GB, free: 13.43 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000199/0.4599, allocations: 102 kB / 0.5668 GB, free: 13.32 MB / 394.7 MB Notification: Performance of pre-optimization done (n=9): time 1.432e-06/0.4599, allocations: 0 / 0.5668 GB, free: 13.32 MB / 394.7 MB Notification: Performance of matching and sorting (n=9): time 0.0003512/0.4602, allocations: 133.5 kB / 0.5669 GB, free: 13.18 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.203e-05/0.4603, allocations: 55.41 kB / 0.567 GB, free: 13.12 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001396/0.4605, allocations: 137.8 kB / 0.5671 GB, free: 12.97 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.05e-05/0.4605, allocations: 25.7 kB / 0.5672 GB, free: 12.94 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.885e-05/0.4606, allocations: 108.2 kB / 0.5673 GB, free: 12.83 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.237e-05/0.4606, allocations: 27.69 kB / 0.5673 GB, free: 12.8 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.885e-06/0.4606, allocations: 0 / 0.5673 GB, free: 12.8 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001203/0.4608, allocations: 325.2 kB / 0.5676 GB, free: 12.48 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.665e-05/0.4608, allocations: 31.98 kB / 0.5676 GB, free: 12.45 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001033/0.461, allocations: 97.66 kB / 0.5677 GB, free: 12.33 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001876/0.4612, allocations: 131.6 kB / 0.5678 GB, free: 12.18 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.834e-06/0.4612, allocations: 0 / 0.5678 GB, free: 12.18 MB / 394.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002503/0.4614, allocations: 141.3 kB / 0.568 GB, free: 12.03 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.516e-05/0.4614, allocations: 5.094 kB / 0.568 GB, free: 12.03 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.294e-06/0.4615, allocations: 4 kB / 0.568 GB, free: 12.02 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.541e-05/0.4615, allocations: 4.219 kB / 0.568 GB, free: 12.02 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001166/0.4616, allocations: 27.98 kB / 0.568 GB, free: 11.99 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.626e-06/0.4616, allocations: 7.938 kB / 0.568 GB, free: 11.98 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.131e-05/0.4617, allocations: 11.92 kB / 0.568 GB, free: 11.97 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.064e-05/0.4617, allocations: 8 kB / 0.568 GB, free: 11.96 MB / 394.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 () * Number of clocked 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.863e-05/0.4618, allocations: 122.4 kB / 0.5682 GB, free: 11.84 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.775e-05/0.4618, allocations: 7.906 kB / 0.5682 GB, free: 11.83 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.959e-05/0.4619, allocations: 8.719 kB / 0.5682 GB, free: 11.82 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.491e-06/0.4619, allocations: 8 kB / 0.5682 GB, free: 11.81 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.021e-06/0.4619, allocations: 7.109 kB / 0.5682 GB, free: 11.81 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.272e-06/0.4619, allocations: 3.938 kB / 0.5682 GB, free: 11.8 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001635/0.4621, allocations: 205.5 kB / 0.5684 GB, free: 11.55 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-06/0.4621, allocations: 0 / 0.5684 GB, free: 11.55 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.97e-05/0.4622, allocations: 11.98 kB / 0.5684 GB, free: 11.54 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.305e-06/0.4622, allocations: 4 kB / 0.5684 GB, free: 11.54 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.317e-05/0.4622, allocations: 0 / 0.5684 GB, free: 11.54 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.166e-06/0.4623, allocations: 3.984 kB / 0.5684 GB, free: 11.54 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/0.4623, allocations: 2.406 kB / 0.5684 GB, free: 11.54 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000362/0.4626, allocations: 184.7 kB / 0.5686 GB, free: 11.34 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.255e-05/0.4627, allocations: 85.05 kB / 0.5687 GB, free: 11.23 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.588e-05/0.4627, allocations: 4.094 kB / 0.5687 GB, free: 11.23 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.941e-05/0.4628, allocations: 4 kB / 0.5687 GB, free: 11.23 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.439e-05/0.4629, allocations: 16.03 kB / 0.5687 GB, free: 11.21 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.547e-05/0.4629, allocations: 7.938 kB / 0.5687 GB, free: 11.2 MB / 394.7 MB Notification: Performance of sorting global known variables: time 8.163e-05/0.463, allocations: 108 kB / 0.5688 GB, free: 11.1 MB / 394.7 MB Notification: Performance of sort global known variables: time 9e-08/0.463, allocations: 0 / 0.5688 GB, free: 11.1 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0002362/0.4632, allocations: 20.12 kB / 0.5688 GB, free: 11.08 MB / 394.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) * Number of clocked states: 0 () * 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.0001561/0.4634, allocations: 111.1 kB / 0.5689 GB, free: 10.96 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0002294/0.4636, allocations: 83.83 kB / 0.569 GB, free: 10.88 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.046e-06/0.4636, allocations: 0 / 0.569 GB, free: 10.88 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001088/0.4638, allocations: 39.92 kB / 0.569 GB, free: 10.84 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002449/0.464, allocations: 11.98 kB / 0.5691 GB, free: 10.83 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008222/0.4648, allocations: 299.4 kB / 0.5693 GB, free: 10.51 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003663/0.4652, allocations: 0.712 MB / 0.57 GB, free: 9.773 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.624e-05/0.4653, allocations: 19.42 kB / 0.5701 GB, free: 9.754 MB / 394.7 MB Notification: Performance of SimCode: time 2.21e-07/0.4653, allocations: 0 / 0.5701 GB, free: 9.754 MB / 394.7 MB Notification: Performance of Templates: time 0.002881/0.4682, allocations: 1.326 MB / 0.5713 GB, free: 8.445 MB / 394.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