Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.Mean.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.Mean,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_Mean",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.Mean,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_Mean",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009713/0.0009713, allocations: 202.1 kB / 8.767 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.455/1.455, allocations: 225.6 MB / 234.8 MB, free: 3.273 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009747/0.0009749, allocations: 87.89 kB / 286.7 MB, free: 5.262 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2236/0.2236, allocations: 45.16 MB / 383.8 MB, free: 272 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 2.288e-05/2.291e-05, allocations: 4 kB / 453.3 MB, free: 75.73 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1274/0.1274, allocations: 63.25 MB / 0.5044 GB, free: 12.54 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.508/0.6355, allocations: 88.67 MB / 0.591 GB, free: 13.54 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001953/0.6357, allocations: 58.03 kB / 0.5911 GB, free: 13.51 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01369/0.6495, allocations: 4.638 MB / 0.5956 GB, free: 9.66 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.473e-06/0.6495, allocations: 0 / 0.5956 GB, free: 9.66 MB / 394.7 MB Notification: Performance of Transformations before backend: time 2.461e-05/0.6495, allocations: 8 kB / 0.5956 GB, free: 9.652 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: 64 * Number of variables: 64 Notification: Performance of Generate backend data structure: time 0.001004/0.6505, allocations: 0.5642 MB / 0.5962 GB, free: 9.066 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.571e-05/0.6506, allocations: 8.031 kB / 0.5962 GB, free: 9.059 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004597/0.6511, allocations: 83.48 kB / 0.5963 GB, free: 8.977 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004686/0.6516, allocations: 327 kB / 0.5966 GB, free: 8.652 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.528e-05/0.6516, allocations: 8 kB / 0.5966 GB, free: 8.645 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.645e-05/0.6517, allocations: 23.98 kB / 0.5966 GB, free: 8.621 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003019/0.652, allocations: 154.3 kB / 0.5968 GB, free: 8.523 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003734/0.6524, allocations: 214.6 kB / 0.597 GB, free: 8.363 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.676e-05/0.6524, allocations: 0 / 0.597 GB, free: 8.363 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.921e-05/0.6524, allocations: 3.984 kB / 0.597 GB, free: 8.359 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.17e-05/0.6524, allocations: 8 kB / 0.597 GB, free: 8.352 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001482/0.6539, allocations: 0.7947 MB / 0.5977 GB, free: 7.668 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003211/0.6543, allocations: 176.6 kB / 0.5979 GB, free: 7.543 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001248/0.6544, allocations: 76.81 kB / 0.598 GB, free: 7.492 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.59e-05/0.6545, allocations: 8.188 kB / 0.598 GB, free: 7.488 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003488/0.6548, allocations: 205.1 kB / 0.5982 GB, free: 7.312 MB / 394.7 MB Notification: Performance of pre-optimization done (n=31): time 2.244e-06/0.6548, allocations: 0 / 0.5982 GB, free: 7.312 MB / 394.7 MB Notification: Performance of matching and sorting (n=31): time 0.0004782/0.6553, allocations: 244.2 kB / 0.5984 GB, free: 7.117 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.95e-05/0.6554, allocations: 67.34 kB / 0.5985 GB, free: 7.043 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002741/0.6557, allocations: 220.8 kB / 0.5987 GB, free: 6.859 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 3.208e-05/0.6557, allocations: 25.7 kB / 0.5987 GB, free: 6.828 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001083/0.6558, allocations: 176 kB / 0.5989 GB, free: 6.688 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.851e-05/0.6559, allocations: 94.06 kB / 0.599 GB, free: 6.605 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.45e-05/0.6559, allocations: 0.6562 kB / 0.599 GB, free: 6.605 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001468/0.6561, allocations: 345.4 kB / 0.5993 GB, free: 6.273 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001174/0.6562, allocations: 68 kB / 0.5994 GB, free: 6.23 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002025/0.6564, allocations: 194.3 kB / 0.5996 GB, free: 6.016 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001709/0.6566, allocations: 113.4 kB / 0.5997 GB, free: 5.934 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.396e-06/0.6566, allocations: 0 / 0.5997 GB, free: 5.934 MB / 394.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0004523/0.6571, allocations: 303.9 kB / 0.6 GB, free: 5.688 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.884e-05/0.6571, allocations: 12.09 kB / 0.6 GB, free: 5.676 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.497e-06/0.6571, allocations: 7.984 kB / 0.6 GB, free: 5.668 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.821e-05/0.6571, allocations: 8 kB / 0.6 GB, free: 5.66 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000299/0.6574, allocations: 75.28 kB / 0.6001 GB, free: 5.59 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.424e-05/0.6575, allocations: 11.98 kB / 0.6001 GB, free: 5.578 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000172/0.6576, allocations: 23.75 kB / 0.6001 GB, free: 5.555 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.365e-05/0.6577, allocations: 23.48 kB / 0.6001 GB, free: 5.535 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_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 () * 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.0001254/0.6578, allocations: 127.8 kB / 0.6002 GB, free: 5.406 MB / 394.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0003826/0.6582, allocations: 238.9 kB / 0.6005 GB, free: 5.219 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.076e-05/0.6583, allocations: 31.62 kB / 0.6005 GB, free: 5.188 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005009/0.6588, allocations: 273 kB / 0.6008 GB, free: 4.98 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.603e-06/0.6588, allocations: 4 kB / 0.6008 GB, free: 4.977 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.24e-06/0.6588, allocations: 4 kB / 0.6008 GB, free: 4.973 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.68e-06/0.6588, allocations: 0 / 0.6008 GB, free: 4.973 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007581/0.6596, allocations: 0.6293 MB / 0.6014 GB, free: 4.418 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.911e-06/0.6596, allocations: 8 kB / 0.6014 GB, free: 4.41 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003267/0.6599, allocations: 51.03 kB / 0.6014 GB, free: 4.363 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.3e-06/0.6599, allocations: 0 / 0.6014 GB, free: 4.363 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.047e-05/0.66, allocations: 7.984 kB / 0.6014 GB, free: 4.355 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.867e-06/0.66, allocations: 4 kB / 0.6014 GB, free: 4.352 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.888e-06/0.66, allocations: 4 kB / 0.6014 GB, free: 4.348 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006901/0.6607, allocations: 466.1 kB / 0.6019 GB, free: 3.984 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.765e-05/0.6608, allocations: 104.8 kB / 0.602 GB, free: 3.863 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.627e-05/0.6609, allocations: 7.812 kB / 0.602 GB, free: 3.859 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002419/0.6611, allocations: 11.98 kB / 0.602 GB, free: 3.848 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.951e-05/0.6612, allocations: 19.53 kB / 0.602 GB, free: 3.832 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.956e-05/0.6612, allocations: 18.92 kB / 0.602 GB, free: 3.816 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0001547/0.6614, allocations: 166.1 kB / 0.6022 GB, free: 3.68 MB / 394.7 MB Notification: Performance of sort global known variables: time 2e-07/0.6614, allocations: 0 / 0.6022 GB, free: 3.68 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0004404/0.6618, allocations: 75.05 kB / 0.6023 GB, free: 3.609 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_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) * 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.001064/0.6629, allocations: 1.031 MB / 0.6033 GB, free: 2.66 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0004091/0.6633, allocations: 207.8 kB / 0.6035 GB, free: 2.516 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.649e-06/0.6634, allocations: 0 / 0.6035 GB, free: 2.516 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001859/0.6635, allocations: 106.2 kB / 0.6036 GB, free: 2.441 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002861/0.6638, allocations: 29.48 kB / 0.6036 GB, free: 2.422 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001115/0.665, allocations: 0.5369 MB / 0.6041 GB, free: 1.898 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003846/0.6654, allocations: 0.8022 MB / 0.6049 GB, free: 1.07 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0001483/0.6655, allocations: 43.27 kB / 0.605 GB, free: 1.031 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001539/0.6657, allocations: 122.3 kB / 0.6051 GB, free: 0.9922 MB / 394.7 MB Notification: Performance of SimCode: time 2.61e-07/0.6657, allocations: 3.938 kB / 0.6051 GB, free: 0.9883 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02781/0.6935, allocations: 4.822 MB / 0.6098 GB, free: 12.18 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002832/0.6938, allocations: 124.3 kB / 0.6099 GB, free: 11.98 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.016/2.71, allocations: 0 / 0.6099 GB, free: 11.98 MB / 410.7 MB (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.Mean.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.Mean.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.Mean.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.Mean.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Blocks.Mean_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Blocks_Mean_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Blocks_Mean.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.Mean.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Blocks.Mean_res.mat does not exist to compare? outputFormat=mat