Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.RootMeanSquare.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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_4.0.0_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_4.0.0_ModelicaTest.Blocks.RootMeanSquare") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001136/0.001136, allocations: 105.4 kB / 18.4 MB, free: 4.57 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001271/0.001271, allocations: 188 kB / 19.34 MB, free: 3.641 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.439/1.439, allocations: 222.9 MB / 243 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2121/0.2121, allocations: 44.17 MB / 337.4 MB, free: 2.703 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001307/0.001307, allocations: 63 kB / 409.9 MB, free: 26.54 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1394/0.1407, allocations: 60.84 MB / 470.7 MB, free: 13.66 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.RootMeanSquare): time 0.003099/0.1439, allocations: 1.648 MB / 472.4 MB, free: 11.99 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009479/0.1448, allocations: 0.5416 MB / 472.9 MB, free: 11.45 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.539e-05/0.1449, allocations: 0 / 472.9 MB, free: 11.45 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001141/0.1451, allocations: 7.875 kB / 472.9 MB, free: 11.44 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.084e-05/0.1451, allocations: 23.78 kB / 472.9 MB, free: 11.41 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002905/0.1455, allocations: 59.88 kB / 473 MB, free: 11.36 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001609/0.1456, allocations: 103.7 kB / 473.1 MB, free: 11.25 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001633/0.1458, allocations: 33.39 kB / 473.1 MB, free: 11.22 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001077/0.1459, allocations: 47.78 kB / 473.2 MB, free: 11.17 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001367/0.1461, allocations: 43.77 kB / 473.2 MB, free: 11.13 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.74e-05/0.1461, allocations: 12 kB / 473.2 MB, free: 11.12 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.047e-05/0.1461, allocations: 8 kB / 473.2 MB, free: 11.11 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.005e-05/0.1462, allocations: 27.91 kB / 473.3 MB, free: 11.08 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.225e-05/0.1463, allocations: 55.73 kB / 473.3 MB, free: 11.03 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001714/0.1464, allocations: 111.5 kB / 473.4 MB, free: 10.92 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.729e-06/0.1465, allocations: 0 / 473.4 MB, free: 10.92 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.634e-06/0.1465, allocations: 0 / 473.4 MB, free: 10.92 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.061e-06/0.1465, allocations: 0 / 473.4 MB, free: 10.92 MB / 350.1 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.0008706/0.1473, allocations: 418 kB / 473.8 MB, free: 10.46 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.558e-05/0.1474, allocations: 8.031 kB / 473.8 MB, free: 10.46 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.435e-05/0.1475, allocations: 20.75 kB / 473.9 MB, free: 10.44 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002582/0.1477, allocations: 208.1 kB / 474.1 MB, free: 10.2 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.685e-05/0.1478, allocations: 12.36 kB / 474.1 MB, free: 10.18 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.108e-05/0.1478, allocations: 12.38 kB / 474.1 MB, free: 10.17 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002217/0.148, allocations: 93.89 kB / 474.2 MB, free: 10.07 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.334e-05/0.1481, allocations: 7.938 kB / 474.2 MB, free: 10.07 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.72e-05/0.1481, allocations: 4 kB / 474.2 MB, free: 10.06 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.851e-06/0.1481, allocations: 0 / 474.2 MB, free: 10.06 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000146/0.1482, allocations: 51.97 kB / 474.2 MB, free: 10.01 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005475/0.1488, allocations: 384.4 kB / 474.6 MB, free: 9.586 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001413/0.149, allocations: 62.55 kB / 474.7 MB, free: 9.516 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.535e-05/0.149, allocations: 24.98 kB / 474.7 MB, free: 9.488 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.019e-05/0.1491, allocations: 4 kB / 474.7 MB, free: 9.484 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002047/0.1493, allocations: 99.28 kB / 474.8 MB, free: 9.375 MB / 350.1 MB Notification: Performance of pre-optimization done (n=9): time 1.954e-06/0.1493, allocations: 0 / 474.8 MB, free: 9.375 MB / 350.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003469/0.1497, allocations: 125.5 kB / 474.9 MB, free: 9.246 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.018e-05/0.1497, allocations: 59.34 kB / 475 MB, free: 9.176 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001236/0.1498, allocations: 144.3 kB / 475.1 MB, free: 9.027 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.178e-05/0.1499, allocations: 29.7 kB / 475.1 MB, free: 8.992 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.415e-05/0.1499, allocations: 111.9 kB / 475.3 MB, free: 8.879 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.744e-05/0.15, allocations: 27.7 kB / 475.3 MB, free: 8.852 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.925e-05/0.15, allocations: 33.7 kB / 475.3 MB, free: 8.812 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000129/0.1502, allocations: 322.8 kB / 475.6 MB, free: 8.488 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.589e-05/0.1502, allocations: 19.98 kB / 475.7 MB, free: 8.469 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001028/0.1504, allocations: 90.61 kB / 475.7 MB, free: 8.355 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001763/0.1505, allocations: 119.6 kB / 475.9 MB, free: 8.211 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.475e-06/0.1506, allocations: 0 / 475.9 MB, free: 8.211 MB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002473/0.1508, allocations: 141.6 kB / 476 MB, free: 8.066 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.874e-05/0.1508, allocations: 8 kB / 476 MB, free: 8.059 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.426e-06/0.1509, allocations: 0 / 476 MB, free: 8.059 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.734e-05/0.1509, allocations: 7.984 kB / 476 MB, free: 8.051 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001307/0.151, allocations: 23.94 kB / 476 MB, free: 8.027 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.218e-05/0.151, allocations: 8.297 kB / 476 MB, free: 8.02 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.244e-05/0.1511, allocations: 15.94 kB / 476.1 MB, free: 8.004 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.333e-05/0.1511, allocations: 8 kB / 476.1 MB, free: 7.996 MB / 350.1 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 (mean1.y_last,$PRE.mean1.y_last,$whenCondition2,$whenCondition1,rootMeanSquare.mean.y_last,$PRE.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001169/0.1513, allocations: 129.8 kB / 476.2 MB, free: 7.859 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.841e-05/0.1513, allocations: 15.84 kB / 476.2 MB, free: 7.844 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.103e-05/0.1513, allocations: 12.7 kB / 476.2 MB, free: 7.832 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.26e-06/0.1513, allocations: 7.938 kB / 476.2 MB, free: 7.824 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.079e-06/0.1514, allocations: 0 / 476.2 MB, free: 7.824 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.238e-06/0.1514, allocations: 0 / 476.2 MB, free: 7.824 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000181/0.1516, allocations: 205.5 kB / 476.4 MB, free: 7.574 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.192e-06/0.1516, allocations: 0 / 476.4 MB, free: 7.574 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001003/0.1517, allocations: 19.92 kB / 476.4 MB, free: 7.555 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.814e-06/0.1517, allocations: 0 / 476.4 MB, free: 7.555 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.449e-05/0.1517, allocations: 0 / 476.4 MB, free: 7.555 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.685e-06/0.1517, allocations: 7.938 kB / 476.5 MB, free: 7.547 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.21e-07/0.1517, allocations: 0 / 476.5 MB, free: 7.547 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003442/0.1521, allocations: 164.9 kB / 476.6 MB, free: 7.367 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.515e-05/0.1521, allocations: 88.95 kB / 476.7 MB, free: 7.262 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.385e-05/0.1522, allocations: 0 / 476.7 MB, free: 7.262 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.669e-05/0.1522, allocations: 19.92 kB / 476.7 MB, free: 7.242 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.475e-05/0.1523, allocations: 8.062 kB / 476.7 MB, free: 7.234 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.528e-05/0.1523, allocations: 3.984 kB / 476.7 MB, free: 7.23 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.881e-05/0.1524, allocations: 103.3 kB / 476.8 MB, free: 7.129 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1524, allocations: 0 / 476.8 MB, free: 7.129 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002191/0.1526, allocations: 20 kB / 476.9 MB, free: 7.109 MB / 350.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000119/0.1527, allocations: 99.23 kB / 477 MB, free: 7.004 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002462/0.153, allocations: 76.22 kB / 477 MB, free: 6.93 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.153, allocations: 4.062 kB / 477 MB, free: 6.926 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000105/0.1531, allocations: 36.02 kB / 477.1 MB, free: 6.891 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002234/0.1533, allocations: 22.14 kB / 477.1 MB, free: 6.871 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005965/0.1539, allocations: 237 kB / 477.3 MB, free: 6.613 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004019/0.1544, allocations: 0.7079 MB / 478 MB, free: 5.879 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.824e-05/0.1544, allocations: 12.55 kB / 478 MB, free: 5.867 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.293e-05/0.1545, allocations: 11.44 kB / 478.1 MB, free: 5.855 MB / 350.1 MB Notification: Performance of SimCode: time 2.7e-07/0.1545, allocations: 0 / 478.1 MB, free: 5.855 MB / 350.1 MB Notification: Performance of Templates: time 0.003504/0.158, allocations: 0.9201 MB / 479 MB, free: 4.938 MB / 350.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.RootMeanSquare.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.RootMeanSquare.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.RootMeanSquare.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.RootMeanSquare.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.RootMeanSquare.sim & ./ModelicaTest_4.0.0_ModelicaTest.Blocks.RootMeanSquare -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.RootMeanSquare.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.RootMeanSquare_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/RootMeanSquare/RootMeanSquare.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Blocks.RootMeanSquare.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches