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.001153/0.001154, allocations: 94.09 kB / 16.99 MB, free: 5.945 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.00118/0.00118, allocations: 183.1 kB / 17.88 MB, free: 5.602 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.355/1.355, allocations: 223.2 MB / 241.8 MB, free: 14.66 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2044/0.2044, allocations: 44.23 MB / 337.1 MB, free: 2.691 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002969/0.000297, allocations: 8 kB / 409.6 MB, free: 27.62 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1108/0.1111, allocations: 61.92 MB / 471.5 MB, free: 13.67 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.002272/0.1134, allocations: 1.83 MB / 473.4 MB, free: 11.82 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001293/0.1147, allocations: 0.7251 MB / 474.1 MB, free: 11.09 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001446/0.1149, allocations: 3.938 kB / 474.1 MB, free: 11.09 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001206/0.115, allocations: 27.72 kB / 474.1 MB, free: 11.06 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002048/0.1152, allocations: 47.84 kB / 474.2 MB, free: 11.02 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002742/0.1155, allocations: 107.8 kB / 474.3 MB, free: 10.91 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002723/0.1158, allocations: 207.6 kB / 474.5 MB, free: 10.71 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002237/0.116, allocations: 106.5 kB / 474.6 MB, free: 10.61 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001834/0.1162, allocations: 99.56 kB / 474.7 MB, free: 10.51 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001753/0.1164, allocations: 123.4 kB / 474.8 MB, free: 10.39 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.649e-05/0.1165, allocations: 12 kB / 474.8 MB, free: 10.38 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.475e-05/0.1165, allocations: 12 kB / 474.8 MB, free: 10.36 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.536e-05/0.1166, allocations: 51.75 kB / 474.9 MB, free: 10.31 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.428e-05/0.1166, allocations: 77.52 kB / 474.9 MB, free: 10.23 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002522/0.1169, allocations: 255.7 kB / 475.2 MB, free: 9.98 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.956e-06/0.1169, allocations: 4 kB / 475.2 MB, free: 9.977 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.457e-06/0.1169, allocations: 3.984 kB / 475.2 MB, free: 9.973 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.34e-06/0.1169, allocations: 0 / 475.2 MB, free: 9.973 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.0009923/0.1179, allocations: 0.5602 MB / 475.8 MB, free: 9.363 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.688e-05/0.118, allocations: 12.03 kB / 475.8 MB, free: 9.352 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001292/0.1181, allocations: 83.06 kB / 475.9 MB, free: 9.262 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.188e-05/0.1182, allocations: 39.53 kB / 475.9 MB, free: 9.223 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005347/0.1188, allocations: 330.1 kB / 476.2 MB, free: 8.859 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.034e-05/0.1188, allocations: 28.66 kB / 476.2 MB, free: 8.828 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.026e-05/0.1189, allocations: 35.95 kB / 476.3 MB, free: 8.793 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005373/0.1194, allocations: 290 kB / 476.6 MB, free: 8.504 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.816e-05/0.1195, allocations: 7.891 kB / 476.6 MB, free: 8.496 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.014e-05/0.1195, allocations: 12 kB / 476.6 MB, free: 8.484 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.658e-06/0.1195, allocations: 4 kB / 476.6 MB, free: 8.48 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004494/0.12, allocations: 214.4 kB / 476.8 MB, free: 8.273 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001428/0.1214, allocations: 0.8504 MB / 477.6 MB, free: 7.371 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004181/0.1218, allocations: 214.8 kB / 477.9 MB, free: 7.152 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.261e-05/0.1219, allocations: 7.984 kB / 477.9 MB, free: 7.145 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004604/0.1223, allocations: 235.6 kB / 478.1 MB, free: 6.902 MB / 350.1 MB Notification: Performance of pre-optimization done (n=31): time 2.725e-06/0.1224, allocations: 0 / 478.1 MB, free: 6.902 MB / 350.1 MB Notification: Performance of matching and sorting (n=31): time 0.0007815/0.1231, allocations: 377.2 kB / 478.5 MB, free: 6.527 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.73e-05/0.1232, allocations: 59.39 kB / 478.5 MB, free: 6.457 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002181/0.1234, allocations: 236.9 kB / 478.8 MB, free: 6.215 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.641e-05/0.1235, allocations: 33.7 kB / 478.8 MB, free: 6.176 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001136/0.1236, allocations: 184.7 kB / 479 MB, free: 5.992 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.268e-05/0.1237, allocations: 102.5 kB / 479.1 MB, free: 5.891 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.586e-05/0.1237, allocations: 8 kB / 479.1 MB, free: 5.883 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001274/0.1238, allocations: 338.8 kB / 479.4 MB, free: 5.543 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002/0.124, allocations: 96.64 kB / 479.5 MB, free: 5.445 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002775/0.1243, allocations: 230.6 kB / 479.7 MB, free: 5.16 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002362/0.1246, allocations: 123.8 kB / 479.8 MB, free: 5.039 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.126e-06/0.1246, allocations: 0 / 479.8 MB, free: 5.039 MB / 350.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006298/0.1252, allocations: 373.3 kB / 480.2 MB, free: 4.668 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.364e-05/0.1253, allocations: 12 kB / 480.2 MB, free: 4.656 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.041e-05/0.1253, allocations: 7.938 kB / 480.2 MB, free: 4.648 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.928e-05/0.1253, allocations: 8.141 kB / 480.2 MB, free: 4.641 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003036/0.1256, allocations: 79.83 kB / 480.3 MB, free: 4.562 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.849e-05/0.1256, allocations: 19.91 kB / 480.3 MB, free: 4.543 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001743/0.1258, allocations: 31.73 kB / 480.4 MB, free: 4.512 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.841e-05/0.1258, allocations: 20 kB / 480.4 MB, free: 4.492 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.0001896/0.126, allocations: 170.7 kB / 480.6 MB, free: 4.316 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.025e-05/0.1261, allocations: 27.62 kB / 480.6 MB, free: 4.289 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006505/0.1267, allocations: 340.1 kB / 480.9 MB, free: 3.953 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.412e-06/0.1268, allocations: 4 kB / 480.9 MB, free: 3.949 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.861e-06/0.1268, allocations: 0 / 480.9 MB, free: 3.949 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.561e-06/0.1268, allocations: 0 / 480.9 MB, free: 3.949 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009453/0.1277, allocations: 0.7363 MB / 481.7 MB, free: 3.156 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.797e-06/0.1277, allocations: 3.984 kB / 481.7 MB, free: 3.152 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002439/0.128, allocations: 47.91 kB / 481.7 MB, free: 3.105 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.31e-06/0.128, allocations: 4 kB / 481.7 MB, free: 3.102 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.518e-05/0.128, allocations: 8 kB / 481.7 MB, free: 3.094 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.254e-06/0.128, allocations: 4 kB / 481.7 MB, free: 3.09 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.755e-06/0.1281, allocations: 3.984 kB / 481.7 MB, free: 3.086 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008356/0.1289, allocations: 0.5384 MB / 482.3 MB, free: 2.531 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.548e-05/0.129, allocations: 104.8 kB / 482.4 MB, free: 2.41 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.829e-05/0.129, allocations: 12.16 kB / 482.4 MB, free: 2.398 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001684/0.1292, allocations: 19.92 kB / 482.4 MB, free: 2.379 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.871e-05/0.1293, allocations: 19.97 kB / 482.4 MB, free: 2.359 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.625e-05/0.1293, allocations: 15.98 kB / 482.4 MB, free: 2.344 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001459/0.1295, allocations: 168.5 kB / 482.6 MB, free: 2.18 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.1295, allocations: 0 / 482.6 MB, free: 2.18 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003946/0.1299, allocations: 75.69 kB / 482.7 MB, free: 2.105 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.001165/0.1311, allocations: 1.087 MB / 483.8 MB, free: 0.9883 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000559/0.1316, allocations: 272.6 kB / 484 MB, free: 0.7227 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.036e-06/0.1316, allocations: 3.938 kB / 484 MB, free: 0.7188 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002802/0.1319, allocations: 140.4 kB / 484.2 MB, free: 0.582 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002626/0.1322, allocations: 32.41 kB / 484.2 MB, free: 0.5469 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002557/0.1348, allocations: 3.966 MB / 488.2 MB, free: 12.45 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004136/0.1352, allocations: 0.7958 MB / 489 MB, free: 11.63 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001764/0.1354, allocations: 38.97 kB / 489 MB, free: 11.59 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001791/0.1356, allocations: 119.4 kB / 489.1 MB, free: 11.47 MB / 366.1 MB Notification: Performance of SimCode: time 1.423e-06/0.1356, allocations: 0 / 489.1 MB, free: 11.47 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01595/0.1515, allocations: 4.774 MB / 493.9 MB, free: 6.801 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002542/0.1519, allocations: 168.3 kB / 494 MB, free: 6.551 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.812/1.964, allocations: 0 / 494 MB, free: 6.551 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