Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Blocks.Mean.conf.json 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/Complex 4.0.0+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/ModelicaTest 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 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) Running command: translateModel(ModelicaTest.Blocks.Mean,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Blocks.Mean") translateModel(ModelicaTest.Blocks.Mean,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Blocks.Mean") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00669/0.00669, allocations: 101.6 kB / 15.73 MB, free: 6.031 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001305/0.001305, allocations: 195 kB / 16.67 MB, free: 5.969 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.804/1.804, allocations: 205.1 MB / 222.6 MB, free: 4.41 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.4282/0.4282, allocations: 39.94 MB / 309.8 MB, free: 9.465 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.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.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: ModelicaTest requested package Modelica of version 3.2.2. Modelica 3.2.3 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001692/0.001692, allocations: 71.91 kB / 435.8 MB, free: 2.473 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4109/0.4126, allocations: 56.88 MB / 492.6 MB, free: 19.55 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.004474/0.4171, allocations: 2.221 MB / 494.9 MB, free: 17.98 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00157/0.4187, allocations: 0.813 MB / 495.7 MB, free: 17.41 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001452/0.4189, allocations: 8.094 kB / 495.7 MB, free: 17.4 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001692/0.4191, allocations: 35.39 kB / 495.7 MB, free: 17.38 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002361/0.4193, allocations: 60.08 kB / 495.8 MB, free: 17.33 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003299/0.4197, allocations: 147.4 kB / 495.9 MB, free: 17.24 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004514/0.4201, allocations: 354.9 kB / 496.3 MB, free: 17.07 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002782/0.4204, allocations: 127.2 kB / 496.4 MB, free: 17 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002029/0.4206, allocations: 136.6 kB / 496.5 MB, free: 16.93 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002321/0.4209, allocations: 159 kB / 496.7 MB, free: 16.84 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.916e-05/0.4209, allocations: 32.84 kB / 496.7 MB, free: 16.84 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.561e-05/0.421, allocations: 32.31 kB / 496.7 MB, free: 16.84 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 9.831e-05/0.4211, allocations: 79.31 kB / 496.8 MB, free: 16.79 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001576/0.4213, allocations: 154.8 kB / 497 MB, free: 16.69 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004391/0.4217, allocations: 362.3 kB / 497.3 MB, free: 16.52 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.4217, allocations: 0 / 497.3 MB, free: 16.52 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.4217, allocations: 1.156 kB / 497.3 MB, free: 16.52 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.292e-05/0.4217, allocations: 0 / 497.3 MB, free: 16.52 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.00111/0.4229, allocations: 0.6163 MB / 497.9 MB, free: 16.01 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.349e-05/0.4229, allocations: 13.75 kB / 498 MB, free: 16 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.612e-05/0.423, allocations: 36.91 kB / 498 MB, free: 15.99 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005105/0.4235, allocations: 335.3 kB / 498.3 MB, free: 15.71 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.589e-05/0.4236, allocations: 24.48 kB / 498.3 MB, free: 15.7 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.695e-05/0.4236, allocations: 33.23 kB / 498.4 MB, free: 15.69 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005507/0.4242, allocations: 260 kB / 498.6 MB, free: 15.57 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.771e-05/0.4242, allocations: 1.469 kB / 498.6 MB, free: 15.57 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.183e-05/0.4243, allocations: 10.81 kB / 498.6 MB, free: 15.57 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.066e-05/0.4243, allocations: 6.031 kB / 498.7 MB, free: 15.57 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004677/0.4247, allocations: 187 kB / 498.8 MB, free: 15.51 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00151/0.4263, allocations: 0.7679 MB / 499.6 MB, free: 15.03 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004871/0.4268, allocations: 208.8 kB / 499.8 MB, free: 14.94 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002298/0.427, allocations: 97.42 kB / 499.9 MB, free: 14.9 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.799e-05/0.427, allocations: 4.109 kB / 499.9 MB, free: 14.9 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005005/0.4276, allocations: 228.8 kB / 0.4884 GB, free: 14.8 MB / 382.1 MB Notification: Performance of pre-optimization done (n=31): time 2.114e-06/0.4276, allocations: 3.938 kB / 0.4884 GB, free: 14.8 MB / 382.1 MB Notification: Performance of matching and sorting (n=31): time 0.0008887/0.4285, allocations: 374 kB / 0.4888 GB, free: 14.65 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.567e-05/0.4285, allocations: 62.06 kB / 0.4888 GB, free: 14.59 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002293/0.4288, allocations: 229.9 kB / 0.489 GB, free: 14.45 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.273e-05/0.4288, allocations: 36.58 kB / 0.4891 GB, free: 14.41 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001026/0.4289, allocations: 170.9 kB / 0.4892 GB, free: 14.27 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.947e-05/0.429, allocations: 93.39 kB / 0.4893 GB, free: 14.19 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001135/0.4291, allocations: 78.22 kB / 0.4894 GB, free: 14.14 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001056/0.4292, allocations: 346.2 kB / 0.4897 GB, free: 13.81 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002011/0.4294, allocations: 85.72 kB / 0.4898 GB, free: 13.79 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002651/0.4297, allocations: 230.9 kB / 0.49 GB, free: 13.58 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000495/0.4302, allocations: 337.7 kB / 0.4904 GB, free: 13.32 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.379e-06/0.4302, allocations: 1.656 kB / 0.4904 GB, free: 13.32 MB / 382.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.000636/0.4309, allocations: 375.5 kB / 0.4907 GB, free: 13.16 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.432e-05/0.4309, allocations: 6.875 kB / 0.4907 GB, free: 13.16 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.412e-05/0.4309, allocations: 9.375 kB / 0.4907 GB, free: 13.16 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.182e-05/0.4309, allocations: 10.88 kB / 0.4907 GB, free: 13.15 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003015/0.4312, allocations: 78.55 kB / 0.4908 GB, free: 13.14 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.582e-05/0.4313, allocations: 6.75 kB / 0.4908 GB, free: 13.14 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001715/0.4314, allocations: 31.75 kB / 0.4909 GB, free: 13.12 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.515e-05/0.4315, allocations: 18.3 kB / 0.4909 GB, free: 13.12 MB / 382.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,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 (46): * Single equations (assignments): 46 * 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.000149/0.4316, allocations: 164.2 kB / 0.491 GB, free: 12.97 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.702e-05/0.4317, allocations: 34.84 kB / 0.4911 GB, free: 12.95 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006998/0.4324, allocations: 326.2 kB / 0.4914 GB, free: 12.82 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.743e-06/0.4324, allocations: 3.469 kB / 0.4914 GB, free: 12.82 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.502e-06/0.4324, allocations: 1.781 kB / 0.4914 GB, free: 12.82 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.154e-06/0.4324, allocations: 1.359 kB / 0.4914 GB, free: 12.82 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001015/0.4335, allocations: 0.7065 MB / 0.4921 GB, free: 12.36 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.455e-06/0.4335, allocations: 1.375 kB / 0.4921 GB, free: 12.36 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000252/0.4337, allocations: 52.83 kB / 0.4921 GB, free: 12.35 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.059e-06/0.4338, allocations: 1.375 kB / 0.4921 GB, free: 12.35 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.831e-05/0.4338, allocations: 9.094 kB / 0.4921 GB, free: 12.35 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.386e-06/0.4338, allocations: 2.172 kB / 0.4921 GB, free: 12.35 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.284e-06/0.4338, allocations: 1.375 kB / 0.4921 GB, free: 12.35 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009044/0.4347, allocations: 0.5289 MB / 0.4927 GB, free: 12.06 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.514e-05/0.4348, allocations: 102.1 kB / 0.4928 GB, free: 11.95 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.217e-05/0.4349, allocations: 8.234 kB / 0.4928 GB, free: 11.95 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001695/0.435, allocations: 17.44 kB / 0.4928 GB, free: 11.94 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.875e-05/0.4351, allocations: 23.88 kB / 0.4928 GB, free: 11.93 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.459e-05/0.4352, allocations: 15.41 kB / 0.4928 GB, free: 11.93 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001919/0.4354, allocations: 168.6 kB / 0.493 GB, free: 11.82 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.8e-07/0.4354, allocations: 0 / 0.493 GB, free: 11.82 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003952/0.4358, allocations: 73.12 kB / 0.493 GB, free: 11.8 MB / 382.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) * 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 (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.0001458/0.4359, allocations: 112.4 kB / 0.4932 GB, free: 11.7 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.000639/0.4366, allocations: 261.8 kB / 0.4934 GB, free: 11.62 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.865e-06/0.4366, allocations: 1.219 kB / 0.4934 GB, free: 11.62 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002856/0.4369, allocations: 127 kB / 0.4935 GB, free: 11.59 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003872/0.4373, allocations: 34.59 kB / 0.4936 GB, free: 11.57 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001129/0.4384, allocations: 0.5899 MB / 0.4941 GB, free: 11.2 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002816/0.4387, allocations: 0.7785 MB / 0.4949 GB, free: 10.5 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001504/0.4389, allocations: 43.77 kB / 0.4949 GB, free: 10.49 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.174e-05/0.439, allocations: 36.62 kB / 0.495 GB, free: 10.47 MB / 382.1 MB Notification: Performance of SimCode: time 2.1e-07/0.439, allocations: 0 / 0.495 GB, free: 10.47 MB / 382.1 MB Notification: Performance of Templates: time 0.006431/0.4454, allocations: 2.621 MB / 0.4975 GB, free: 9.266 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.2_ModelicaTest.Blocks.Mean.makefile (rm -f ModelicaTest_3.2.2_ModelicaTest.Blocks.Mean.pipe ; mkfifo ModelicaTest_3.2.2_ModelicaTest.Blocks.Mean.pipe ; head -c 1048576 < ModelicaTest_3.2.2_ModelicaTest.Blocks.Mean.pipe >> ../files/ModelicaTest_3.2.2_ModelicaTest.Blocks.Mean.sim & ./ModelicaTest_3.2.2_ModelicaTest.Blocks.Mean -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.2_ModelicaTest.Blocks.Mean.pipe 2>&1)