Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Blocks.RootMeanSquare.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) 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(ModelicaTest.Blocks.RootMeanSquare,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mean1.x|rootMeanSquare.mean.x|mean1.y|rootMeanSquare.mean.y",fileNamePrefix="ModelicaTest_trunk_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_trunk_cpp_ModelicaTest.Blocks.RootMeanSquare") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.000942/0.0009421, allocations: 199.4 kB / 15.8 MB, free: 6.309 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.268/1.268, allocations: 226.5 MB / 243.1 MB, free: 14.31 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007725/0.0007727, allocations: 98.2 kB / 295.1 MB, free: 10.08 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1747/0.1747, allocations: 44.83 MB / 392 MB, free: 9.359 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002172/0.0002172, allocations: 8 kB / 464.7 MB, free: 49.8 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07987/0.0801, allocations: 62.96 MB / 0.5153 GB, free: 2.797 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.RootMeanSquare): time 0.0016/0.08174, allocations: 1.372 MB / 0.5167 GB, free: 1.406 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008023/0.08255, allocations: 0.542 MB / 0.5172 GB, free: 0.8594 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.246e-05/0.08263, allocations: 4 kB / 0.5172 GB, free: 0.8555 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 7.421e-05/0.08271, allocations: 7.922 kB / 0.5172 GB, free: 0.8477 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 4.93e-05/0.08277, allocations: 11.86 kB / 0.5172 GB, free: 0.8359 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002123/0.08299, allocations: 51.88 kB / 0.5173 GB, free: 0.7852 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001288/0.08312, allocations: 99.7 kB / 0.5174 GB, free: 0.6875 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001158/0.08325, allocations: 33.09 kB / 0.5174 GB, free: 0.6562 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001209/0.08338, allocations: 43.8 kB / 0.5174 GB, free: 0.6133 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.188e-05/0.08348, allocations: 39.81 kB / 0.5175 GB, free: 0.5742 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 1.773e-05/0.0835, allocations: 4 kB / 0.5175 GB, free: 0.5703 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.622e-05/0.08356, allocations: 12 kB / 0.5175 GB, free: 0.5586 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 2.55e-05/0.08359, allocations: 15.92 kB / 0.5175 GB, free: 0.543 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 4.802e-05/0.08364, allocations: 45.58 kB / 0.5175 GB, free: 0.4922 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001124/0.08376, allocations: 84.11 kB / 0.5176 GB, free: 420 kB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.386e-06/0.08377, allocations: 0 / 0.5176 GB, free: 420 kB / 346.7 MB Notification: Performance of FrontEnd: time 1.292e-06/0.08378, allocations: 4 kB / 0.5176 GB, free: 416 kB / 346.7 MB Notification: Performance of Transformations before backend: time 3.948e-06/0.08379, allocations: 0 / 0.5176 GB, free: 416 kB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.1605/0.2443, allocations: 400.5 kB / 0.518 GB, free: 11.87 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.66e-05/0.2443, allocations: 8.812 kB / 0.518 GB, free: 11.87 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002227/0.2446, allocations: 26.27 kB / 0.518 GB, free: 11.87 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001808/0.2448, allocations: 207.5 kB / 0.5182 GB, free: 11.66 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.671e-05/0.2448, allocations: 7.281 kB / 0.5182 GB, free: 11.66 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.99e-05/0.2448, allocations: 9.797 kB / 0.5183 GB, free: 11.66 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002171/0.2451, allocations: 97.52 kB / 0.5183 GB, free: 11.62 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.131e-05/0.2451, allocations: 1.125 kB / 0.5183 GB, free: 11.62 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.572e-05/0.2451, allocations: 3.828 kB / 0.5184 GB, free: 11.62 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.921e-06/0.2451, allocations: 2.938 kB / 0.5184 GB, free: 11.62 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001454/0.2453, allocations: 53.53 kB / 0.5184 GB, free: 11.62 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005133/0.2458, allocations: 403.8 kB / 0.5188 GB, free: 11.34 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001339/0.2459, allocations: 59.19 kB / 0.5188 GB, free: 11.32 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.853e-05/0.246, allocations: 32.58 kB / 0.5189 GB, free: 11.31 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.877e-05/0.246, allocations: 2.297 kB / 0.5189 GB, free: 11.31 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001939/0.2462, allocations: 106.9 kB / 0.519 GB, free: 11.25 MB / 346.7 MB Notification: Performance of pre-optimization done (n=9): time 2.074e-06/0.2463, allocations: 1.625 kB / 0.519 GB, free: 11.25 MB / 346.7 MB Notification: Performance of matching and sorting (n=9): time 0.0003218/0.2466, allocations: 134.4 kB / 0.5191 GB, free: 11.21 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.292e-05/0.2466, allocations: 55.34 kB / 0.5192 GB, free: 11.15 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001025/0.2467, allocations: 150.9 kB / 0.5193 GB, free: 11.05 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.483e-05/0.2467, allocations: 30.91 kB / 0.5193 GB, free: 11.02 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.028e-05/0.2468, allocations: 106.7 kB / 0.5194 GB, free: 10.93 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.544e-05/0.2468, allocations: 32.52 kB / 0.5195 GB, free: 10.91 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.692e-06/0.2468, allocations: 1.625 kB / 0.5195 GB, free: 10.91 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 4.25e-05/0.2469, allocations: 324.7 kB / 0.5198 GB, free: 10.6 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.063e-05/0.247, allocations: 25.88 kB / 0.5198 GB, free: 10.6 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.788e-05/0.247, allocations: 88.3 kB / 0.5199 GB, free: 10.52 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.726e-05/0.2471, allocations: 37.62 kB / 0.5199 GB, free: 10.52 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.435e-06/0.2472, allocations: 1.094 kB / 0.5199 GB, free: 10.52 MB / 346.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002371/0.2474, allocations: 144 kB / 0.5201 GB, free: 10.47 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.402e-05/0.2474, allocations: 11.12 kB / 0.5201 GB, free: 10.46 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.402e-06/0.2474, allocations: 5.859 kB / 0.5201 GB, free: 10.46 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.408e-05/0.2474, allocations: 3 kB / 0.5201 GB, free: 10.46 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001169/0.2476, allocations: 31.33 kB / 0.5201 GB, free: 10.46 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.226e-06/0.2476, allocations: 7.703 kB / 0.5201 GB, free: 10.45 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.148e-05/0.2477, allocations: 16.11 kB / 0.5201 GB, free: 10.45 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.191e-05/0.2477, allocations: 7.125 kB / 0.5201 GB, free: 10.45 MB / 346.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_last,mean1.y_last,$whenCondition2,$whenCondition1,$PRE.rootMeanSquare.mean.y_last,rootMeanSquare.mean.y_last) * 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 7.906e-05/0.2478, allocations: 123.1 kB / 0.5203 GB, free: 10.33 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.753e-05/0.2478, allocations: 13.94 kB / 0.5203 GB, free: 10.32 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.396e-05/0.2478, allocations: 13.92 kB / 0.5203 GB, free: 10.31 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.975e-06/0.2478, allocations: 4.609 kB / 0.5203 GB, free: 10.31 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.596e-06/0.2478, allocations: 6.875 kB / 0.5203 GB, free: 10.3 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.697e-06/0.2479, allocations: 0.6094 kB / 0.5203 GB, free: 10.3 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001202/0.248, allocations: 204.2 kB / 0.5205 GB, free: 10.12 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.342e-06/0.248, allocations: 0.6562 kB / 0.5205 GB, free: 10.12 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.325e-05/0.2481, allocations: 14.17 kB / 0.5205 GB, free: 10.12 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.773e-06/0.2481, allocations: 0 / 0.5205 GB, free: 10.12 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.349e-05/0.2481, allocations: 6.609 kB / 0.5205 GB, free: 10.12 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.355e-06/0.2481, allocations: 3.984 kB / 0.5205 GB, free: 10.11 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.2481, allocations: 3.953 kB / 0.5205 GB, free: 10.11 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002979/0.2484, allocations: 178.7 kB / 0.5207 GB, free: 10.03 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.08e-05/0.2485, allocations: 88.08 kB / 0.5208 GB, free: 9.93 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.278e-05/0.2485, allocations: 3 kB / 0.5208 GB, free: 9.93 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.484e-05/0.2486, allocations: 6.531 kB / 0.5208 GB, free: 9.93 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.743e-05/0.2486, allocations: 11.16 kB / 0.5208 GB, free: 9.926 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.271e-05/0.2486, allocations: 8.609 kB / 0.5208 GB, free: 9.926 MB / 346.7 MB Notification: Performance of sorting global known variables: time 6.184e-05/0.2487, allocations: 116.1 kB / 0.5209 GB, free: 9.848 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2487, allocations: 0 / 0.5209 GB, free: 9.848 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0001953/0.2489, allocations: 19.81 kB / 0.5209 GB, free: 9.848 MB / 346.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_last,rootMeanSquare.mean.y_last) * 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 7.072e-05/0.249, allocations: 100.7 kB / 0.521 GB, free: 9.758 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002038/0.2492, allocations: 81.33 kB / 0.5211 GB, free: 9.75 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.973e-06/0.2492, allocations: 4.969 kB / 0.5211 GB, free: 9.746 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 8.934e-05/0.2493, allocations: 39.02 kB / 0.5212 GB, free: 9.742 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001804/0.2495, allocations: 11.78 kB / 0.5212 GB, free: 9.742 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004348/0.2499, allocations: 331.1 kB / 0.5215 GB, free: 9.508 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001295/0.2501, allocations: 0.7063 MB / 0.5222 GB, free: 8.812 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.866e-05/0.2501, allocations: 15.48 kB / 0.5222 GB, free: 8.805 MB / 346.7 MB Notification: Performance of SimCode: time 2.61e-07/0.2501, allocations: 0 / 0.5222 GB, free: 8.805 MB / 346.7 MB Notification: Performance of Templates: time 0.002629/0.2527, allocations: 1.404 MB / 0.5236 GB, free: 8.715 MB / 346.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Blocks.RootMeanSquare.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Blocks.RootMeanSquare.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Blocks.RootMeanSquare.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Blocks.RootMeanSquare.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Blocks.RootMeanSquare.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Blocks.RootMeanSquare --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Blocks.RootMeanSquare.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Blocks.RootMeanSquare_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/RootMeanSquare/RootMeanSquare.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Blocks.RootMeanSquare.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches