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/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/ModelicaServices 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.0009247/0.0009247, allocations: 173.7 kB / 8.74 MB, free: 348 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.741/1.741, allocations: 221.5 MB / 230.7 MB, free: 7.566 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001446/0.001446, allocations: 98.94 kB / 281.6 MB, free: 5.312 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2535/0.2535, allocations: 44.16 MB / 376.5 MB, free: 3.039 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 2.036e-05/2.057e-05, allocations: 4.219 kB / 444.7 MB, free: 15.14 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.122/0.1221, allocations: 61.91 MB / 0.4948 GB, free: 1.156 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4079/0.53, allocations: 87.6 MB / 0.5803 GB, free: 8.766 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002134/0.5303, allocations: 55.98 kB / 0.5804 GB, free: 8.711 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01289/0.5432, allocations: 4.395 MB / 0.5846 GB, free: 4.316 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.433e-06/0.5432, allocations: 0 / 0.5846 GB, free: 4.316 MB / 394.7 MB Notification: Performance of Transformations before backend: time 2.055e-05/0.5432, allocations: 12 kB / 0.5847 GB, free: 4.305 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.0008608/0.5441, allocations: 0.5469 MB / 0.5852 GB, free: 3.719 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.534e-05/0.5442, allocations: 11.98 kB / 0.5852 GB, free: 3.707 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.197e-05/0.5443, allocations: 39.61 kB / 0.5852 GB, free: 3.668 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004457/0.5447, allocations: 317.9 kB / 0.5855 GB, free: 3.316 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.535e-05/0.5447, allocations: 11.95 kB / 0.5856 GB, free: 3.305 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.28e-05/0.5448, allocations: 16 kB / 0.5856 GB, free: 3.289 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002944/0.5451, allocations: 153.1 kB / 0.5857 GB, free: 3.141 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003811/0.5455, allocations: 211.8 kB / 0.5859 GB, free: 2.926 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.569e-05/0.5455, allocations: 4 kB / 0.5859 GB, free: 2.922 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.268e-05/0.5456, allocations: 7.984 kB / 0.5859 GB, free: 2.914 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.704e-06/0.5456, allocations: 4 kB / 0.5859 GB, free: 2.91 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001281/0.5469, allocations: 0.7636 MB / 0.5867 GB, free: 2.102 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002995/0.5472, allocations: 170.9 kB / 0.5868 GB, free: 1.926 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001209/0.5473, allocations: 76.84 kB / 0.5869 GB, free: 1.848 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.607e-05/0.5474, allocations: 12 kB / 0.5869 GB, free: 1.836 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003345/0.5477, allocations: 199.2 kB / 0.5871 GB, free: 1.629 MB / 394.7 MB Notification: Performance of pre-optimization done (n=31): time 2.054e-06/0.5477, allocations: 0.9375 kB / 0.5871 GB, free: 1.629 MB / 394.7 MB Notification: Performance of matching and sorting (n=31): time 0.0004446/0.5482, allocations: 245.2 kB / 0.5873 GB, free: 1.383 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.649e-05/0.5482, allocations: 55.41 kB / 0.5874 GB, free: 1.316 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001939/0.5484, allocations: 200.5 kB / 0.5876 GB, free: 1.113 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 3.074e-05/0.5485, allocations: 25.7 kB / 0.5876 GB, free: 1.082 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001118/0.5486, allocations: 176.8 kB / 0.5878 GB, free: 0.9023 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.053e-05/0.5487, allocations: 94.59 kB / 0.5879 GB, free: 0.8086 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.487e-05/0.5487, allocations: 0 / 0.5879 GB, free: 0.8086 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001335/0.5488, allocations: 338.8 kB / 0.5882 GB, free: 480 kB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001161/0.5489, allocations: 68.75 kB / 0.5883 GB, free: 408 kB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001928/0.5491, allocations: 202.2 kB / 0.5885 GB, free: 144 kB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001591/0.5493, allocations: 95.89 kB / 0.5886 GB, free: 48 kB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.886e-06/0.5493, allocations: 0 / 0.5886 GB, free: 48 kB / 394.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0004883/0.5498, allocations: 309.2 kB / 0.5888 GB, free: 15.74 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.005e-05/0.5498, allocations: 9.25 kB / 0.5889 GB, free: 15.73 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.217e-05/0.5499, allocations: 7.953 kB / 0.5889 GB, free: 15.72 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.304e-05/0.5499, allocations: 8 kB / 0.5889 GB, free: 15.71 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003108/0.5502, allocations: 75.89 kB / 0.5889 GB, free: 15.64 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.426e-05/0.5502, allocations: 15.88 kB / 0.589 GB, free: 15.62 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001679/0.5504, allocations: 23.75 kB / 0.589 GB, free: 15.6 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.99e-05/0.5504, allocations: 28.81 kB / 0.589 GB, free: 15.57 MB / 410.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.0001045/0.5506, allocations: 116.8 kB / 0.5891 GB, free: 15.45 MB / 410.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0003598/0.5509, allocations: 241.6 kB / 0.5893 GB, free: 15.21 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.771e-05/0.551, allocations: 35.58 kB / 0.5894 GB, free: 15.18 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004518/0.5514, allocations: 268.7 kB / 0.5896 GB, free: 14.91 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.897e-06/0.5515, allocations: 8 kB / 0.5896 GB, free: 14.9 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/0.5515, allocations: 0 / 0.5896 GB, free: 14.9 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.881e-06/0.5515, allocations: 4 kB / 0.5897 GB, free: 14.89 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006915/0.5522, allocations: 0.616 MB / 0.5903 GB, free: 14.23 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.978e-06/0.5522, allocations: 3.953 kB / 0.5903 GB, free: 14.23 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002561/0.5525, allocations: 55.91 kB / 0.5903 GB, free: 14.18 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.416e-06/0.5525, allocations: 0 / 0.5903 GB, free: 14.18 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.343e-05/0.5525, allocations: 11.98 kB / 0.5903 GB, free: 14.16 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.134e-06/0.5525, allocations: 0 / 0.5903 GB, free: 14.16 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.136e-06/0.5525, allocations: 0 / 0.5903 GB, free: 14.16 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000587/0.5531, allocations: 463 kB / 0.5908 GB, free: 13.7 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.961e-05/0.5532, allocations: 104.7 kB / 0.5909 GB, free: 13.57 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.789e-05/0.5532, allocations: 8.062 kB / 0.5909 GB, free: 13.57 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000169/0.5534, allocations: 11.98 kB / 0.5909 GB, free: 13.55 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.914e-05/0.5535, allocations: 23.97 kB / 0.5909 GB, free: 13.53 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.781e-05/0.5535, allocations: 16.08 kB / 0.5909 GB, free: 13.52 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0001292/0.5537, allocations: 160.4 kB / 0.5911 GB, free: 13.36 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.5537, allocations: 0 / 0.5911 GB, free: 13.36 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0003711/0.5541, allocations: 67.67 kB / 0.5911 GB, free: 13.3 MB / 410.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.0008766/0.5549, allocations: 1.017 MB / 0.5921 GB, free: 12.25 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0003588/0.5553, allocations: 211.8 kB / 0.5923 GB, free: 12.04 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.027e-06/0.5553, allocations: 4 kB / 0.5923 GB, free: 12.04 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001563/0.5555, allocations: 99.92 kB / 0.5924 GB, free: 11.94 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002803/0.5558, allocations: 27.42 kB / 0.5925 GB, free: 11.92 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001133/0.5569, allocations: 0.5181 MB / 0.593 GB, free: 11.36 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003578/0.5573, allocations: 0.7923 MB / 0.5937 GB, free: 10.54 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0001554/0.5575, allocations: 38.05 kB / 0.5938 GB, free: 10.5 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000176/0.5576, allocations: 111.4 kB / 0.5939 GB, free: 10.39 MB / 410.7 MB Notification: Performance of SimCode: time 7.31e-07/0.5577, allocations: 0 / 0.5939 GB, free: 10.39 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02371/0.5814, allocations: 4.502 MB / 0.5983 GB, free: 5.91 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001964/0.5816, allocations: 106.9 kB / 0.5984 GB, free: 5.723 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.061/2.642, allocations: 4.031 kB / 0.5984 GB, free: 5.719 MB / 410.7 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