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.002317/0.002323, allocations: 177.8 kB / 8.36 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.177/2.177, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001087/0.001087, allocations: 98.06 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2974/0.2974, allocations: 43.49 MB / 353.6 MB, free: 2.277 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.223e-05/2.262e-05, allocations: 224 / 418.3 MB, free: 40.95 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4295/0.4295, allocations: 58.85 MB / 477.2 MB, free: 5.148 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1705/0.6001, allocations: 86.56 MB / 0.5505 GB, free: 12.66 MB / 395.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00023/0.6004, allocations: 63.97 kB / 0.5506 GB, free: 12.59 MB / 395.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.02064/0.621, allocations: 4.253 MB / 0.5547 GB, free: 8.328 MB / 395.1 MB Notification: Performance of FrontEnd: time 2.315e-06/0.6211, allocations: 0 / 0.5547 GB, free: 8.328 MB / 395.1 MB Notification: Performance of Transformations before backend: time 2.807e-05/0.6211, allocations: 4 kB / 0.5547 GB, free: 8.324 MB / 395.1 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.001387/0.6225, allocations: 0.5376 MB / 0.5553 GB, free: 7.742 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.543e-05/0.6226, allocations: 8.031 kB / 0.5553 GB, free: 7.734 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001908/0.6228, allocations: 43.56 kB / 0.5553 GB, free: 7.691 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007314/0.6236, allocations: 310 kB / 0.5556 GB, free: 7.352 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.409e-05/0.6236, allocations: 11.98 kB / 0.5556 GB, free: 7.34 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.819e-05/0.6237, allocations: 31.91 kB / 0.5556 GB, free: 7.309 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004945/0.6242, allocations: 141.1 kB / 0.5558 GB, free: 7.172 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000596/0.6248, allocations: 207.7 kB / 0.556 GB, free: 6.961 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.228e-05/0.6249, allocations: 0 / 0.556 GB, free: 6.961 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.524e-05/0.6249, allocations: 3.953 kB / 0.556 GB, free: 6.957 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.671e-05/0.625, allocations: 15.98 kB / 0.556 GB, free: 6.941 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002166/0.6271, allocations: 0.7283 MB / 0.5567 GB, free: 6.172 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004996/0.6277, allocations: 178.9 kB / 0.5569 GB, free: 5.988 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002147/0.6279, allocations: 72.86 kB / 0.5569 GB, free: 5.914 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.865e-05/0.628, allocations: 7.984 kB / 0.557 GB, free: 5.906 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005513/0.6285, allocations: 203.2 kB / 0.5571 GB, free: 5.695 MB / 395.1 MB Notification: Performance of pre-optimization done (n=31): time 3.897e-06/0.6286, allocations: 0 / 0.5571 GB, free: 5.695 MB / 395.1 MB Notification: Performance of matching and sorting (n=31): time 0.0007857/0.6293, allocations: 245.2 kB / 0.5574 GB, free: 5.449 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.586e-05/0.6294, allocations: 62 kB / 0.5574 GB, free: 5.379 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003278/0.6298, allocations: 192.5 kB / 0.5576 GB, free: 5.18 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 4.957e-05/0.6298, allocations: 25.7 kB / 0.5577 GB, free: 5.148 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001815/0.63, allocations: 223.3 kB / 0.5579 GB, free: 4.93 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001357/0.6302, allocations: 102.5 kB / 0.558 GB, free: 4.828 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.291e-05/0.6302, allocations: 4 kB / 0.558 GB, free: 4.824 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.0001724/0.6304, allocations: 322.8 kB / 0.5583 GB, free: 4.5 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002025/0.6306, allocations: 68.73 kB / 0.5583 GB, free: 4.43 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003587/0.631, allocations: 202 kB / 0.5585 GB, free: 4.172 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000291/0.6313, allocations: 101.1 kB / 0.5586 GB, free: 4.074 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.751e-06/0.6313, allocations: 0 / 0.5586 GB, free: 4.074 MB / 395.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0007777/0.6321, allocations: 289 kB / 0.5589 GB, free: 3.785 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.812e-05/0.6321, allocations: 4 kB / 0.5589 GB, free: 3.781 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.603e-05/0.6322, allocations: 8.141 kB / 0.5589 GB, free: 3.773 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.685e-05/0.6322, allocations: 4 kB / 0.5589 GB, free: 3.77 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005867/0.6328, allocations: 84.34 kB / 0.559 GB, free: 3.688 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.602e-05/0.6328, allocations: 7.938 kB / 0.559 GB, free: 3.68 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000338/0.6332, allocations: 35.77 kB / 0.559 GB, free: 3.645 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.596e-05/0.6332, allocations: 16 kB / 0.5591 GB, free: 3.629 MB / 395.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,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 () * 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.0001811/0.6334, allocations: 124.7 kB / 0.5592 GB, free: 3.5 MB / 395.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0006583/0.6341, allocations: 245.2 kB / 0.5594 GB, free: 3.254 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.976e-05/0.6342, allocations: 23.72 kB / 0.5594 GB, free: 3.23 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008215/0.635, allocations: 268.8 kB / 0.5597 GB, free: 2.961 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.578e-05/0.635, allocations: 4 kB / 0.5597 GB, free: 2.957 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.698e-06/0.6351, allocations: 0 / 0.5597 GB, free: 2.957 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.935e-06/0.6351, allocations: 3.938 kB / 0.5597 GB, free: 2.953 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001204/0.6363, allocations: 0.6199 MB / 0.5603 GB, free: 2.289 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.639e-06/0.6363, allocations: 0 / 0.5603 GB, free: 2.289 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005324/0.6369, allocations: 55.91 kB / 0.5604 GB, free: 2.234 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.037e-06/0.6369, allocations: 96 / 0.5604 GB, free: 2.234 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.427e-05/0.6369, allocations: 15.92 kB / 0.5604 GB, free: 2.219 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.218e-06/0.637, allocations: 0 / 0.5604 GB, free: 2.219 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.853e-06/0.637, allocations: 4 kB / 0.5604 GB, free: 2.215 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001058/0.638, allocations: 462.9 kB / 0.5608 GB, free: 1.746 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001138/0.6382, allocations: 104.7 kB / 0.5609 GB, free: 1.625 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.799e-05/0.6383, allocations: 8.125 kB / 0.5609 GB, free: 1.617 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003273/0.6386, allocations: 15.98 kB / 0.5609 GB, free: 1.602 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001234/0.6387, allocations: 24.03 kB / 0.561 GB, free: 1.578 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.516e-05/0.6388, allocations: 15.98 kB / 0.561 GB, free: 1.562 MB / 395.1 MB Notification: Performance of sorting global known variables: time 0.0002239/0.639, allocations: 152.5 kB / 0.5611 GB, free: 1.414 MB / 395.1 MB Notification: Performance of sort global known variables: time 5.21e-07/0.639, allocations: 0 / 0.5611 GB, free: 1.414 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.0005843/0.6396, allocations: 59.83 kB / 0.5612 GB, free: 1.355 MB / 395.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,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) * 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.001499/0.6411, allocations: 1.022 MB / 0.5622 GB, free: 316 kB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.000759/0.6419, allocations: 203.8 kB / 0.5624 GB, free: 112 kB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 6.653e-06/0.642, allocations: 0.9375 kB / 0.5624 GB, free: 112 kB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003629/0.6423, allocations: 112 kB / 0.5625 GB, free: 0 / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004483/0.6428, allocations: 24.55 kB / 0.5625 GB, free: 15.97 MB / 411.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001714/0.6445, allocations: 0.5317 MB / 0.563 GB, free: 15.4 MB / 411.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000491/0.6451, allocations: 0.7922 MB / 0.5638 GB, free: 14.59 MB / 411.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000303/0.6454, allocations: 111.4 kB / 0.5639 GB, free: 14.48 MB / 411.1 MB Notification: Performance of SimCode: time 1.122e-06/0.6454, allocations: 0 / 0.5639 GB, free: 14.48 MB / 411.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.915/3.561, allocations: 4.643 MB / 0.5684 GB, free: 9.832 MB / 411.1 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