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: "" <> buildModelFMU(ModelicaTest.Blocks.RootMeanSquare,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_RootMeanSquare",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.RootMeanSquare,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_RootMeanSquare",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009724/0.0009727, allocations: 98.94 kB / 17 MB, free: 6.402 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.001171/0.001171, allocations: 177.5 kB / 17.89 MB, free: 5.945 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.366/1.366, allocations: 223.2 MB / 241.9 MB, free: 14.61 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.2258/0.2258, allocations: 44.24 MB / 337.2 MB, free: 2.566 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003578/0.0003579, allocations: 12 kB / 409.7 MB, free: 27.58 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1333/0.1337, allocations: 61.93 MB / 471.6 MB, free: 13.63 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.RootMeanSquare): time 0.001766/0.1355, allocations: 1.343 MB / 473 MB, free: 12.27 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007725/0.1363, allocations: 0.4991 MB / 473.5 MB, free: 11.77 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.553e-05/0.1364, allocations: 0 / 473.5 MB, free: 11.77 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 8.308e-05/0.1365, allocations: 11.92 kB / 473.5 MB, free: 11.75 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.752e-05/0.1365, allocations: 15.86 kB / 473.5 MB, free: 11.74 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002378/0.1368, allocations: 43.89 kB / 473.6 MB, free: 11.7 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001287/0.1369, allocations: 95.7 kB / 473.7 MB, free: 11.6 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001147/0.137, allocations: 29.31 kB / 473.7 MB, free: 11.57 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.36e-05/0.1371, allocations: 47.77 kB / 473.7 MB, free: 11.52 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001078/0.1372, allocations: 39.84 kB / 473.8 MB, free: 11.48 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.955e-05/0.1373, allocations: 7.938 kB / 473.8 MB, free: 11.48 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.703e-05/0.1373, allocations: 4 kB / 473.8 MB, free: 11.47 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.117e-05/0.1373, allocations: 15.97 kB / 473.8 MB, free: 11.46 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.332e-05/0.1374, allocations: 41.64 kB / 473.8 MB, free: 11.41 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 9.988e-05/0.1375, allocations: 76.06 kB / 473.9 MB, free: 11.34 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.629e-06/0.1375, allocations: 4 kB / 473.9 MB, free: 11.33 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.824e-06/0.1375, allocations: 0 / 473.9 MB, free: 11.33 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.369e-06/0.1375, allocations: 0 / 473.9 MB, free: 11.33 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.000605/0.1381, allocations: 395 kB / 474.3 MB, free: 10.9 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.81e-05/0.1382, allocations: 12.03 kB / 474.3 MB, free: 10.89 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.499e-05/0.1382, allocations: 42.5 kB / 474.3 MB, free: 10.84 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.364e-05/0.1383, allocations: 11.91 kB / 474.4 MB, free: 10.82 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002132/0.1385, allocations: 198.9 kB / 474.6 MB, free: 10.59 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.645e-05/0.1385, allocations: 11.95 kB / 474.6 MB, free: 10.58 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.685e-05/0.1385, allocations: 8 kB / 474.6 MB, free: 10.57 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002156/0.1387, allocations: 97.64 kB / 474.7 MB, free: 10.47 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.11e-05/0.1388, allocations: 0 / 474.7 MB, free: 10.47 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.483e-05/0.1388, allocations: 4 kB / 474.7 MB, free: 10.46 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.091e-06/0.1388, allocations: 0 / 474.7 MB, free: 10.46 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000134/0.1389, allocations: 55.91 kB / 474.7 MB, free: 10.41 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005558/0.1395, allocations: 388.4 kB / 475.1 MB, free: 9.98 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001266/0.1396, allocations: 62.55 kB / 475.2 MB, free: 9.91 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.602e-05/0.1397, allocations: 24.98 kB / 475.2 MB, free: 9.883 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.889e-05/0.1398, allocations: 8 kB / 475.2 MB, free: 9.875 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001975/0.14, allocations: 107.2 kB / 475.3 MB, free: 9.758 MB / 350.1 MB Notification: Performance of pre-optimization done (n=9): time 1.493e-06/0.14, allocations: 0 / 475.3 MB, free: 9.758 MB / 350.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003262/0.1403, allocations: 133.8 kB / 475.4 MB, free: 9.621 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.368e-05/0.1404, allocations: 59.36 kB / 475.5 MB, free: 9.551 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001118/0.1405, allocations: 140.4 kB / 475.6 MB, free: 9.406 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.025e-05/0.1405, allocations: 33.64 kB / 475.7 MB, free: 9.367 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.876e-05/0.1406, allocations: 108 kB / 475.8 MB, free: 9.258 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.709e-05/0.1406, allocations: 23.62 kB / 475.8 MB, free: 9.234 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.915e-06/0.1406, allocations: 4 kB / 475.8 MB, free: 9.23 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001535/0.1408, allocations: 326.8 kB / 476.1 MB, free: 8.902 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.7e-05/0.1408, allocations: 23.98 kB / 476.1 MB, free: 8.879 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001002/0.141, allocations: 83.7 kB / 476.2 MB, free: 8.77 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.366e-05/0.141, allocations: 39.94 kB / 476.3 MB, free: 8.73 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.609e-06/0.1411, allocations: 4 kB / 476.3 MB, free: 8.727 MB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.000244/0.1413, allocations: 145.4 kB / 476.4 MB, free: 8.578 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.706e-05/0.1413, allocations: 8 kB / 476.4 MB, free: 8.57 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.65e-06/0.1413, allocations: 0 / 476.4 MB, free: 8.57 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.407e-05/0.1414, allocations: 4 kB / 476.4 MB, free: 8.566 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001214/0.1415, allocations: 31.92 kB / 476.4 MB, free: 8.535 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.238e-06/0.1415, allocations: 3.953 kB / 476.5 MB, free: 8.531 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.926e-05/0.1416, allocations: 15.84 kB / 476.5 MB, free: 8.516 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.051e-05/0.1416, allocations: 4.188 kB / 476.5 MB, free: 8.512 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 ($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 9.993e-05/0.1417, allocations: 130.4 kB / 476.6 MB, free: 8.375 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.773e-05/0.1417, allocations: 7.906 kB / 476.6 MB, free: 8.367 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.384e-05/0.1418, allocations: 16.66 kB / 476.6 MB, free: 8.352 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.264e-06/0.1418, allocations: 0 / 476.6 MB, free: 8.352 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.937e-06/0.1418, allocations: 0 / 476.6 MB, free: 8.352 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.843e-06/0.1418, allocations: 7.938 kB / 476.6 MB, free: 8.344 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001635/0.142, allocations: 209.5 kB / 476.8 MB, free: 8.09 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.142, allocations: 0 / 476.8 MB, free: 8.09 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.248e-05/0.1421, allocations: 15.98 kB / 476.9 MB, free: 8.074 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.264e-06/0.1421, allocations: 0 / 476.9 MB, free: 8.074 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.38e-05/0.1421, allocations: 4 kB / 476.9 MB, free: 8.07 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.647e-06/0.1421, allocations: 3.984 kB / 476.9 MB, free: 8.066 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.011e-06/0.1421, allocations: 0 / 476.9 MB, free: 8.066 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003172/0.1424, allocations: 180.8 kB / 477 MB, free: 7.871 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.311e-05/0.1425, allocations: 85.05 kB / 477.1 MB, free: 7.77 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.53e-05/0.1425, allocations: 8 kB / 477.1 MB, free: 7.762 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.71e-05/0.1426, allocations: 4.094 kB / 477.1 MB, free: 7.758 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.968e-05/0.1427, allocations: 11.92 kB / 477.1 MB, free: 7.746 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.656e-06/0.1427, allocations: 0 / 477.1 MB, free: 7.746 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.439e-05/0.1427, allocations: 109.3 kB / 477.2 MB, free: 7.641 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1427, allocations: 0 / 477.2 MB, free: 7.641 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002125/0.143, allocations: 23.91 kB / 477.3 MB, free: 7.617 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 (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.0005607/0.1435, allocations: 0.7099 MB / 478 MB, free: 6.879 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000212/0.1438, allocations: 79.95 kB / 478.1 MB, free: 6.801 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.923e-06/0.1438, allocations: 0 / 478.1 MB, free: 6.801 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.609e-05/0.1439, allocations: 39.92 kB / 478.1 MB, free: 6.762 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001987/0.1441, allocations: 8 kB / 478.1 MB, free: 6.754 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001131/0.1452, allocations: 0.7641 MB / 478.9 MB, free: 5.922 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002853/0.1455, allocations: 0.7043 MB / 479.6 MB, free: 5.191 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.987e-05/0.1456, allocations: 4.844 kB / 479.6 MB, free: 5.188 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.436e-05/0.1456, allocations: 35.36 kB / 479.6 MB, free: 5.152 MB / 350.1 MB Notification: Performance of SimCode: time 2.6e-07/0.1456, allocations: 0 / 479.6 MB, free: 5.152 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01192/0.1576, allocations: 2.034 MB / 481.6 MB, free: 3.227 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001744/0.1578, allocations: 173.4 kB / 481.8 MB, free: 2.988 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.814/1.971, allocations: 0 / 481.8 MB, free: 2.988 MB / 350.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Blocks.RootMeanSquare_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Blocks_RootMeanSquare_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Blocks_RootMeanSquare.fmu > ModelicaTest_4.0.0_ModelicaTest.Blocks.RootMeanSquare.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Blocks.RootMeanSquare_res.mat does not exist to compare? outputFormat=mat