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.001715/0.001715, allocations: 180.5 kB / 14.15 MB, free: 1.176 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.442/1.442, allocations: 221.3 MB / 236 MB, free: 2.969 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.0009168/0.0009167, allocations: 87.86 kB / 287 MB, free: 244 kB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2061/0.2061, allocations: 44.15 MB / 382.1 MB, free: 14.67 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 3.816e-05/3.82e-05, allocations: 4.219 kB / 451.9 MB, free: 9.344 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1352/0.1353, allocations: 61.92 MB / 0.5018 GB, free: 11.36 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4586/0.594, allocations: 88.24 MB / 0.588 GB, free: 1.012 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002517/0.5943, allocations: 59.98 kB / 0.588 GB, free: 0.9531 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01333/0.6076, allocations: 4.431 MB / 0.5924 GB, free: 12.52 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.893e-06/0.6077, allocations: 0 / 0.5924 GB, free: 12.52 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.996e-05/0.6077, allocations: 4 kB / 0.5924 GB, free: 12.52 MB / 410.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.0009434/0.6087, allocations: 0.5522 MB / 0.5929 GB, free: 11.92 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.125e-05/0.6087, allocations: 12.03 kB / 0.5929 GB, free: 11.91 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000117/0.6088, allocations: 67.22 kB / 0.593 GB, free: 11.83 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.877e-05/0.6089, allocations: 43.53 kB / 0.593 GB, free: 11.79 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004804/0.6094, allocations: 318.2 kB / 0.5933 GB, free: 11.44 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.267e-05/0.6095, allocations: 28.73 kB / 0.5933 GB, free: 11.41 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.223e-05/0.6095, allocations: 43.89 kB / 0.5934 GB, free: 11.37 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004763/0.61, allocations: 263.7 kB / 0.5936 GB, free: 11.1 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.882e-05/0.6101, allocations: 7.984 kB / 0.5936 GB, free: 11.09 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.226e-05/0.6101, allocations: 12 kB / 0.5937 GB, free: 11.08 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.529e-05/0.6101, allocations: 15.92 kB / 0.5937 GB, free: 11.07 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003189/0.6104, allocations: 171.1 kB / 0.5938 GB, free: 10.9 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001372/0.6118, allocations: 0.8587 MB / 0.5947 GB, free: 9.992 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003622/0.6122, allocations: 190.9 kB / 0.5949 GB, free: 9.797 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001429/0.6124, allocations: 80.86 kB / 0.5949 GB, free: 9.715 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.778e-05/0.6124, allocations: 11.97 kB / 0.5949 GB, free: 9.703 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003714/0.6128, allocations: 211.2 kB / 0.5951 GB, free: 9.484 MB / 410.7 MB Notification: Performance of pre-optimization done (n=31): time 1.753e-06/0.6128, allocations: 0 / 0.5951 GB, free: 9.484 MB / 410.7 MB Notification: Performance of matching and sorting (n=31): time 0.0004965/0.6133, allocations: 253.3 kB / 0.5954 GB, free: 9.23 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.094e-05/0.6134, allocations: 59.34 kB / 0.5954 GB, free: 9.16 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002013/0.6136, allocations: 205 kB / 0.5956 GB, free: 8.953 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 3.519e-05/0.6136, allocations: 37.7 kB / 0.5957 GB, free: 8.91 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001114/0.6137, allocations: 188.7 kB / 0.5959 GB, free: 8.723 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.638e-05/0.6138, allocations: 98.55 kB / 0.596 GB, free: 8.625 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.639e-05/0.6138, allocations: 12 kB / 0.596 GB, free: 8.613 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001289/0.614, allocations: 338.8 kB / 0.5963 GB, free: 8.273 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001462/0.6141, allocations: 72.73 kB / 0.5964 GB, free: 8.199 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002301/0.6144, allocations: 204.7 kB / 0.5966 GB, free: 7.941 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001807/0.6145, allocations: 111.8 kB / 0.5967 GB, free: 7.832 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.139e-06/0.6146, allocations: 4 kB / 0.5967 GB, free: 7.828 MB / 410.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0005196/0.6151, allocations: 327.7 kB / 0.597 GB, free: 7.504 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.945e-05/0.6151, allocations: 9.406 kB / 0.597 GB, free: 7.496 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.42e-05/0.6152, allocations: 8 kB / 0.597 GB, free: 7.488 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.771e-05/0.6152, allocations: 12.08 kB / 0.597 GB, free: 7.477 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003018/0.6155, allocations: 79.78 kB / 0.5971 GB, free: 7.398 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.655e-05/0.6155, allocations: 16.55 kB / 0.5971 GB, free: 7.383 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001765/0.6157, allocations: 35.69 kB / 0.5971 GB, free: 7.348 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.996e-05/0.6157, allocations: 19.98 kB / 0.5971 GB, free: 7.328 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.0001167/0.6159, allocations: 136.9 kB / 0.5973 GB, free: 7.188 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.034e-05/0.6159, allocations: 27.77 kB / 0.5973 GB, free: 7.16 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005401/0.6165, allocations: 308.2 kB / 0.5976 GB, free: 6.855 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.302e-06/0.6165, allocations: 4 kB / 0.5976 GB, free: 6.852 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.019e-06/0.6165, allocations: 0 / 0.5976 GB, free: 6.852 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.354e-06/0.6165, allocations: 3.984 kB / 0.5976 GB, free: 6.848 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008157/0.6173, allocations: 0.7011 MB / 0.5983 GB, free: 6.09 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.6173, allocations: 0 / 0.5983 GB, free: 6.09 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002571/0.6176, allocations: 47.97 kB / 0.5983 GB, free: 6.043 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.368e-06/0.6176, allocations: 0 / 0.5983 GB, free: 6.043 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.899e-05/0.6177, allocations: 11.98 kB / 0.5983 GB, free: 6.031 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.044e-06/0.6177, allocations: 0 / 0.5983 GB, free: 6.031 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.547e-06/0.6177, allocations: 3.938 kB / 0.5984 GB, free: 6.027 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006869/0.6184, allocations: 499.4 kB / 0.5988 GB, free: 5.523 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.493e-05/0.6185, allocations: 96.77 kB / 0.5989 GB, free: 5.41 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.538e-05/0.6185, allocations: 12.05 kB / 0.5989 GB, free: 5.398 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001875/0.6187, allocations: 19.98 kB / 0.599 GB, free: 5.379 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.739e-05/0.6188, allocations: 19.97 kB / 0.599 GB, free: 5.359 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.037e-05/0.6188, allocations: 15.98 kB / 0.599 GB, free: 5.344 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0001684/0.619, allocations: 165.4 kB / 0.5991 GB, free: 5.184 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.11e-07/0.619, allocations: 0 / 0.5991 GB, free: 5.184 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0003803/0.6194, allocations: 75.75 kB / 0.5992 GB, free: 5.109 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.001102/0.6205, allocations: 1.04 MB / 0.6002 GB, free: 4.039 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0004202/0.6209, allocations: 231.8 kB / 0.6005 GB, free: 3.812 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.454e-06/0.6209, allocations: 0 / 0.6005 GB, free: 3.812 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001869/0.6211, allocations: 116.5 kB / 0.6006 GB, free: 3.699 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002713/0.6214, allocations: 28.36 kB / 0.6006 GB, free: 3.672 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001349/0.6228, allocations: 0.5541 MB / 0.6011 GB, free: 3.082 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005463/0.6233, allocations: 0.7919 MB / 0.6019 GB, free: 2.262 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.000177/0.6235, allocations: 46.31 kB / 0.6019 GB, free: 2.219 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002491/0.6238, allocations: 119.6 kB / 0.6021 GB, free: 2.102 MB / 410.7 MB Notification: Performance of SimCode: time 1.392e-06/0.6238, allocations: 0 / 0.6021 GB, free: 2.102 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0193/0.6431, allocations: 4.948 MB / 0.6069 GB, free: 13.25 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002032/0.6434, allocations: 131.5 kB / 0.607 GB, free: 13.03 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.951/2.594, allocations: 0 / 0.607 GB, free: 13.03 MB / 426.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