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.001241/0.001241, 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.001554/0.001553, allocations: 194.1 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.633/1.633, allocations: 205.1 MB / 222.1 MB, free: 4.719 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.3528/0.3528, allocations: 37.99 MB / 307.4 MB, free: 9.949 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.001407/0.001407, allocations: 70.41 kB / 374.7 MB, free: 15.56 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1404/0.1418, allocations: 56.47 MB / 431.2 MB, free: 6.988 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.002772/0.1446, allocations: 1.545 MB / 432.7 MB, free: 5.426 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007331/0.1454, allocations: 0.4997 MB / 433.2 MB, free: 4.918 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.633e-05/0.1454, allocations: 0 / 433.2 MB, free: 4.918 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 2.578e-05/0.1455, allocations: 4 kB / 433.2 MB, free: 4.914 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 4.161e-05/0.1455, allocations: 7.922 kB / 433.3 MB, free: 4.906 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001843/0.1457, allocations: 23.92 kB / 433.3 MB, free: 4.883 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 7.142e-05/0.1458, allocations: 43.86 kB / 433.3 MB, free: 4.84 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.716e-05/0.1459, allocations: 15.98 kB / 433.3 MB, free: 4.824 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.043e-05/0.146, allocations: 23.86 kB / 433.4 MB, free: 4.801 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.361e-05/0.146, allocations: 15.92 kB / 433.4 MB, free: 4.785 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 2.914e-05/0.1461, allocations: 4 kB / 433.4 MB, free: 4.781 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.237e-05/0.1461, allocations: 4 kB / 433.4 MB, free: 4.777 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 1.717e-05/0.1461, allocations: 3.984 kB / 433.4 MB, free: 4.773 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 3.643e-05/0.1461, allocations: 23.86 kB / 433.4 MB, free: 4.75 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 7.871e-05/0.1462, allocations: 36.11 kB / 433.4 MB, free: 4.715 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.1462, allocations: 4 kB / 433.4 MB, free: 4.711 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.402e-06/0.1463, allocations: 4 kB / 433.4 MB, free: 4.707 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.234e-06/0.1463, allocations: 0 / 433.4 MB, free: 4.707 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.0004434/0.1467, allocations: 343.5 kB / 433.8 MB, free: 4.324 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.407e-05/0.1468, allocations: 11.89 kB / 433.8 MB, free: 4.312 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.187e-05/0.1468, allocations: 8.844 kB / 433.8 MB, free: 4.305 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001377/0.1469, allocations: 180.2 kB / 434 MB, free: 4.09 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.376e-06/0.147, allocations: 384 / 434 MB, free: 4.09 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.887e-05/0.147, allocations: 4.375 kB / 434 MB, free: 4.086 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000138/0.1471, allocations: 61.92 kB / 434 MB, free: 4.02 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.654e-06/0.1471, allocations: 0 / 434 MB, free: 4.02 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.848e-06/0.1472, allocations: 0 / 434 MB, free: 4.02 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.587e-06/0.1472, allocations: 0 / 434 MB, free: 4.02 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.513e-05/0.1472, allocations: 19.98 kB / 434.1 MB, free: 4 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003386/0.1476, allocations: 272.9 kB / 434.3 MB, free: 3.684 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.374e-05/0.1477, allocations: 30.56 kB / 434.4 MB, free: 3.645 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.66e-05/0.1477, allocations: 20.94 kB / 434.4 MB, free: 3.621 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.012e-05/0.1477, allocations: 3.938 kB / 434.4 MB, free: 3.617 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001506/0.1479, allocations: 67.38 kB / 434.5 MB, free: 3.539 MB / 366.1 MB Notification: Performance of pre-optimization done (n=4): time 1.242e-06/0.1479, allocations: 0 / 434.5 MB, free: 3.539 MB / 366.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002278/0.1481, allocations: 85.75 kB / 434.5 MB, free: 3.449 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.269e-05/0.1482, allocations: 55.41 kB / 434.6 MB, free: 3.383 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.628e-05/0.1483, allocations: 113.7 kB / 434.7 MB, free: 3.262 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.533e-05/0.1483, allocations: 33.7 kB / 434.7 MB, free: 3.223 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.08e-05/0.1483, allocations: 88.12 kB / 434.8 MB, free: 3.133 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.211e-05/0.1484, allocations: 7.906 kB / 434.8 MB, free: 3.125 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.49e-05/0.1484, allocations: 17.72 kB / 434.8 MB, free: 3.102 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001117/0.1485, allocations: 322.8 kB / 435.2 MB, free: 2.777 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.662e-05/0.1486, allocations: 19.92 kB / 435.2 MB, free: 2.758 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.268e-05/0.1486, allocations: 52.27 kB / 435.2 MB, free: 2.691 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001085/0.1488, allocations: 64.22 kB / 435.3 MB, free: 2.613 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.1488, allocations: 0 / 435.3 MB, free: 2.613 MB / 366.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001499/0.1489, allocations: 89.45 kB / 435.4 MB, free: 2.52 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.213e-05/0.1489, allocations: 8 kB / 435.4 MB, free: 2.512 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.388e-06/0.1489, allocations: 0 / 435.4 MB, free: 2.512 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.037e-05/0.149, allocations: 4.156 kB / 435.4 MB, free: 2.508 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.472e-05/0.149, allocations: 12 kB / 435.4 MB, free: 2.496 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.689e-06/0.1491, allocations: 0 / 435.4 MB, free: 2.496 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.812e-05/0.1491, allocations: 11.92 kB / 435.4 MB, free: 2.484 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.905e-06/0.1491, allocations: 4 kB / 435.4 MB, free: 2.48 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 9.323e-05/0.1492, allocations: 121.7 kB / 435.5 MB, free: 2.352 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.173e-05/0.1492, allocations: 3.906 kB / 435.5 MB, free: 2.348 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.506e-05/0.1493, allocations: 11.91 kB / 435.6 MB, free: 2.336 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.402e-06/0.1493, allocations: 0 / 435.6 MB, free: 2.336 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.115e-06/0.1493, allocations: 4 kB / 435.6 MB, free: 2.332 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.817e-06/0.1493, allocations: 4 kB / 435.6 MB, free: 2.328 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001164/0.1494, allocations: 169.6 kB / 435.7 MB, free: 2.113 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.82e-07/0.1494, allocations: 0 / 435.7 MB, free: 2.113 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.993e-05/0.1495, allocations: 4 kB / 435.7 MB, free: 2.109 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.693e-06/0.1495, allocations: 0 / 435.7 MB, free: 2.109 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.138e-05/0.1495, allocations: 4 kB / 435.7 MB, free: 2.105 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.052e-06/0.1495, allocations: 0 / 435.7 MB, free: 2.105 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.62e-07/0.1495, allocations: 0 / 435.7 MB, free: 2.105 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000208/0.1497, allocations: 120.9 kB / 435.9 MB, free: 1.969 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.315e-05/0.1498, allocations: 85.5 kB / 435.9 MB, free: 1.867 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.619e-05/0.1498, allocations: 0 / 435.9 MB, free: 1.867 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.838e-05/0.1498, allocations: 0 / 435.9 MB, free: 1.867 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.653e-05/0.1499, allocations: 8 kB / 435.9 MB, free: 1.859 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.083e-06/0.1499, allocations: 7.922 kB / 436 MB, free: 1.852 MB / 366.1 MB Notification: Performance of sorting global known variables: time 4.246e-05/0.1499, allocations: 87.28 kB / 436 MB, free: 1.766 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1499, allocations: 0 / 436 MB, free: 1.766 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002137/0.1502, allocations: 12.06 kB / 436 MB, free: 1.754 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 9.467e-05/0.1503, allocations: 99.17 kB / 436.1 MB, free: 1.648 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001466/0.1504, allocations: 39.92 kB / 436.2 MB, free: 1.609 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.943e-06/0.1504, allocations: 3.938 kB / 436.2 MB, free: 1.605 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 5.702e-05/0.1505, allocations: 19.98 kB / 436.2 MB, free: 1.586 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001487/0.1506, allocations: 4.25 kB / 436.2 MB, free: 1.582 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003996/0.1511, allocations: 182.9 kB / 436.4 MB, free: 1.379 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002803/0.1514, allocations: 0.6807 MB / 437.1 MB, free: 0.6719 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 3.205e-05/0.1514, allocations: 7.984 kB / 437.1 MB, free: 0.6641 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.463e-05/0.1514, allocations: 7.438 kB / 437.1 MB, free: 0.6562 MB / 366.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1514, allocations: 4 kB / 437.1 MB, free: 0.6523 MB / 366.1 MB Notification: Performance of Templates: time 0.002263/0.1537, allocations: 452.5 kB / 437.5 MB, free: 220 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)