Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean.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.Mean,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_Mean",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.Mean,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_Mean",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.001051/0.001051, allocations: 95.2 kB / 17 MB, free: 6.355 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.001087/0.001088, allocations: 184.2 kB / 17.89 MB, free: 5.926 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.364/1.364, allocations: 223.2 MB / 241.9 MB, free: 132 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2481/0.2481, allocations: 44.23 MB / 337.2 MB, free: 2.77 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002909/0.0002909, allocations: 12 kB / 409.7 MB, free: 27.59 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1251/0.1254, allocations: 61.92 MB / 471.6 MB, free: 13.64 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.002384/0.1278, allocations: 1.857 MB / 473.5 MB, free: 11.76 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001195/0.129, allocations: 0.7133 MB / 474.2 MB, free: 11.04 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001369/0.1292, allocations: 11.94 kB / 474.2 MB, free: 11.03 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001145/0.1293, allocations: 23.8 kB / 474.2 MB, free: 11.01 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001916/0.1295, allocations: 47.5 kB / 474.3 MB, free: 10.96 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002995/0.1298, allocations: 99.88 kB / 474.4 MB, free: 10.86 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000385/0.1302, allocations: 327 kB / 474.7 MB, free: 10.54 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002426/0.1305, allocations: 106.6 kB / 474.8 MB, free: 10.44 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001855/0.1307, allocations: 103.4 kB / 474.9 MB, free: 10.34 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001971/0.1309, allocations: 123.4 kB / 475 MB, free: 10.22 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.503e-05/0.1309, allocations: 12 kB / 475 MB, free: 10.21 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.362e-05/0.131, allocations: 12 kB / 475.1 MB, free: 10.2 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.667e-05/0.131, allocations: 51.75 kB / 475.1 MB, free: 10.14 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.619e-05/0.1311, allocations: 81.52 kB / 475.2 MB, free: 10.06 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002775/0.1314, allocations: 255.7 kB / 475.4 MB, free: 9.809 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.182e-06/0.1314, allocations: 0 / 475.4 MB, free: 9.809 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.1314, allocations: 0 / 475.4 MB, free: 9.809 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.971e-06/0.1315, allocations: 0 / 475.4 MB, free: 9.809 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: 64 * Number of variables: 64 Notification: Performance of Generate backend data structure: time 0.001051/0.1325, allocations: 0.5641 MB / 476 MB, free: 9.195 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.944e-05/0.1326, allocations: 12.03 kB / 476 MB, free: 9.184 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001118/0.1327, allocations: 75.08 kB / 476.1 MB, free: 9.102 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.6e-05/0.1328, allocations: 43.53 kB / 476.1 MB, free: 9.059 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005516/0.1333, allocations: 330.1 kB / 476.5 MB, free: 8.695 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.309e-05/0.1334, allocations: 24.64 kB / 476.5 MB, free: 8.668 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.642e-05/0.1334, allocations: 39.95 kB / 476.5 MB, free: 8.629 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005705/0.134, allocations: 290 kB / 476.8 MB, free: 8.34 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.941e-05/0.134, allocations: 3.906 kB / 476.8 MB, free: 8.336 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.558e-05/0.1341, allocations: 19.98 kB / 476.8 MB, free: 8.316 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.345e-05/0.1341, allocations: 11.98 kB / 476.8 MB, free: 8.305 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004188/0.1345, allocations: 206.5 kB / 477 MB, free: 8.105 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00128/0.1358, allocations: 0.8465 MB / 477.9 MB, free: 7.207 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003936/0.1362, allocations: 214.8 kB / 478.1 MB, free: 6.988 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001972/0.1364, allocations: 104.8 kB / 478.2 MB, free: 6.883 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.432e-05/0.1365, allocations: 11.97 kB / 478.2 MB, free: 6.871 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003986/0.1369, allocations: 235.7 kB / 478.4 MB, free: 6.629 MB / 350.1 MB Notification: Performance of pre-optimization done (n=31): time 1.884e-06/0.1369, allocations: 0 / 478.4 MB, free: 6.629 MB / 350.1 MB Notification: Performance of matching and sorting (n=31): time 0.0007501/0.1376, allocations: 377.2 kB / 478.8 MB, free: 6.254 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.436e-05/0.1377, allocations: 55.41 kB / 478.9 MB, free: 6.188 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000263/0.138, allocations: 236.9 kB / 479.1 MB, free: 5.945 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.142e-05/0.138, allocations: 37.7 kB / 479.1 MB, free: 5.902 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001352/0.1382, allocations: 180.7 kB / 479.3 MB, free: 5.723 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.694e-05/0.1383, allocations: 106.5 kB / 479.4 MB, free: 5.617 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.946e-05/0.1383, allocations: 12 kB / 479.4 MB, free: 5.605 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001398/0.1384, allocations: 338.8 kB / 479.7 MB, free: 5.266 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001908/0.1386, allocations: 88.7 kB / 479.8 MB, free: 5.176 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002907/0.1389, allocations: 234.6 kB / 480.1 MB, free: 4.887 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002384/0.1392, allocations: 123.8 kB / 480.2 MB, free: 4.766 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.659e-06/0.1392, allocations: 4 kB / 480.2 MB, free: 4.762 MB / 350.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006153/0.1398, allocations: 365.3 kB / 480.5 MB, free: 4.398 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.009e-05/0.1398, allocations: 12 kB / 480.6 MB, free: 4.387 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.395e-06/0.1399, allocations: 4 kB / 480.6 MB, free: 4.383 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.741e-05/0.1399, allocations: 8 kB / 480.6 MB, free: 4.375 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000286/0.1402, allocations: 79.83 kB / 480.6 MB, free: 4.297 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.418e-05/0.1402, allocations: 11.94 kB / 480.7 MB, free: 4.285 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001637/0.1404, allocations: 39.73 kB / 480.7 MB, free: 4.246 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.653e-05/0.1404, allocations: 12 kB / 480.7 MB, free: 4.234 MB / 350.1 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_last,mean.y_last,$PRE.rectifiedMean.mean.y_last,rectifiedMean.mean.y_last,$PRE.rootMeanSquare.mean.y_last,rootMeanSquare.mean.y_last,$PRE.harmonic.mean1.y_last,harmonic.mean1.y_last,$PRE.harmonic.mean2.y_last,harmonic.mean2.y_last) * 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.0002155/0.1406, allocations: 178.6 kB / 480.9 MB, free: 4.051 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.999e-05/0.1407, allocations: 27.62 kB / 480.9 MB, free: 4.023 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006729/0.1413, allocations: 336.3 kB / 481.2 MB, free: 3.691 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.066e-05/0.1414, allocations: 7.984 kB / 481.2 MB, free: 3.684 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.525e-06/0.1414, allocations: 0 / 481.2 MB, free: 3.684 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.294e-06/0.1414, allocations: 0 / 481.2 MB, free: 3.684 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001042/0.1424, allocations: 0.7323 MB / 482 MB, free: 2.895 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.278e-06/0.1425, allocations: 4 kB / 482 MB, free: 2.891 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002492/0.1427, allocations: 51.95 kB / 482 MB, free: 2.84 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.588e-06/0.1427, allocations: 0 / 482 MB, free: 2.84 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.468e-05/0.1428, allocations: 12 kB / 482 MB, free: 2.828 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.156e-06/0.1428, allocations: 3.938 kB / 482 MB, free: 2.824 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.1428, allocations: 8 kB / 482.1 MB, free: 2.816 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009112/0.1437, allocations: 0.5306 MB / 482.6 MB, free: 2.27 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.485e-05/0.1438, allocations: 108.8 kB / 482.7 MB, free: 2.145 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.249e-05/0.1439, allocations: 8.094 kB / 482.7 MB, free: 2.137 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001552/0.144, allocations: 19.92 kB / 482.7 MB, free: 2.117 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.148e-05/0.1441, allocations: 19.97 kB / 482.7 MB, free: 2.098 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.896e-05/0.1441, allocations: 19.98 kB / 482.8 MB, free: 2.078 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001779/0.1443, allocations: 164.5 kB / 482.9 MB, free: 1.918 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.11e-07/0.1443, allocations: 0 / 482.9 MB, free: 1.918 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003889/0.1447, allocations: 75.69 kB / 483 MB, free: 1.844 MB / 350.1 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_last,rectifiedMean.mean.y_last,rootMeanSquare.mean.y_last,harmonic.mean1.y_last,harmonic.mean2.y_last) * 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.001217/0.146, allocations: 1.094 MB / 484.1 MB, free: 0.7188 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000539/0.1465, allocations: 263.8 kB / 484.3 MB, free: 472 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.1465, allocations: 0.9375 kB / 484.3 MB, free: 472 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002517/0.1468, allocations: 140.4 kB / 484.5 MB, free: 332 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003681/0.1472, allocations: 52.48 kB / 484.5 MB, free: 276 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002875/0.15, allocations: 1.849 MB / 486.4 MB, free: 14.32 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004522/0.1505, allocations: 0.7881 MB / 487.2 MB, free: 13.51 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001595/0.1507, allocations: 51.22 kB / 487.2 MB, free: 13.46 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001674/0.1509, allocations: 111.4 kB / 487.3 MB, free: 13.35 MB / 366.1 MB Notification: Performance of SimCode: time 7.42e-07/0.1509, allocations: 0 / 487.3 MB, free: 13.35 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01765/0.1685, allocations: 4.938 MB / 492.3 MB, free: 8.516 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001908/0.1688, allocations: 172 kB / 492.4 MB, free: 8.27 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.883/2.052, allocations: 0 / 492.4 MB, free: 8.27 MB / 366.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Blocks_Mean_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Blocks_Mean.fmu > ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean_res.mat does not exist to compare? outputFormat=mat