Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_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.1+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+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.1_ModelicaTest.Blocks.Mean") translateModel(ModelicaTest.Blocks.Mean,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Blocks.Mean") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001107/0.001107, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001078/0.001078, allocations: 195.9 kB / 16.14 MB, free: 6.711 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.532/1.532, allocations: 205.1 MB / 222 MB, free: 4.805 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo): time 0.3398/0.3398, allocations: 37.98 MB / 307.3 MB, free: 9.969 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.1. 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.001972/0.001972, allocations: 70.39 kB / 374.5 MB, free: 15.64 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1977/0.1997, allocations: 56.47 MB / 431 MB, free: 7.078 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.00559/0.2053, allocations: 1.541 MB / 432.6 MB, free: 5.52 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002207/0.2076, allocations: 0.4996 MB / 433.1 MB, free: 5.012 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001546/0.2078, allocations: 4 kB / 433.1 MB, free: 5.008 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 5.962e-05/0.208, allocations: 0 / 433.1 MB, free: 5.008 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 8.65e-05/0.2081, allocations: 7.938 kB / 433.1 MB, free: 5 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003635/0.2085, allocations: 27.91 kB / 433.1 MB, free: 4.973 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001285/0.2086, allocations: 43.91 kB / 433.1 MB, free: 4.93 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001553/0.2088, allocations: 7.938 kB / 433.1 MB, free: 4.922 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001638/0.2089, allocations: 15.94 kB / 433.2 MB, free: 4.906 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001018/0.2091, allocations: 19.91 kB / 433.2 MB, free: 4.887 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 2.283e-05/0.2091, allocations: 0 / 433.2 MB, free: 4.887 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.943e-05/0.2091, allocations: 4 kB / 433.2 MB, free: 4.883 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 2.978e-05/0.2092, allocations: 11.92 kB / 433.2 MB, free: 4.871 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 6.244e-05/0.2092, allocations: 19.88 kB / 433.2 MB, free: 4.852 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001524/0.2094, allocations: 40.09 kB / 433.3 MB, free: 4.812 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.593e-06/0.2094, allocations: 0 / 433.3 MB, free: 4.812 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.2094, allocations: 0 / 433.3 MB, free: 4.812 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.631e-06/0.2094, allocations: 0 / 433.3 MB, free: 4.812 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.0008449/0.2103, allocations: 343.5 kB / 433.6 MB, free: 4.43 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.089e-05/0.2103, allocations: 8.031 kB / 433.6 MB, free: 4.422 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.952e-05/0.2104, allocations: 8.844 kB / 433.6 MB, free: 4.414 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002554/0.2107, allocations: 184.2 kB / 433.8 MB, free: 4.195 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.676e-05/0.2107, allocations: 4.375 kB / 433.8 MB, free: 4.191 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.633e-05/0.2107, allocations: 384 / 433.8 MB, free: 4.191 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001949/0.2109, allocations: 61.92 kB / 433.8 MB, free: 4.125 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.64e-05/0.211, allocations: 0 / 433.8 MB, free: 4.125 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.655e-05/0.211, allocations: 0 / 433.8 MB, free: 4.125 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.332e-06/0.211, allocations: 0 / 433.8 MB, free: 4.125 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001066/0.2111, allocations: 19.98 kB / 433.9 MB, free: 4.105 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006513/0.2118, allocations: 272.9 kB / 434.1 MB, free: 3.789 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001049/0.2119, allocations: 30.61 kB / 434.2 MB, free: 3.75 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.574e-05/0.2119, allocations: 16.84 kB / 434.2 MB, free: 3.73 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.748e-05/0.212, allocations: 0 / 434.2 MB, free: 3.73 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002948/0.2123, allocations: 75.38 kB / 434.3 MB, free: 3.645 MB / 366.1 MB Notification: Performance of pre-optimization done (n=4): time 1.482e-06/0.2123, allocations: 3.938 kB / 434.3 MB, free: 3.641 MB / 366.1 MB Notification: Performance of matching and sorting (n=4): time 0.0003301/0.2126, allocations: 85.5 kB / 434.3 MB, free: 3.551 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.156e-05/0.2127, allocations: 51.41 kB / 434.4 MB, free: 3.488 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001263/0.2128, allocations: 113.8 kB / 434.5 MB, free: 3.367 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.648e-05/0.2129, allocations: 25.7 kB / 434.5 MB, free: 3.336 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.846e-05/0.2129, allocations: 84.14 kB / 434.6 MB, free: 3.25 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.355e-05/0.213, allocations: 12.28 kB / 434.6 MB, free: 3.238 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.697e-05/0.213, allocations: 21.7 kB / 434.6 MB, free: 3.211 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001386/0.2132, allocations: 322.8 kB / 435 MB, free: 2.887 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.399e-05/0.2132, allocations: 15.98 kB / 435 MB, free: 2.871 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.771e-05/0.2133, allocations: 44.22 kB / 435 MB, free: 2.812 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001185/0.2135, allocations: 64.22 kB / 435.1 MB, free: 2.734 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.957e-06/0.2135, allocations: 4 kB / 435.1 MB, free: 2.73 MB / 366.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001839/0.2137, allocations: 93.48 kB / 435.2 MB, free: 2.633 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.764e-05/0.2137, allocations: 4 kB / 435.2 MB, free: 2.629 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.542e-06/0.2137, allocations: 192 / 435.2 MB, free: 2.629 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.629e-05/0.2137, allocations: 4 kB / 435.2 MB, free: 2.625 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.181e-05/0.2138, allocations: 11.98 kB / 435.2 MB, free: 2.613 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.005e-05/0.2138, allocations: 0 / 435.2 MB, free: 2.613 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.469e-05/0.2139, allocations: 15.86 kB / 435.2 MB, free: 2.598 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.318e-05/0.2139, allocations: 4 kB / 435.2 MB, free: 2.594 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 3 (mean.y,$PRE.mean.y,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 7 * 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.0001048/0.214, allocations: 121.9 kB / 435.3 MB, free: 2.465 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.521e-05/0.214, allocations: 3.906 kB / 435.3 MB, free: 2.461 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.855e-05/0.2141, allocations: 15.89 kB / 435.4 MB, free: 2.445 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.134e-06/0.2141, allocations: 0 / 435.4 MB, free: 2.445 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.771e-06/0.2141, allocations: 0 / 435.4 MB, free: 2.445 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.597e-06/0.2141, allocations: 0 / 435.4 MB, free: 2.445 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001995/0.2143, allocations: 177.6 kB / 435.5 MB, free: 2.223 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.2143, allocations: 0 / 435.5 MB, free: 2.223 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.35e-05/0.2144, allocations: 7.984 kB / 435.5 MB, free: 2.215 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.424e-06/0.2144, allocations: 0 / 435.5 MB, free: 2.215 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.337e-05/0.2144, allocations: 8 kB / 435.5 MB, free: 2.207 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.064e-06/0.2145, allocations: 0 / 435.5 MB, free: 2.207 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.542e-06/0.2145, allocations: 0 / 435.5 MB, free: 2.207 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002714/0.2147, allocations: 116.9 kB / 435.7 MB, free: 2.074 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.119e-05/0.2148, allocations: 81.05 kB / 435.7 MB, free: 1.977 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.291e-05/0.2148, allocations: 4 kB / 435.7 MB, free: 1.973 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.411e-05/0.2149, allocations: 4 kB / 435.7 MB, free: 1.969 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.086e-05/0.2149, allocations: 8.047 kB / 435.8 MB, free: 1.961 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.853e-06/0.2149, allocations: 0 / 435.8 MB, free: 1.961 MB / 366.1 MB Notification: Performance of sorting global known variables: time 8.485e-05/0.215, allocations: 91.27 kB / 435.8 MB, free: 1.871 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.215, allocations: 0 / 435.8 MB, free: 1.871 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002107/0.2153, allocations: 8 kB / 435.8 MB, free: 1.863 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (mean.x) * Number of discrete variables: 2 ($whenCondition1,mean.y) * Number of discrete states: 1 (mean.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0001238/0.2154, allocations: 95.47 kB / 435.9 MB, free: 1.762 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.000193/0.2156, allocations: 44.09 kB / 436 MB, free: 1.719 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.335e-06/0.2156, allocations: 4.125 kB / 436 MB, free: 1.715 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 6.871e-05/0.2157, allocations: 19.94 kB / 436 MB, free: 1.695 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001698/0.2159, allocations: 7.922 kB / 436 MB, free: 1.688 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004524/0.2163, allocations: 172.8 kB / 436.2 MB, free: 1.496 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003195/0.2166, allocations: 0.6887 MB / 436.9 MB, free: 0.7812 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 3.511e-05/0.2167, allocations: 4 kB / 436.9 MB, free: 0.7773 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.137e-05/0.2167, allocations: 7.438 kB / 436.9 MB, free: 0.7695 MB / 366.1 MB Notification: Performance of SimCode: time 6.62e-07/0.2167, allocations: 0 / 436.9 MB, free: 0.7695 MB / 366.1 MB Notification: Performance of Templates: time 0.003123/0.2199, allocations: 437.1 kB / 437.3 MB, free: 352 kB / 366.1 MB make -j1 -f ModelicaTest_3.2.1_ModelicaTest.Blocks.Mean.makefile (rm -f ModelicaTest_3.2.1_ModelicaTest.Blocks.Mean.pipe ; mkfifo ModelicaTest_3.2.1_ModelicaTest.Blocks.Mean.pipe ; head -c 1048576 < ModelicaTest_3.2.1_ModelicaTest.Blocks.Mean.pipe >> ../files/ModelicaTest_3.2.1_ModelicaTest.Blocks.Mean.sim & ./ModelicaTest_3.2.1_ModelicaTest.Blocks.Mean -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.1_ModelicaTest.Blocks.Mean.pipe 2>&1)