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.001619/0.001623, allocations: 187 kB / 16.4 MB, free: 5.625 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.048/2.048, allocations: 205.4 MB / 222.5 MB, free: 13.85 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.001158/0.001158, allocations: 102.8 kB / 270.9 MB, free: 13.38 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.2884/0.2884, allocations: 43.55 MB / 362.7 MB, free: 11.32 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000642/0.0006421, allocations: 16 kB / 431.4 MB, free: 20.28 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1308/0.1315, allocations: 58.85 MB / 490.2 MB, free: 9.359 MB / 330.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.RootMeanSquare): time 0.002529/0.134, allocations: 1.328 MB / 491.5 MB, free: 8.016 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.001314/0.1354, allocations: 0.5468 MB / 492.1 MB, free: 7.461 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.024e-05/0.1355, allocations: 3.938 kB / 492.1 MB, free: 7.457 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 9.746e-05/0.1356, allocations: 3.938 kB / 492.1 MB, free: 7.453 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 6.742e-05/0.1357, allocations: 19.95 kB / 492.1 MB, free: 7.434 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002911/0.136, allocations: 39.83 kB / 492.2 MB, free: 7.395 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001519/0.1362, allocations: 59.92 kB / 492.2 MB, free: 7.336 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001426/0.1363, allocations: 27.97 kB / 492.2 MB, free: 7.309 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001217/0.1365, allocations: 39.84 kB / 492.3 MB, free: 7.27 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001197/0.1366, allocations: 31.84 kB / 492.3 MB, free: 7.238 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 2.766e-05/0.1366, allocations: 4 kB / 492.3 MB, free: 7.234 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.36e-05/0.1367, allocations: 4 kB / 492.3 MB, free: 7.23 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 4.341e-05/0.1367, allocations: 19.91 kB / 492.3 MB, free: 7.211 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 6.283e-05/0.1368, allocations: 37.64 kB / 492.4 MB, free: 7.168 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001536/0.137, allocations: 76.08 kB / 492.4 MB, free: 7.094 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.525e-06/0.137, allocations: 0 / 492.4 MB, free: 7.094 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.783e-06/0.137, allocations: 4 kB / 492.5 MB, free: 7.09 MB / 330.7 MB Notification: Performance of Transformations before backend: time 4.749e-06/0.137, allocations: 0 / 492.5 MB, free: 7.09 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0008438/0.1378, allocations: 383.1 kB / 492.8 MB, free: 6.668 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.514e-05/0.1379, allocations: 16.02 kB / 492.8 MB, free: 6.652 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.661e-05/0.138, allocations: 19.75 kB / 492.9 MB, free: 6.633 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002672/0.1382, allocations: 198.4 kB / 493.1 MB, free: 6.402 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.341e-05/0.1383, allocations: 12 kB / 493.1 MB, free: 6.391 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.525e-05/0.1383, allocations: 15.91 kB / 493.1 MB, free: 6.375 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002991/0.1386, allocations: 93.64 kB / 493.2 MB, free: 6.277 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.501e-05/0.1387, allocations: 0 / 493.2 MB, free: 6.277 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.955e-05/0.1387, allocations: 0 / 493.2 MB, free: 6.277 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.815e-06/0.1387, allocations: 7.938 kB / 493.2 MB, free: 6.27 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002308/0.139, allocations: 51.97 kB / 493.2 MB, free: 6.219 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007556/0.1397, allocations: 368.5 kB / 493.6 MB, free: 5.809 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000205/0.14, allocations: 66.62 kB / 493.7 MB, free: 5.734 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.442e-05/0.14, allocations: 4 kB / 493.7 MB, free: 5.73 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003059/0.1403, allocations: 103.3 kB / 493.8 MB, free: 5.617 MB / 330.7 MB Notification: Performance of pre-optimization done (n=9): time 2.104e-06/0.1403, allocations: 0 / 493.8 MB, free: 5.617 MB / 330.7 MB Notification: Performance of matching and sorting (n=9): time 0.0005164/0.1409, allocations: 133.5 kB / 493.9 MB, free: 5.48 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.935e-05/0.1409, allocations: 55.39 kB / 493.9 MB, free: 5.414 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001579/0.1411, allocations: 134 kB / 494.1 MB, free: 5.273 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.849e-05/0.1411, allocations: 29.7 kB / 494.1 MB, free: 5.238 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001021/0.1412, allocations: 166.8 kB / 494.3 MB, free: 5.074 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.616e-05/0.1413, allocations: 31.55 kB / 494.3 MB, free: 5.043 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.187e-05/0.1413, allocations: 7.938 kB / 494.3 MB, free: 5.035 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001723/0.1415, allocations: 310.8 kB / 494.6 MB, free: 4.723 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001211/0.1416, allocations: 31.98 kB / 494.6 MB, free: 4.691 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001668/0.1418, allocations: 87.3 kB / 494.7 MB, free: 4.582 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001484/0.142, allocations: 47.97 kB / 494.8 MB, free: 4.535 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.356e-06/0.142, allocations: 0 / 494.8 MB, free: 4.535 MB / 330.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004139/0.1424, allocations: 137.6 kB / 494.9 MB, free: 4.395 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.079e-05/0.1425, allocations: 7.953 kB / 494.9 MB, free: 4.387 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.659e-06/0.1425, allocations: 4 kB / 494.9 MB, free: 4.383 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.79e-05/0.1425, allocations: 4 kB / 494.9 MB, free: 4.379 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002026/0.1427, allocations: 23.92 kB / 494.9 MB, free: 4.355 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.216e-05/0.1427, allocations: 4 kB / 495 MB, free: 4.352 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001211/0.1429, allocations: 19.83 kB / 495 MB, free: 4.332 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.875e-05/0.1429, allocations: 8 kB / 495 MB, free: 4.324 MB / 330.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 0.0001437/0.1431, allocations: 126.2 kB / 495.1 MB, free: 4.191 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.894e-05/0.1431, allocations: 11.91 kB / 495.1 MB, free: 4.18 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.6e-05/0.1432, allocations: 16.66 kB / 495.1 MB, free: 4.16 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.772e-06/0.1432, allocations: 4 kB / 495.1 MB, free: 4.156 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.151e-06/0.1432, allocations: 3.938 kB / 495.1 MB, free: 4.152 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.639e-06/0.1432, allocations: 0 / 495.1 MB, free: 4.152 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002338/0.1435, allocations: 201.8 kB / 495.3 MB, free: 3.906 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.814e-06/0.1435, allocations: 0 / 495.3 MB, free: 3.906 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001622/0.1436, allocations: 16 kB / 495.4 MB, free: 3.891 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.396e-06/0.1437, allocations: 4 kB / 495.4 MB, free: 3.887 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.264e-05/0.1437, allocations: 3.984 kB / 495.4 MB, free: 3.883 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.319e-06/0.1437, allocations: 3.953 kB / 495.4 MB, free: 3.879 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.864e-06/0.1437, allocations: 0 / 495.4 MB, free: 3.879 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005195/0.1442, allocations: 176.8 kB / 495.5 MB, free: 3.688 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.552e-05/0.1443, allocations: 88.98 kB / 495.6 MB, free: 3.582 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.426e-05/0.1444, allocations: 4 kB / 495.6 MB, free: 3.578 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001047/0.1445, allocations: 4 kB / 495.6 MB, free: 3.574 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.68e-05/0.1445, allocations: 15.88 kB / 495.6 MB, free: 3.559 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.646e-05/0.1446, allocations: 4 kB / 495.6 MB, free: 3.555 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001035/0.1447, allocations: 107.2 kB / 495.8 MB, free: 3.449 MB / 330.7 MB Notification: Performance of sort global known variables: time 3.6e-07/0.1447, allocations: 3.938 kB / 495.8 MB, free: 3.445 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.000295/0.145, allocations: 16 kB / 495.8 MB, free: 3.43 MB / 330.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.0001328/0.1451, allocations: 103.3 kB / 495.9 MB, free: 3.32 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0003423/0.1455, allocations: 79.83 kB / 496 MB, free: 3.242 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.1455, allocations: 0 / 496 MB, free: 3.242 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001515/0.1457, allocations: 35.98 kB / 496 MB, free: 3.207 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002037/0.1459, allocations: 14.91 kB / 496 MB, free: 3.195 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006867/0.1466, allocations: 300.9 kB / 496.3 MB, free: 2.871 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000334/0.1469, allocations: 0.712 MB / 497 MB, free: 2.133 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.729e-05/0.147, allocations: 15.44 kB / 497 MB, free: 2.117 MB / 330.7 MB Notification: Performance of SimCode: time 8.71e-07/0.147, allocations: 0 / 497 MB, free: 2.117 MB / 330.7 MB Notification: Performance of Templates: time 0.004163/0.1512, allocations: 1.3 MB / 498.3 MB, free: 0.8164 MB / 330.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