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/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.002156/0.002156, allocations: 122.2 kB / 17.84 MB, free: 5.109 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002657/0.002657, allocations: 207.8 kB / 20.79 MB, free: 2.168 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.521/1.521, allocations: 207.6 MB / 231.2 MB, free: 4.102 MB / 174.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3223/0.3223, allocations: 44.23 MB / 327.3 MB, free: 6.648 MB / 254.1 MB " [Timeout remaining time 180] 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 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 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.Mean,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_Mean",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.Mean,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_Mean",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002134/0.002134, allocations: 71.91 kB / 462.9 MB, free: 0.9062 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2799/0.282, allocations: 61 MB / 0.5116 GB, free: 13.29 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.003981/0.286, allocations: 2.236 MB / 0.5138 GB, free: 11.53 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001547/0.2875, allocations: 0.8244 MB / 0.5146 GB, free: 10.87 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001659/0.2877, allocations: 7.531 kB / 0.5146 GB, free: 10.86 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001642/0.2879, allocations: 33.33 kB / 0.5147 GB, free: 10.83 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002564/0.2881, allocations: 62.8 kB / 0.5147 GB, free: 10.78 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003745/0.2885, allocations: 141.3 kB / 0.5149 GB, free: 10.66 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004092/0.2889, allocations: 360 kB / 0.5152 GB, free: 10.44 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002523/0.2891, allocations: 94.48 kB / 0.5153 GB, free: 10.38 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002129/0.2894, allocations: 138.2 kB / 0.5154 GB, free: 10.29 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002251/0.2896, allocations: 155.8 kB / 0.5156 GB, free: 10.17 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.058e-05/0.2897, allocations: 34.16 kB / 0.5156 GB, free: 10.17 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.712e-05/0.2897, allocations: 32.22 kB / 0.5156 GB, free: 10.17 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 8.764e-05/0.2898, allocations: 80.5 kB / 0.5157 GB, free: 10.11 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001557/0.29, allocations: 157.4 kB / 0.5159 GB, free: 9.984 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004255/0.2904, allocations: 360.9 kB / 0.5162 GB, free: 9.719 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.2904, allocations: 0 / 0.5162 GB, free: 9.719 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.2904, allocations: 0 / 0.5162 GB, free: 9.719 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.334e-06/0.2904, allocations: 4 kB / 0.5162 GB, free: 9.715 MB / 382.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.00131/0.2917, allocations: 0.6201 MB / 0.5168 GB, free: 9.152 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.521e-05/0.2918, allocations: 13.17 kB / 0.5168 GB, free: 9.148 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 4.955e-05/0.2918, allocations: 16.27 kB / 0.5168 GB, free: 9.137 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001217/0.2919, allocations: 82.98 kB / 0.5169 GB, free: 9.059 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001198/0.2921, allocations: 43.36 kB / 0.517 GB, free: 9.039 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006417/0.2927, allocations: 341.1 kB / 0.5173 GB, free: 8.723 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.39e-05/0.2927, allocations: 30.84 kB / 0.5173 GB, free: 8.707 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.409e-05/0.2928, allocations: 44.64 kB / 0.5174 GB, free: 8.688 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007361/0.2936, allocations: 288.3 kB / 0.5176 GB, free: 8.512 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.926e-05/0.2936, allocations: 9.328 kB / 0.5176 GB, free: 8.504 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.541e-05/0.2936, allocations: 16.06 kB / 0.5177 GB, free: 8.492 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.463e-05/0.2936, allocations: 6.875 kB / 0.5177 GB, free: 8.492 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006648/0.2943, allocations: 212.6 kB / 0.5179 GB, free: 8.398 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001682/0.296, allocations: 0.8379 MB / 0.5187 GB, free: 7.578 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006187/0.2966, allocations: 239.8 kB / 0.5189 GB, free: 7.336 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003467/0.297, allocations: 137.4 kB / 0.519 GB, free: 7.199 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.941e-05/0.297, allocations: 12.31 kB / 0.5191 GB, free: 7.188 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005609/0.2976, allocations: 262.3 kB / 0.5193 GB, free: 6.918 MB / 382.1 MB Notification: Performance of pre-optimization done (n=45): time 2.454e-06/0.2976, allocations: 4 kB / 0.5193 GB, free: 6.914 MB / 382.1 MB Notification: Performance of matching and sorting (n=54): time 0.004078/0.3016, allocations: 1.312 MB / 0.5206 GB, free: 5.559 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.359e-05/0.3017, allocations: 67.83 kB / 0.5207 GB, free: 5.477 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002554/0.3019, allocations: 233 kB / 0.5209 GB, free: 5.242 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.482e-05/0.302, allocations: 41.7 kB / 0.5209 GB, free: 5.195 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.175e-05/0.3021, allocations: 173 kB / 0.5211 GB, free: 5.023 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001286/0.3022, allocations: 182.5 kB / 0.5213 GB, free: 4.844 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001714/0.3024, allocations: 98.23 kB / 0.5214 GB, free: 4.742 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.946e-05/0.3024, allocations: 350.7 kB / 0.5217 GB, free: 4.391 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003795/0.3028, allocations: 133 kB / 0.5218 GB, free: 4.262 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004509/0.3033, allocations: 293.3 kB / 0.5221 GB, free: 3.902 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008458/0.3041, allocations: 471.3 kB / 0.5225 GB, free: 3.371 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.346e-06/0.3041, allocations: 3.938 kB / 0.5225 GB, free: 3.367 MB / 382.1 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001021/0.3051, allocations: 0.5043 MB / 0.523 GB, free: 2.855 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.348e-05/0.3052, allocations: 8 kB / 0.523 GB, free: 2.848 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.218e-05/0.3052, allocations: 4 kB / 0.5231 GB, free: 2.844 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.81e-05/0.3052, allocations: 8.562 kB / 0.5231 GB, free: 2.836 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006342/0.3058, allocations: 119.8 kB / 0.5232 GB, free: 2.719 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.693e-05/0.3058, allocations: 11.94 kB / 0.5232 GB, free: 2.707 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00034/0.3062, allocations: 27.92 kB / 0.5232 GB, free: 2.68 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.582e-05/0.3062, allocations: 24 kB / 0.5232 GB, free: 2.656 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * Number of states: 0 () * Number of discrete variables: 15 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,mean.y,$PRE.mean.y,rectifiedMean.mean.y,$PRE.rectifiedMean.mean.y,rootMeanSquare.mean.y,$PRE.rootMeanSquare.mean.y,harmonic.mean2.y,$PRE.harmonic.mean2.y,harmonic.mean1.y,$PRE.harmonic.mean1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (69): * Single equations (assignments): 69 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002199/0.3065, allocations: 173.7 kB / 0.5234 GB, free: 2.477 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.417e-05/0.3065, allocations: 35.77 kB / 0.5234 GB, free: 2.441 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001148/0.3077, allocations: 471 kB / 0.5239 GB, free: 1.973 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.894e-06/0.3077, allocations: 7.938 kB / 0.5239 GB, free: 1.965 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.362e-06/0.3077, allocations: 0 / 0.5239 GB, free: 1.965 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.538e-06/0.3077, allocations: 7.922 kB / 0.5239 GB, free: 1.957 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002059/0.3098, allocations: 1.062 MB / 0.5249 GB, free: 0.8203 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.329e-06/0.3098, allocations: 4.156 kB / 0.5249 GB, free: 0.8164 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005232/0.3103, allocations: 95.81 kB / 0.525 GB, free: 0.7227 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.125e-06/0.3103, allocations: 4 kB / 0.525 GB, free: 0.7188 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.314e-05/0.3103, allocations: 15.98 kB / 0.525 GB, free: 0.7031 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.082e-06/0.3103, allocations: 4 kB / 0.5251 GB, free: 0.6992 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.107e-06/0.3103, allocations: 7.938 kB / 0.5251 GB, free: 0.6914 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001533/0.3119, allocations: 0.7499 MB / 0.5258 GB, free: 15.91 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001272/0.312, allocations: 108.9 kB / 0.5259 GB, free: 15.78 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.071e-05/0.3121, allocations: 16.06 kB / 0.5259 GB, free: 15.77 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003584/0.3124, allocations: 19.98 kB / 0.5259 GB, free: 15.75 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001495/0.3126, allocations: 44.44 kB / 0.526 GB, free: 15.7 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.453e-05/0.3127, allocations: 27.98 kB / 0.526 GB, free: 15.68 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002497/0.3129, allocations: 164.5 kB / 0.5262 GB, free: 15.52 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3129, allocations: 0 / 0.5262 GB, free: 15.52 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0007919/0.3137, allocations: 83.92 kB / 0.5262 GB, free: 15.43 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * 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 (56): * Single equations (assignments): 51 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002381/0.3161, allocations: 1.31 MB / 0.5275 GB, free: 14.07 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001197/0.3173, allocations: 378.9 kB / 0.5279 GB, free: 13.7 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.326e-06/0.3173, allocations: 0 / 0.5279 GB, free: 13.7 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005518/0.3178, allocations: 191.9 kB / 0.5281 GB, free: 13.52 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000663/0.3185, allocations: 44.41 kB / 0.5281 GB, free: 13.47 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00774/0.3262, allocations: 3.685 MB / 0.5317 GB, free: 9.52 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006765/0.3269, allocations: 0.8089 MB / 0.5325 GB, free: 8.684 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.000312/0.3272, allocations: 59.47 kB / 0.5325 GB, free: 8.625 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003389/0.3276, allocations: 131.4 kB / 0.5327 GB, free: 8.496 MB / 398.1 MB Notification: Performance of SimCode: time 1.152e-06/0.3276, allocations: 0 / 0.5327 GB, free: 8.496 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0284/0.356, allocations: 6.98 MB / 0.5395 GB, free: 1.508 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.533/9.889, allocations: 12.02 kB / 0.5395 GB, free: 1.496 MB / 398.1 MB " [Timeout remaining time 650] (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/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 --stepSize=0.000219736 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Blocks_Mean.fmu > ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 13.008692311006598] Failed to read output from testmodel.py, exit status != 0: ['time', 'mean.x', 'mean.y'] 10.018047608959023 10.03384356 9.740272062 Calling exit ...