Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.RootMeanSquare.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.RootMeanSquare,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_RootMeanSquare",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.RootMeanSquare,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_RootMeanSquare",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008457/0.0008457, allocations: 96.91 kB / 16.99 MB, free: 6.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009384/0.0009385, allocations: 198 kB / 17.9 MB, free: 5.945 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.458/1.458, allocations: 227.3 MB / 245.9 MB, free: 10.3 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2116/0.2116, allocations: 45.91 MB / 344 MB, free: 12.1 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003703/0.0003706, allocations: 8 kB / 418 MB, free: 20.75 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1449/0.1453, allocations: 63.47 MB / 481.5 MB, free: 5.277 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.RootMeanSquare): time 0.001905/0.1472, allocations: 1.378 MB / 482.9 MB, free: 3.887 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.000985/0.1482, allocations: 0.5381 MB / 483.4 MB, free: 3.344 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001065/0.1483, allocations: 4 kB / 483.4 MB, free: 3.34 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 8.675e-05/0.1484, allocations: 11.86 kB / 483.5 MB, free: 3.328 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.49e-05/0.1485, allocations: 11.98 kB / 483.5 MB, free: 3.316 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003104/0.1488, allocations: 55.8 kB / 483.5 MB, free: 3.262 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001516/0.149, allocations: 63.86 kB / 483.6 MB, free: 3.199 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001418/0.1492, allocations: 29.11 kB / 483.6 MB, free: 3.172 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001686/0.1493, allocations: 43.78 kB / 483.6 MB, free: 3.129 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001157/0.1495, allocations: 39.83 kB / 483.7 MB, free: 3.09 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.01e-05/0.1495, allocations: 4 kB / 483.7 MB, free: 3.086 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.488e-05/0.1496, allocations: 11.98 kB / 483.7 MB, free: 3.074 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.089e-05/0.1496, allocations: 15.92 kB / 483.7 MB, free: 3.059 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.973e-05/0.1497, allocations: 45.64 kB / 483.8 MB, free: 3.008 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001412/0.1498, allocations: 80.05 kB / 483.8 MB, free: 2.93 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.126e-06/0.1498, allocations: 4 kB / 483.8 MB, free: 2.926 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.1498, allocations: 0 / 483.8 MB, free: 2.926 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.74e-06/0.1498, allocations: 0 / 483.8 MB, free: 2.926 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.0006562/0.1505, allocations: 399 kB / 484.2 MB, free: 2.488 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.421e-05/0.1506, allocations: 12.03 kB / 484.2 MB, free: 2.477 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.131e-05/0.1506, allocations: 34.56 kB / 484.3 MB, free: 2.434 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002184/0.1508, allocations: 39.8 kB / 484.3 MB, free: 2.395 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002322/0.1511, allocations: 211.4 kB / 484.5 MB, free: 2.148 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.442e-05/0.1511, allocations: 4 kB / 484.5 MB, free: 2.145 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.116e-05/0.1511, allocations: 19.84 kB / 484.6 MB, free: 2.125 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000214/0.1514, allocations: 89.64 kB / 484.6 MB, free: 2.031 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.35e-05/0.1514, allocations: 4 kB / 484.6 MB, free: 2.027 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.383e-05/0.1514, allocations: 0 / 484.6 MB, free: 2.027 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.771e-06/0.1514, allocations: 3.984 kB / 484.6 MB, free: 2.023 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001469/0.1516, allocations: 67.84 kB / 484.7 MB, free: 1.957 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000571/0.1522, allocations: 376.6 kB / 485.1 MB, free: 1.539 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001449/0.1523, allocations: 74.48 kB / 485.2 MB, free: 1.457 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.858e-05/0.1523, allocations: 0 / 485.2 MB, free: 1.457 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001875/0.1525, allocations: 111.4 kB / 485.3 MB, free: 1.336 MB / 350.1 MB Notification: Performance of pre-optimization done (n=9): time 1.412e-06/0.1525, allocations: 3.938 kB / 485.3 MB, free: 1.332 MB / 350.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003254/0.1529, allocations: 121.6 kB / 485.4 MB, free: 1.207 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.978e-05/0.1529, allocations: 59.34 kB / 485.4 MB, free: 1.137 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001242/0.1531, allocations: 146.3 kB / 485.6 MB, free: 0.9844 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.42e-05/0.1531, allocations: 33.7 kB / 485.6 MB, free: 0.9453 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.576e-05/0.1532, allocations: 116.2 kB / 485.7 MB, free: 0.8281 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.359e-05/0.1532, allocations: 27.64 kB / 485.8 MB, free: 0.8008 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.971e-06/0.1532, allocations: 0 / 485.8 MB, free: 0.8008 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.575e-05/0.1533, allocations: 322.8 kB / 486.1 MB, free: 488 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.352e-05/0.1534, allocations: 27.98 kB / 486.1 MB, free: 460 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001026/0.1535, allocations: 86.39 kB / 486.2 MB, free: 348 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.292e-05/0.1536, allocations: 35.92 kB / 486.2 MB, free: 312 kB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.069e-06/0.1536, allocations: 8 kB / 486.2 MB, free: 304 kB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002416/0.1539, allocations: 141.3 kB / 486.4 MB, free: 156 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.774e-05/0.1539, allocations: 11.95 kB / 486.4 MB, free: 144 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.551e-06/0.1539, allocations: 0 / 486.4 MB, free: 144 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.447e-05/0.1539, allocations: 4 kB / 486.4 MB, free: 140 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001251/0.154, allocations: 28.2 kB / 486.4 MB, free: 112 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.099e-05/0.1541, allocations: 11.92 kB / 486.4 MB, free: 100 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.208e-05/0.1541, allocations: 8 kB / 486.4 MB, free: 92 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.668e-06/0.1542, allocations: 4 kB / 486.4 MB, free: 88 kB / 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 0.0001159/0.1543, allocations: 125.9 kB / 486.6 MB, free: 15.95 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.049e-05/0.1543, allocations: 11.91 kB / 486.6 MB, free: 15.94 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.638e-05/0.1543, allocations: 16.66 kB / 486.6 MB, free: 15.93 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.204e-06/0.1544, allocations: 96 / 486.6 MB, free: 15.93 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.061e-06/0.1544, allocations: 8 kB / 486.6 MB, free: 15.92 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.84e-06/0.1544, allocations: 8.297 kB / 486.6 MB, free: 15.91 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001661/0.1545, allocations: 205.5 kB / 486.8 MB, free: 15.66 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.1546, allocations: 0 / 486.8 MB, free: 15.66 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001317/0.1547, allocations: 19.92 kB / 486.8 MB, free: 15.64 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.106e-06/0.1547, allocations: 3.938 kB / 486.8 MB, free: 15.64 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.595e-05/0.1547, allocations: 4 kB / 486.8 MB, free: 15.63 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.647e-06/0.1547, allocations: 3.953 kB / 486.8 MB, free: 15.63 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.1547, allocations: 4 kB / 486.8 MB, free: 15.62 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003284/0.1551, allocations: 168.9 kB / 487 MB, free: 15.44 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.774e-05/0.1552, allocations: 81.02 kB / 487.1 MB, free: 15.34 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.104e-05/0.1552, allocations: 12.02 kB / 487.1 MB, free: 15.33 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.454e-05/0.1553, allocations: 8 kB / 487.1 MB, free: 15.32 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.051e-05/0.1553, allocations: 7.938 kB / 487.1 MB, free: 15.32 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.688e-06/0.1553, allocations: 8.062 kB / 487.1 MB, free: 15.31 MB / 366.1 MB Notification: Performance of sorting global known variables: time 8.273e-05/0.1554, allocations: 119 kB / 487.2 MB, free: 15.2 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1554, allocations: 0 / 487.2 MB, free: 15.2 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002285/0.1557, allocations: 27.84 kB / 487.3 MB, free: 15.17 MB / 366.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.0006082/0.1563, allocations: 0.6949 MB / 488 MB, free: 14.44 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001976/0.1565, allocations: 83.83 kB / 488 MB, free: 14.36 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.607e-06/0.1565, allocations: 4 kB / 488 MB, free: 14.36 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 8.517e-05/0.1566, allocations: 40.55 kB / 488.1 MB, free: 14.32 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001585/0.1567, allocations: 11.95 kB / 488.1 MB, free: 14.3 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001269/0.158, allocations: 1.744 MB / 489.8 MB, free: 12.48 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002647/0.1583, allocations: 0.716 MB / 490.5 MB, free: 11.74 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.357e-05/0.1584, allocations: 12.42 kB / 490.6 MB, free: 11.72 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.924e-05/0.1584, allocations: 31.42 kB / 490.6 MB, free: 11.69 MB / 366.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1584, allocations: 0 / 490.6 MB, free: 11.69 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01348/0.1719, allocations: 2.095 MB / 492.7 MB, free: 9.699 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001758/0.1722, allocations: 173.8 kB / 492.9 MB, free: 9.453 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.677/1.849, allocations: 0 / 492.9 MB, free: 9.453 MB / 366.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.RootMeanSquare.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.RootMeanSquare.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.RootMeanSquare.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.RootMeanSquare.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Blocks.RootMeanSquare_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Blocks_RootMeanSquare_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Blocks_RootMeanSquare.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.RootMeanSquare.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Blocks.RootMeanSquare_res.mat does not exist to compare? outputFormat=mat