Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_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_ModelicaTest_Blocks_Mean",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.Mean,fileNamePrefix="ModelicaTest_3_2_3_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.001217/0.001216, allocations: 183.7 kB / 15.76 MB, free: 6.367 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.289/1.289, allocations: 205.4 MB / 221.9 MB, free: 13.83 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.0007707/0.0007707, allocations: 86.84 kB / 270.2 MB, free: 13.36 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2011/0.2011, allocations: 43.56 MB / 362 MB, free: 11.31 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003168/0.0003168, allocations: 8 kB / 431.5 MB, free: 19.51 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1272/0.1276, allocations: 58.85 MB / 490.3 MB, free: 8.578 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3768/0.5045, allocations: 87.31 MB / 0.5641 GB, free: 12.45 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002335/0.5048, allocations: 59.97 kB / 0.5642 GB, free: 12.42 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01293/0.5177, allocations: 4.29 MB / 0.5684 GB, free: 8.77 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.575e-06/0.5178, allocations: 0 / 0.5684 GB, free: 8.77 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.702e-05/0.5178, allocations: 12 kB / 0.5684 GB, free: 8.758 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.001161/0.519, allocations: 0.5665 MB / 0.5689 GB, free: 8.164 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.063e-05/0.519, allocations: 12.03 kB / 0.5689 GB, free: 8.152 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001615/0.5192, allocations: 81.09 kB / 0.569 GB, free: 8.078 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001152/0.5193, allocations: 39.53 kB / 0.569 GB, free: 8.039 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005465/0.5199, allocations: 322.1 kB / 0.5694 GB, free: 7.723 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.422e-05/0.52, allocations: 19.88 kB / 0.5694 GB, free: 7.711 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.865e-05/0.52, allocations: 30.94 kB / 0.5694 GB, free: 7.691 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005756/0.5206, allocations: 282.7 kB / 0.5697 GB, free: 7.488 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.158e-05/0.5207, allocations: 7.938 kB / 0.5697 GB, free: 7.48 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.167e-05/0.5207, allocations: 6.75 kB / 0.5697 GB, free: 7.48 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.462e-05/0.5207, allocations: 11.95 kB / 0.5697 GB, free: 7.469 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004578/0.5212, allocations: 209.1 kB / 0.5699 GB, free: 7.316 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001573/0.5228, allocations: 0.8237 MB / 0.5707 GB, free: 6.605 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004838/0.5233, allocations: 220.1 kB / 0.5709 GB, free: 6.445 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.568e-05/0.5233, allocations: 4 kB / 0.5709 GB, free: 6.441 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005051/0.5238, allocations: 239.3 kB / 0.5711 GB, free: 6.234 MB / 378.7 MB Notification: Performance of pre-optimization done (n=31): time 2.876e-06/0.5238, allocations: 0 / 0.5711 GB, free: 6.234 MB / 378.7 MB Notification: Performance of matching and sorting (n=31): time 0.0009135/0.5248, allocations: 391.6 kB / 0.5715 GB, free: 5.934 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.345e-05/0.5248, allocations: 55.41 kB / 0.5716 GB, free: 5.867 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00026/0.5251, allocations: 213.8 kB / 0.5718 GB, free: 5.684 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.155e-05/0.5251, allocations: 36.95 kB / 0.5718 GB, free: 5.648 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001119/0.5253, allocations: 171.4 kB / 0.572 GB, free: 5.512 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.18e-05/0.5254, allocations: 102.1 kB / 0.5721 GB, free: 5.426 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.594e-05/0.5254, allocations: 7.875 kB / 0.5721 GB, free: 5.422 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001549/0.5255, allocations: 342.5 kB / 0.5724 GB, free: 5.09 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002175/0.5258, allocations: 90.95 kB / 0.5725 GB, free: 5.023 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002961/0.5261, allocations: 239.7 kB / 0.5727 GB, free: 4.77 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002507/0.5263, allocations: 123.2 kB / 0.5728 GB, free: 4.688 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.099e-06/0.5263, allocations: 3.938 kB / 0.5728 GB, free: 4.684 MB / 378.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006757/0.527, allocations: 377.6 kB / 0.5732 GB, free: 4.387 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.572e-05/0.5271, allocations: 15.44 kB / 0.5732 GB, free: 4.375 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.236e-05/0.5271, allocations: 4 kB / 0.5732 GB, free: 4.371 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.751e-05/0.5271, allocations: 8 kB / 0.5732 GB, free: 4.363 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003041/0.5274, allocations: 75.61 kB / 0.5733 GB, free: 4.293 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.363e-05/0.5275, allocations: 19.83 kB / 0.5733 GB, free: 4.273 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002012/0.5277, allocations: 39.61 kB / 0.5734 GB, free: 4.242 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.605e-05/0.5277, allocations: 12 kB / 0.5734 GB, free: 4.23 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.000237/0.528, allocations: 176.1 kB / 0.5735 GB, free: 4.074 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.878e-05/0.528, allocations: 23.86 kB / 0.5736 GB, free: 4.051 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006493/0.5287, allocations: 340.3 kB / 0.5739 GB, free: 3.797 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.352e-06/0.5287, allocations: 4 kB / 0.5739 GB, free: 3.793 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.647e-06/0.5287, allocations: 0 / 0.5739 GB, free: 3.793 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.933e-06/0.5287, allocations: 3.953 kB / 0.5739 GB, free: 3.789 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009854/0.5297, allocations: 0.7302 MB / 0.5746 GB, free: 3.145 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.044e-06/0.5297, allocations: 0 / 0.5746 GB, free: 3.145 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002598/0.53, allocations: 55.89 kB / 0.5747 GB, free: 3.09 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.38e-06/0.53, allocations: 3.938 kB / 0.5747 GB, free: 3.086 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.918e-05/0.53, allocations: 7.75 kB / 0.5747 GB, free: 3.082 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.827e-06/0.53, allocations: 0.625 kB / 0.5747 GB, free: 3.082 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.739e-06/0.5301, allocations: 7.953 kB / 0.5747 GB, free: 3.074 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009047/0.531, allocations: 0.537 MB / 0.5752 GB, free: 2.641 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.126e-05/0.5311, allocations: 112.3 kB / 0.5753 GB, free: 2.516 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.524e-05/0.5311, allocations: 7.562 kB / 0.5753 GB, free: 2.512 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001754/0.5313, allocations: 15.86 kB / 0.5753 GB, free: 2.5 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.354e-05/0.5314, allocations: 27.86 kB / 0.5754 GB, free: 2.477 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.764e-05/0.5315, allocations: 15.86 kB / 0.5754 GB, free: 2.465 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001528/0.5316, allocations: 167.2 kB / 0.5755 GB, free: 2.328 MB / 378.7 MB Notification: Performance of sort global known variables: time 2e-07/0.5316, allocations: 0 / 0.5755 GB, free: 2.328 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004416/0.5321, allocations: 71.28 kB / 0.5756 GB, free: 2.27 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.001189/0.5333, allocations: 1.097 MB / 0.5767 GB, free: 1.273 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0005636/0.5338, allocations: 270.5 kB / 0.5769 GB, free: 1.066 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.386e-06/0.5339, allocations: 4.062 kB / 0.5769 GB, free: 1.066 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002689/0.5341, allocations: 140 kB / 0.5771 GB, free: 0.957 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002698/0.5344, allocations: 30.62 kB / 0.5771 GB, free: 0.9375 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003096/0.5375, allocations: 3.946 MB / 0.5809 GB, free: 12.96 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004409/0.538, allocations: 0.7951 MB / 0.5817 GB, free: 12.14 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0001671/0.5382, allocations: 50.47 kB / 0.5818 GB, free: 12.1 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001928/0.5384, allocations: 111.6 kB / 0.5819 GB, free: 12.06 MB / 394.7 MB Notification: Performance of SimCode: time 3.91e-07/0.5384, allocations: 0 / 0.5819 GB, free: 12.06 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02022/0.5586, allocations: 4.774 MB / 0.5865 GB, free: 7.309 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002155/0.5589, allocations: 162.4 kB / 0.5867 GB, free: 7.062 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.875/2.434, allocations: 0 / 0.5867 GB, free: 7.062 MB / 394.7 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Blocks_Mean_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Blocks_Mean.fmu > ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean_res.mat does not exist to compare? outputFormat=mat