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.001204/0.001205, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.002044/0.002044, allocations: 194.7 kB / 16.25 MB, free: 6.621 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.594/1.594, allocations: 205.1 MB / 222.1 MB, free: 4.727 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.3674/0.3674, allocations: 39.93 MB / 309.4 MB, free: 9.344 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.001417/0.001418, allocations: 63.91 kB / 377.1 MB, free: 13.03 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2012/0.2026, allocations: 56.88 MB / 434 MB, free: 4.051 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.004945/0.2076, allocations: 2.265 MB / 436.2 MB, free: 1.762 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002011/0.2097, allocations: 0.7994 MB / 437 MB, free: 0.957 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001974/0.2099, allocations: 4 kB / 437 MB, free: 0.9531 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002193/0.2102, allocations: 27.72 kB / 437.1 MB, free: 0.9258 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003096/0.2105, allocations: 43.66 kB / 437.1 MB, free: 0.8828 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000477/0.211, allocations: 123.8 kB / 437.2 MB, free: 0.7617 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005121/0.2115, allocations: 351.1 kB / 437.6 MB, free: 428 kB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004153/0.212, allocations: 132.5 kB / 437.7 MB, free: 296 kB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002783/0.2123, allocations: 135.5 kB / 437.8 MB, free: 160 kB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003139/0.2126, allocations: 155.2 kB / 438 MB, free: 4 kB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000115/0.2127, allocations: 36.05 kB / 438 MB, free: 15.96 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.623e-05/0.2128, allocations: 32 kB / 438.1 MB, free: 15.93 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001566/0.213, allocations: 79.7 kB / 438.1 MB, free: 15.86 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002398/0.2132, allocations: 159.1 kB / 438.3 MB, free: 15.7 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005326/0.2138, allocations: 354.8 kB / 438.6 MB, free: 15.36 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.692e-06/0.2138, allocations: 0 / 438.6 MB, free: 15.36 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.375e-06/0.2138, allocations: 0 / 438.6 MB, free: 15.36 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.056e-05/0.2138, allocations: 0 / 438.6 MB, free: 15.36 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.001374/0.2152, allocations: 0.6106 MB / 439.3 MB, free: 14.7 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.055e-05/0.2153, allocations: 11.89 kB / 439.3 MB, free: 14.68 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001293/0.2154, allocations: 36.56 kB / 439.3 MB, free: 14.65 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006072/0.216, allocations: 327.1 kB / 439.6 MB, free: 14.29 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.572e-05/0.2161, allocations: 24.94 kB / 439.6 MB, free: 14.27 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.145e-05/0.2162, allocations: 35.84 kB / 439.7 MB, free: 14.23 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006437/0.2168, allocations: 256.8 kB / 439.9 MB, free: 13.98 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.619e-05/0.2169, allocations: 7.984 kB / 439.9 MB, free: 13.97 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.519e-05/0.2169, allocations: 8 kB / 439.9 MB, free: 13.96 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.28e-05/0.217, allocations: 8 kB / 440 MB, free: 13.95 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005086/0.2175, allocations: 178.1 kB / 440.1 MB, free: 13.78 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001659/0.2191, allocations: 0.7872 MB / 440.9 MB, free: 12.94 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000562/0.2197, allocations: 206.8 kB / 441.1 MB, free: 12.73 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00026/0.22, allocations: 96.81 kB / 441.2 MB, free: 12.63 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.7e-05/0.22, allocations: 7.984 kB / 441.2 MB, free: 12.62 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005721/0.2206, allocations: 239 kB / 441.5 MB, free: 12.38 MB / 382.1 MB Notification: Performance of pre-optimization done (n=31): time 3.466e-06/0.2206, allocations: 0 / 441.5 MB, free: 12.38 MB / 382.1 MB Notification: Performance of matching and sorting (n=31): time 0.00104/0.2217, allocations: 369.2 kB / 441.8 MB, free: 12.01 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.483e-05/0.2218, allocations: 55.41 kB / 441.9 MB, free: 11.95 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003123/0.2221, allocations: 240.9 kB / 442.1 MB, free: 11.7 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.48e-05/0.2222, allocations: 37.7 kB / 442.1 MB, free: 11.66 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001518/0.2223, allocations: 164.6 kB / 442.3 MB, free: 11.5 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001219/0.2225, allocations: 102.5 kB / 442.4 MB, free: 11.39 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001595/0.2226, allocations: 70.06 kB / 442.5 MB, free: 11.32 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001822/0.2228, allocations: 338.8 kB / 442.8 MB, free: 10.98 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002613/0.2231, allocations: 92.69 kB / 442.9 MB, free: 10.89 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003955/0.2235, allocations: 230.3 kB / 443.1 MB, free: 10.6 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007228/0.2242, allocations: 340.8 kB / 443.4 MB, free: 10.21 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.906e-06/0.2243, allocations: 4 kB / 443.4 MB, free: 10.2 MB / 382.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0008668/0.2251, allocations: 376.9 kB / 443.8 MB, free: 9.828 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.813e-05/0.2252, allocations: 8 kB / 443.8 MB, free: 9.82 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.423e-05/0.2252, allocations: 4 kB / 443.8 MB, free: 9.816 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3e-05/0.2253, allocations: 11.98 kB / 443.8 MB, free: 9.805 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003957/0.2257, allocations: 63.91 kB / 443.9 MB, free: 9.742 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.448e-05/0.2257, allocations: 15.92 kB / 443.9 MB, free: 9.727 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002561/0.226, allocations: 27.84 kB / 443.9 MB, free: 9.699 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.852e-05/0.226, allocations: 16 kB / 444 MB, free: 9.684 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.0002578/0.2263, allocations: 165.8 kB / 444.1 MB, free: 9.512 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.931e-05/0.2264, allocations: 31.56 kB / 444.2 MB, free: 9.48 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009084/0.2273, allocations: 323.4 kB / 444.5 MB, free: 9.16 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.826e-06/0.2273, allocations: 8 kB / 444.5 MB, free: 9.152 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.699e-06/0.2273, allocations: 0 / 444.5 MB, free: 9.152 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.643e-06/0.2273, allocations: 3.938 kB / 444.5 MB, free: 9.148 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001282/0.2286, allocations: 0.7052 MB / 445.2 MB, free: 8.387 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.811e-06/0.2286, allocations: 7.922 kB / 445.2 MB, free: 8.379 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003527/0.229, allocations: 43.97 kB / 445.2 MB, free: 8.336 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.019e-06/0.229, allocations: 4 kB / 445.2 MB, free: 8.332 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.806e-05/0.2291, allocations: 11.98 kB / 445.3 MB, free: 8.32 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.641e-06/0.2291, allocations: 4 kB / 445.3 MB, free: 8.316 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.244e-06/0.2291, allocations: 0 / 445.3 MB, free: 8.316 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001169/0.2303, allocations: 0.5303 MB / 445.8 MB, free: 7.77 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.958e-05/0.2304, allocations: 100.8 kB / 445.9 MB, free: 7.652 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.467e-05/0.2304, allocations: 12.06 kB / 445.9 MB, free: 7.641 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002501/0.2307, allocations: 15.98 kB / 445.9 MB, free: 7.625 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001033/0.2308, allocations: 19.97 kB / 445.9 MB, free: 7.605 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.595e-05/0.2309, allocations: 11.98 kB / 445.9 MB, free: 7.594 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002684/0.2311, allocations: 172.5 kB / 446.1 MB, free: 7.422 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.2312, allocations: 0 / 446.1 MB, free: 7.422 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0006187/0.2318, allocations: 63.75 kB / 446.2 MB, free: 7.359 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.0002153/0.232, allocations: 123.1 kB / 446.3 MB, free: 7.23 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0008982/0.2329, allocations: 271.6 kB / 446.6 MB, free: 6.965 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.931e-06/0.2329, allocations: 4.938 kB / 446.6 MB, free: 6.961 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003433/0.2333, allocations: 131.8 kB / 446.7 MB, free: 6.832 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005711/0.2339, allocations: 56.62 kB / 446.7 MB, free: 6.781 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001731/0.2356, allocations: 0.6967 MB / 447.4 MB, free: 6.055 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006934/0.2363, allocations: 0.7803 MB / 448.2 MB, free: 5.25 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002405/0.2366, allocations: 47.16 kB / 448.3 MB, free: 5.203 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000123/0.2367, allocations: 27.44 kB / 448.3 MB, free: 5.176 MB / 382.1 MB Notification: Performance of SimCode: time 9.01e-07/0.2367, allocations: 0 / 448.3 MB, free: 5.176 MB / 382.1 MB Notification: Performance of Templates: time 0.008737/0.2455, allocations: 2.418 MB / 450.7 MB, free: 2.762 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)