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: "" <> buildModelFMU(ModelicaTest.Blocks.RootMeanSquare,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Blocks_RootMeanSquare",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.RootMeanSquare,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Blocks_RootMeanSquare",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00211/0.00211, allocations: 187.6 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.148/2.148, allocations: 205.4 MB / 222.5 MB, free: 13.86 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.001182/0.001181, allocations: 98.84 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.322/0.322, allocations: 43.57 MB / 362.7 MB, free: 11.31 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004769/0.0004769, allocations: 8 kB / 431.5 MB, free: 20.18 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1326/0.1331, allocations: 58.86 MB / 490.3 MB, free: 9.242 MB / 330.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.RootMeanSquare): time 0.002564/0.1357, allocations: 1.332 MB / 491.6 MB, free: 7.895 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.00132/0.1371, allocations: 0.5428 MB / 492.2 MB, free: 7.344 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.105e-05/0.1372, allocations: 0 / 492.2 MB, free: 7.344 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001023/0.1374, allocations: 11.92 kB / 492.2 MB, free: 7.332 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 6.592e-05/0.1374, allocations: 15.97 kB / 492.2 MB, free: 7.316 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000315/0.1378, allocations: 43.81 kB / 492.3 MB, free: 7.273 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001687/0.1379, allocations: 63.92 kB / 492.3 MB, free: 7.211 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001579/0.1381, allocations: 31.91 kB / 492.4 MB, free: 7.18 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001365/0.1383, allocations: 27.91 kB / 492.4 MB, free: 7.152 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001386/0.1384, allocations: 39.78 kB / 492.4 MB, free: 7.113 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 2.388e-05/0.1385, allocations: 4 kB / 492.4 MB, free: 7.109 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.372e-05/0.1385, allocations: 4 kB / 492.4 MB, free: 7.105 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 4.458e-05/0.1386, allocations: 15.97 kB / 492.4 MB, free: 7.09 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 6.248e-05/0.1386, allocations: 41.58 kB / 492.5 MB, free: 7.043 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000147/0.1388, allocations: 72.08 kB / 492.6 MB, free: 6.973 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.725e-06/0.1388, allocations: 4 kB / 492.6 MB, free: 6.969 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.973e-06/0.1388, allocations: 0 / 492.6 MB, free: 6.969 MB / 330.7 MB Notification: Performance of Transformations before backend: time 5.671e-06/0.1388, allocations: 0 / 492.6 MB, free: 6.969 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.0008848/0.1397, allocations: 387.1 kB / 492.9 MB, free: 6.543 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.823e-05/0.1398, allocations: 8.031 kB / 492.9 MB, free: 6.535 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.264e-05/0.1399, allocations: 38.55 kB / 493 MB, free: 6.488 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.014e-05/0.1399, allocations: 19.77 kB / 493 MB, free: 6.469 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002864/0.1402, allocations: 205.8 kB / 493.2 MB, free: 6.23 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.685e-05/0.1402, allocations: 4 kB / 493.2 MB, free: 6.227 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.026e-05/0.1403, allocations: 8 kB / 493.2 MB, free: 6.219 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004357/0.1407, allocations: 89.64 kB / 493.3 MB, free: 6.125 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.616e-05/0.1408, allocations: 0 / 493.3 MB, free: 6.125 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.267e-05/0.1408, allocations: 4 kB / 493.3 MB, free: 6.121 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.622e-06/0.1408, allocations: 0 / 493.3 MB, free: 6.121 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002336/0.1411, allocations: 55.91 kB / 493.4 MB, free: 6.066 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007892/0.1419, allocations: 372.6 kB / 493.7 MB, free: 5.652 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002015/0.1421, allocations: 62.5 kB / 493.8 MB, free: 5.582 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.39e-05/0.1421, allocations: 8.078 kB / 493.8 MB, free: 5.574 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003389/0.1425, allocations: 103.3 kB / 493.9 MB, free: 5.461 MB / 330.7 MB Notification: Performance of pre-optimization done (n=9): time 2.865e-06/0.1425, allocations: 0 / 493.9 MB, free: 5.461 MB / 330.7 MB Notification: Performance of matching and sorting (n=9): time 0.0005229/0.143, allocations: 133.5 kB / 494 MB, free: 5.324 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.209e-05/0.1431, allocations: 59.41 kB / 494.1 MB, free: 5.254 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001718/0.1433, allocations: 134 kB / 494.2 MB, free: 5.113 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.206e-05/0.1433, allocations: 29.7 kB / 494.2 MB, free: 5.078 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001015/0.1434, allocations: 178.5 kB / 494.4 MB, free: 4.902 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.205e-05/0.1435, allocations: 27.62 kB / 494.4 MB, free: 4.875 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.308e-06/0.1435, allocations: 0 / 494.4 MB, free: 4.875 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001421/0.1437, allocations: 322.8 kB / 494.8 MB, free: 4.551 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001231/0.1438, allocations: 23.98 kB / 494.8 MB, free: 4.527 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000168/0.144, allocations: 83.38 kB / 494.9 MB, free: 4.422 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001524/0.1442, allocations: 35.98 kB / 494.9 MB, free: 4.387 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.657e-06/0.1442, allocations: 7.938 kB / 494.9 MB, free: 4.379 MB / 330.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.000417/0.1446, allocations: 137.5 kB / 495 MB, free: 4.238 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.42e-05/0.1446, allocations: 7.953 kB / 495 MB, free: 4.23 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.055e-05/0.1447, allocations: 4 kB / 495.1 MB, free: 4.227 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.7e-05/0.1447, allocations: 0 / 495.1 MB, free: 4.227 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002112/0.1449, allocations: 23.98 kB / 495.1 MB, free: 4.203 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.496e-05/0.1449, allocations: 7.984 kB / 495.1 MB, free: 4.195 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001329/0.1451, allocations: 20.06 kB / 495.1 MB, free: 4.176 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.097e-05/0.1451, allocations: 8 kB / 495.1 MB, free: 4.168 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.0001587/0.1453, allocations: 129.8 kB / 495.2 MB, free: 4.031 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.769e-05/0.1453, allocations: 7.906 kB / 495.2 MB, free: 4.023 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.869e-05/0.1454, allocations: 16.66 kB / 495.3 MB, free: 4.004 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.532e-06/0.1454, allocations: 4 kB / 495.3 MB, free: 4 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.821e-06/0.1454, allocations: 0 / 495.3 MB, free: 4 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.889e-06/0.1454, allocations: 0 / 495.3 MB, free: 4 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002531/0.1457, allocations: 205.7 kB / 495.5 MB, free: 3.75 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-06/0.1457, allocations: 4 kB / 495.5 MB, free: 3.746 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001685/0.1459, allocations: 12.38 kB / 495.5 MB, free: 3.734 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.208e-06/0.1459, allocations: 3.938 kB / 495.5 MB, free: 3.73 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.167e-05/0.1459, allocations: 11.98 kB / 495.5 MB, free: 3.719 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.799e-06/0.146, allocations: 3.953 kB / 495.5 MB, free: 3.715 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.974e-06/0.146, allocations: 3.938 kB / 495.5 MB, free: 3.711 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005943/0.1466, allocations: 176.8 kB / 495.7 MB, free: 3.52 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.714e-05/0.1467, allocations: 85.05 kB / 495.8 MB, free: 3.418 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.289e-05/0.1467, allocations: 0 / 495.8 MB, free: 3.418 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001073/0.1468, allocations: 7.984 kB / 495.8 MB, free: 3.41 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.601e-05/0.1469, allocations: 11.95 kB / 495.8 MB, free: 3.398 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.115e-05/0.1469, allocations: 11.92 kB / 495.8 MB, free: 3.387 MB / 330.7 MB Notification: Performance of sorting global known variables: time 9.704e-05/0.147, allocations: 101.5 kB / 495.9 MB, free: 3.289 MB / 330.7 MB Notification: Performance of sort global known variables: time 3.71e-07/0.147, allocations: 64 / 495.9 MB, free: 3.289 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003274/0.1474, allocations: 24 kB / 495.9 MB, free: 3.266 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.0008708/0.1483, allocations: 0.6944 MB / 496.6 MB, free: 2.543 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.000339/0.1486, allocations: 88.08 kB / 496.7 MB, free: 2.457 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.446e-06/0.1486, allocations: 0 / 496.7 MB, free: 2.457 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001546/0.1488, allocations: 39.92 kB / 496.7 MB, free: 2.418 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002144/0.149, allocations: 8.328 kB / 496.7 MB, free: 2.41 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001623/0.1507, allocations: 1.769 MB / 498.5 MB, free: 0.5547 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003722/0.1511, allocations: 0.7042 MB / 499.2 MB, free: 15.82 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001114/0.1512, allocations: 31.42 kB / 499.2 MB, free: 15.79 MB / 346.7 MB Notification: Performance of SimCode: time 1.152e-06/0.1512, allocations: 4 kB / 499.3 MB, free: 15.79 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.592/2.743, allocations: 1.733 MB / 0.4892 GB, free: 14.05 MB / 346.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.RootMeanSquare_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Blocks_RootMeanSquare_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Blocks_RootMeanSquare.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.RootMeanSquare.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.RootMeanSquare_res.mat does not exist to compare? outputFormat=mat