Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Mean.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.Mean,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Blocks_Mean",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.Mean,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Blocks_Mean",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.002149/0.002148, allocations: 186 kB / 16.41 MB, free: 5.723 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.264/2.264, allocations: 205.4 MB / 222.5 MB, free: 9.137 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.001702/0.001702, allocations: 93.23 kB / 270.9 MB, free: 8.387 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.6346/0.6346, allocations: 43.56 MB / 362.7 MB, free: 52.17 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004846/0.0004845, allocations: 8 kB / 431.5 MB, free: 6.105 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1382/0.1387, allocations: 58.84 MB / 490.3 MB, free: 11.18 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4873/0.6261, allocations: 87.31 MB / 0.5641 GB, free: 15.3 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002788/0.6264, allocations: 67.97 kB / 0.5641 GB, free: 15.23 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02052/0.647, allocations: 4.308 MB / 0.5684 GB, free: 10.95 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.794e-06/0.647, allocations: 0 / 0.5684 GB, free: 10.95 MB / 394.7 MB Notification: Performance of Transformations before backend: time 2.522e-05/0.6471, allocations: 4 kB / 0.5684 GB, free: 10.95 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 59 * Number of variables: 59 Notification: Performance of Generate backend data structure: time 0.001443/0.6485, allocations: 0.5635 MB / 0.5689 GB, free: 10.34 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.982e-05/0.6486, allocations: 12.03 kB / 0.5689 GB, free: 10.33 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001817/0.6488, allocations: 82.84 kB / 0.569 GB, free: 10.24 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000115/0.6489, allocations: 39.53 kB / 0.569 GB, free: 10.2 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006939/0.6496, allocations: 318 kB / 0.5693 GB, free: 9.855 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.467e-05/0.6497, allocations: 20.56 kB / 0.5694 GB, free: 9.836 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.451e-05/0.6498, allocations: 36 kB / 0.5694 GB, free: 9.801 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008505/0.6506, allocations: 281.8 kB / 0.5697 GB, free: 9.523 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.361e-05/0.6507, allocations: 0 / 0.5697 GB, free: 9.523 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.489e-05/0.6507, allocations: 12 kB / 0.5697 GB, free: 9.512 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.706e-05/0.6508, allocations: 7.953 kB / 0.5697 GB, free: 9.504 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007728/0.6515, allocations: 214.1 kB / 0.5699 GB, free: 9.293 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002167/0.6537, allocations: 0.8223 MB / 0.5707 GB, free: 8.422 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006871/0.6544, allocations: 212.5 kB / 0.5709 GB, free: 8.211 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.032e-05/0.6545, allocations: 9.5 kB / 0.5709 GB, free: 8.203 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007018/0.6552, allocations: 234 kB / 0.5711 GB, free: 7.965 MB / 394.7 MB Notification: Performance of pre-optimization done (n=31): time 3.407e-06/0.6552, allocations: 0 / 0.5711 GB, free: 7.965 MB / 394.7 MB Notification: Performance of matching and sorting (n=31): time 0.001415/0.6567, allocations: 391.3 kB / 0.5715 GB, free: 7.578 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.614e-05/0.6567, allocations: 63.39 kB / 0.5716 GB, free: 7.504 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003338/0.6571, allocations: 212 kB / 0.5718 GB, free: 7.289 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 5.975e-05/0.6572, allocations: 37.7 kB / 0.5718 GB, free: 7.246 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001724/0.6573, allocations: 230.9 kB / 0.572 GB, free: 7.02 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001265/0.6575, allocations: 94.64 kB / 0.5721 GB, free: 6.926 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.14e-05/0.6575, allocations: 8 kB / 0.5721 GB, free: 6.918 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001738/0.6577, allocations: 330.8 kB / 0.5724 GB, free: 6.586 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003706/0.6581, allocations: 92.69 kB / 0.5725 GB, free: 6.492 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004914/0.6586, allocations: 234.3 kB / 0.5727 GB, free: 6.203 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004497/0.6591, allocations: 130 kB / 0.5729 GB, free: 6.078 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.346e-06/0.6591, allocations: 4 kB / 0.5729 GB, free: 6.074 MB / 394.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0011/0.6602, allocations: 366.1 kB / 0.5732 GB, free: 5.711 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.453e-05/0.6603, allocations: 8 kB / 0.5732 GB, free: 5.703 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.231e-05/0.6603, allocations: 4 kB / 0.5732 GB, free: 5.699 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.863e-05/0.6603, allocations: 8.469 kB / 0.5732 GB, free: 5.691 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005581/0.6609, allocations: 83.83 kB / 0.5733 GB, free: 5.609 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.002e-05/0.6609, allocations: 11.95 kB / 0.5733 GB, free: 5.598 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003103/0.6612, allocations: 31.73 kB / 0.5734 GB, free: 5.566 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.889e-05/0.6613, allocations: 20 kB / 0.5734 GB, free: 5.547 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 15 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.mean.y,mean.y,$PRE.rectifiedMean.mean.y,rectifiedMean.mean.y,$PRE.rootMeanSquare.mean.y,rootMeanSquare.mean.y,$PRE.harmonic.mean1.y,harmonic.mean1.y,$PRE.harmonic.mean2.y,harmonic.mean2.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 46 * 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.0003486/0.6616, allocations: 169.5 kB / 0.5735 GB, free: 5.371 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.588e-05/0.6617, allocations: 27.72 kB / 0.5736 GB, free: 5.344 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001142/0.6629, allocations: 333.1 kB / 0.5739 GB, free: 5.016 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.096e-05/0.6629, allocations: 7.984 kB / 0.5739 GB, free: 5.008 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.372e-06/0.6629, allocations: 0 / 0.5739 GB, free: 5.008 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.277e-06/0.6629, allocations: 3.953 kB / 0.5739 GB, free: 5.004 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001617/0.6646, allocations: 0.7285 MB / 0.5746 GB, free: 4.219 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.184e-06/0.6646, allocations: 7.938 kB / 0.5746 GB, free: 4.211 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005133/0.6651, allocations: 51.91 kB / 0.5747 GB, free: 4.16 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.304e-06/0.6651, allocations: 4 kB / 0.5747 GB, free: 4.156 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.585e-05/0.6652, allocations: 12.08 kB / 0.5747 GB, free: 4.145 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.358e-06/0.6652, allocations: 3.938 kB / 0.5747 GB, free: 4.141 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.869e-06/0.6652, allocations: 3.953 kB / 0.5747 GB, free: 4.137 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001547/0.6668, allocations: 0.5385 MB / 0.5752 GB, free: 3.582 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001008/0.6669, allocations: 108.7 kB / 0.5753 GB, free: 3.457 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.717e-05/0.667, allocations: 12.05 kB / 0.5753 GB, free: 3.445 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002977/0.6673, allocations: 15.98 kB / 0.5753 GB, free: 3.43 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.848e-05/0.6674, allocations: 27.92 kB / 0.5754 GB, free: 3.402 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.229e-05/0.6675, allocations: 15.98 kB / 0.5754 GB, free: 3.387 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0002547/0.6677, allocations: 168.4 kB / 0.5755 GB, free: 3.223 MB / 394.7 MB Notification: Performance of sort global known variables: time 4.8e-07/0.6677, allocations: 0 / 0.5755 GB, free: 3.223 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0005569/0.6683, allocations: 71.78 kB / 0.5756 GB, free: 3.152 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (mean.x,rectifiedMean.mean.x,rootMeanSquare.mean.x,harmonic.mean1.x,harmonic.mean2.x) * Number of discrete variables: 10 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,mean.y,rectifiedMean.mean.y,rootMeanSquare.mean.y,harmonic.mean1.y,harmonic.mean2.y) * Number of discrete states: 5 (harmonic.mean2.x,harmonic.mean1.x,rootMeanSquare.mean.x,rectifiedMean.mean.x,mean.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.002065/0.6704, allocations: 1.099 MB / 0.5767 GB, free: 2.031 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0009618/0.6714, allocations: 279.6 kB / 0.5769 GB, free: 1.758 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.917e-06/0.6714, allocations: 0 / 0.5769 GB, free: 1.758 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004629/0.6719, allocations: 137.3 kB / 0.5771 GB, free: 1.625 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003733/0.6723, allocations: 28.42 kB / 0.5771 GB, free: 1.598 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003589/0.6759, allocations: 3.992 MB / 0.581 GB, free: 13.47 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005523/0.6765, allocations: 0.7919 MB / 0.5818 GB, free: 12.65 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003416/0.6768, allocations: 119.4 kB / 0.5819 GB, free: 12.54 MB / 410.7 MB Notification: Performance of SimCode: time 1.282e-06/0.6768, allocations: 0 / 0.5819 GB, free: 12.54 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.563/3.24, allocations: 4.599 MB / 0.5864 GB, free: 7.941 MB / 410.7 MB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Mean.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Mean.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Mean.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Mean.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Mean_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Blocks_Mean_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Blocks_Mean.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Mean.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Mean_res.mat does not exist to compare? outputFormat=mat