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.002204/0.002209, allocations: 183.2 kB / 16.4 MB, free: 5.75 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.288/2.288, allocations: 205.4 MB / 222.5 MB, free: 9.117 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.001176/0.001176, allocations: 86.88 kB / 270.9 MB, free: 8.359 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.6021/0.6021, allocations: 43.56 MB / 362.7 MB, free: 51.93 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004879/0.0004882, allocations: 16 kB / 431.5 MB, free: 5.836 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1376/0.1382, allocations: 58.84 MB / 490.3 MB, free: 10.91 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.003294/0.1415, allocations: 1.826 MB / 492.1 MB, free: 9.066 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.00197/0.1435, allocations: 0.7686 MB / 492.9 MB, free: 8.289 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001887/0.1438, allocations: 4 kB / 492.9 MB, free: 8.285 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001273/0.1439, allocations: 19.78 kB / 492.9 MB, free: 8.266 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002764/0.1442, allocations: 55.78 kB / 493 MB, free: 8.211 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000403/0.1446, allocations: 95.81 kB / 493.1 MB, free: 8.117 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004016/0.145, allocations: 203.6 kB / 493.3 MB, free: 7.918 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003019/0.1454, allocations: 106.6 kB / 493.4 MB, free: 7.82 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002298/0.1456, allocations: 99.55 kB / 493.5 MB, free: 7.723 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002574/0.1459, allocations: 111.4 kB / 493.6 MB, free: 7.613 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 5.365e-05/0.1459, allocations: 12 kB / 493.6 MB, free: 7.602 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.118e-05/0.146, allocations: 8 kB / 493.6 MB, free: 7.594 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 9.764e-05/0.1461, allocations: 55.75 kB / 493.7 MB, free: 7.539 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 9.886e-05/0.1462, allocations: 69.58 kB / 493.7 MB, free: 7.465 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003988/0.1466, allocations: 247.6 kB / 494 MB, free: 7.223 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.623e-06/0.1467, allocations: 4 kB / 494 MB, free: 7.219 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.703e-06/0.1467, allocations: 4 kB / 494 MB, free: 7.215 MB / 378.7 MB Notification: Performance of Transformations before backend: time 7.174e-06/0.1467, allocations: 0 / 494 MB, free: 7.215 MB / 378.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.001482/0.1482, allocations: 0.5442 MB / 494.5 MB, free: 6.617 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.831e-05/0.1482, allocations: 16.03 kB / 494.5 MB, free: 6.602 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001675/0.1484, allocations: 74.88 kB / 494.6 MB, free: 6.52 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001109/0.1485, allocations: 47.47 kB / 494.7 MB, free: 6.473 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007698/0.1493, allocations: 326 kB / 495 MB, free: 6.117 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.999e-05/0.1494, allocations: 20.56 kB / 495 MB, free: 6.098 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.748e-05/0.1495, allocations: 43.88 kB / 495 MB, free: 6.055 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008443/0.1504, allocations: 276.8 kB / 495.3 MB, free: 5.781 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.354e-05/0.1504, allocations: 0 / 495.3 MB, free: 5.781 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.14e-05/0.1505, allocations: 12 kB / 495.3 MB, free: 5.77 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.318e-05/0.1505, allocations: 8 kB / 495.3 MB, free: 5.762 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007587/0.1512, allocations: 210.1 kB / 495.5 MB, free: 5.555 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002157/0.1534, allocations: 0.8223 MB / 496.4 MB, free: 4.684 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006854/0.1541, allocations: 214.8 kB / 496.6 MB, free: 4.465 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.787e-05/0.1542, allocations: 448 / 496.6 MB, free: 4.465 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006863/0.1549, allocations: 235.1 kB / 496.8 MB, free: 4.223 MB / 378.7 MB Notification: Performance of pre-optimization done (n=31): time 2.575e-06/0.1549, allocations: 4 kB / 496.8 MB, free: 4.219 MB / 378.7 MB Notification: Performance of matching and sorting (n=31): time 0.001351/0.1563, allocations: 381.1 kB / 497.2 MB, free: 3.84 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.389e-05/0.1563, allocations: 59.41 kB / 497.2 MB, free: 3.77 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003469/0.1567, allocations: 229 kB / 497.5 MB, free: 3.539 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.599e-05/0.1568, allocations: 37.7 kB / 497.5 MB, free: 3.496 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001817/0.157, allocations: 238.9 kB / 497.7 MB, free: 3.262 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001272/0.1571, allocations: 94.56 kB / 497.8 MB, free: 3.168 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.813e-05/0.1571, allocations: 12 kB / 497.8 MB, free: 3.156 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001789/0.1573, allocations: 326.8 kB / 498.1 MB, free: 2.828 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003771/0.1577, allocations: 96.69 kB / 498.2 MB, free: 2.73 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004786/0.1582, allocations: 222.3 kB / 498.5 MB, free: 2.453 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000437/0.1587, allocations: 127.8 kB / 498.6 MB, free: 2.328 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.521e-06/0.1587, allocations: 4 kB / 498.6 MB, free: 2.324 MB / 378.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0011/0.1598, allocations: 365 kB / 498.9 MB, free: 1.961 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.702e-05/0.1598, allocations: 8.469 kB / 498.9 MB, free: 1.953 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.303e-05/0.1599, allocations: 4 kB / 499 MB, free: 1.949 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.503e-05/0.1599, allocations: 12 kB / 499 MB, free: 1.938 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005494/0.1605, allocations: 75.83 kB / 499 MB, free: 1.863 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.002e-05/0.1605, allocations: 8 kB / 499 MB, free: 1.855 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003217/0.1608, allocations: 43.62 kB / 499.1 MB, free: 1.812 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.455e-05/0.1609, allocations: 20 kB / 499.1 MB, free: 1.793 MB / 378.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.0003082/0.1612, allocations: 165.6 kB / 499.3 MB, free: 1.621 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001085/0.1613, allocations: 31.62 kB / 499.3 MB, free: 1.59 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001112/0.1625, allocations: 327.4 kB / 499.6 MB, free: 1.266 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.022e-05/0.1625, allocations: 4.141 kB / 499.6 MB, free: 1.262 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.472e-06/0.1625, allocations: 96 / 499.6 MB, free: 1.262 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.258e-05/0.1625, allocations: 11.91 kB / 499.6 MB, free: 1.25 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001587/0.1641, allocations: 0.7285 MB / 0.4886 GB, free: 476 kB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.585e-06/0.1642, allocations: 3.984 kB / 0.4886 GB, free: 472 kB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005046/0.1647, allocations: 47.91 kB / 0.4887 GB, free: 424 kB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.055e-06/0.1647, allocations: 4 kB / 0.4887 GB, free: 420 kB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.427e-05/0.1648, allocations: 8 kB / 0.4887 GB, free: 412 kB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.939e-06/0.1648, allocations: 3.938 kB / 0.4887 GB, free: 408 kB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.594e-06/0.1648, allocations: 7.938 kB / 0.4887 GB, free: 400 kB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3236/0.4884, allocations: 0.5284 MB / 0.4892 GB, free: 42.82 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001046/0.4886, allocations: 108 kB / 0.4893 GB, free: 42.73 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.928e-05/0.4887, allocations: 8.531 kB / 0.4893 GB, free: 42.73 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000311/0.489, allocations: 17.56 kB / 0.4894 GB, free: 42.73 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001115/0.4891, allocations: 28.42 kB / 0.4894 GB, free: 42.73 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.266e-05/0.4892, allocations: 14.97 kB / 0.4894 GB, free: 42.73 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002728/0.4895, allocations: 163.6 kB / 0.4896 GB, free: 42.65 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.6e-07/0.4895, allocations: 0 / 0.4896 GB, free: 42.65 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005656/0.4901, allocations: 71.34 kB / 0.4896 GB, free: 42.65 MB / 378.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.001751/0.4918, allocations: 1.081 MB / 0.4907 GB, free: 42 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0009499/0.4928, allocations: 273.5 kB / 0.4909 GB, free: 42 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.42e-06/0.4928, allocations: 0 / 0.4909 GB, free: 42 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004719/0.4933, allocations: 139.9 kB / 0.4911 GB, free: 42 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004114/0.4937, allocations: 28.75 kB / 0.4911 GB, free: 42 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002757/0.4965, allocations: 3.991 MB / 0.495 GB, free: 38.39 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005276/0.4971, allocations: 0.7957 MB / 0.4958 GB, free: 37.69 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005988/0.4977, allocations: 112.3 kB / 0.4959 GB, free: 37.68 MB / 378.7 MB Notification: Performance of SimCode: time 1.773e-06/0.4978, allocations: 0 / 0.4959 GB, free: 37.68 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.714/3.212, allocations: 4.598 MB / 0.5004 GB, free: 37.39 MB / 378.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