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.001225/0.001225, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001716/0.001716, allocations: 198.7 kB / 16.54 MB, free: 6.672 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.574/1.574, allocations: 205.1 MB / 222.4 MB, free: 4.617 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.3409/0.3409, allocations: 38 MB / 307.7 MB, free: 9.988 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.001525/0.001526, allocations: 71.91 kB / 375.2 MB, free: 15.2 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1259/0.1274, allocations: 56.46 MB / 431.7 MB, free: 6.641 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.003051/0.1305, allocations: 1.482 MB / 433.2 MB, free: 5.137 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008661/0.1314, allocations: 0.5051 MB / 433.7 MB, free: 4.625 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.162e-05/0.1315, allocations: 3.938 kB / 433.7 MB, free: 4.621 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 3.007e-05/0.1315, allocations: 0 / 433.7 MB, free: 4.621 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 5.632e-05/0.1316, allocations: 15.86 kB / 433.7 MB, free: 4.605 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002391/0.1318, allocations: 27.91 kB / 433.7 MB, free: 4.578 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 9.982e-05/0.1319, allocations: 39.86 kB / 433.8 MB, free: 4.539 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001125/0.1321, allocations: 7.984 kB / 433.8 MB, free: 4.531 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001218/0.1322, allocations: 19.92 kB / 433.8 MB, free: 4.512 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.454e-05/0.1323, allocations: 27.86 kB / 433.8 MB, free: 4.484 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 2.26e-05/0.1323, allocations: 4 kB / 433.8 MB, free: 4.48 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.657e-05/0.1323, allocations: 0 / 433.8 MB, free: 4.48 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 3.415e-05/0.1324, allocations: 11.98 kB / 433.8 MB, free: 4.469 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 5.579e-05/0.1324, allocations: 19.88 kB / 433.9 MB, free: 4.449 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001164/0.1325, allocations: 40.09 kB / 433.9 MB, free: 4.41 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.783e-06/0.1326, allocations: 0 / 433.9 MB, free: 4.41 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.1326, allocations: 0 / 433.9 MB, free: 4.41 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.762e-06/0.1326, allocations: 0 / 433.9 MB, free: 4.41 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.0006356/0.1332, allocations: 355.1 kB / 434.2 MB, free: 4.02 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.803e-05/0.1333, allocations: 11.89 kB / 434.3 MB, free: 4.008 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.276e-05/0.1333, allocations: 8.844 kB / 434.3 MB, free: 4 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001851/0.1335, allocations: 180.2 kB / 434.4 MB, free: 3.785 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.456e-05/0.1335, allocations: 384 / 434.4 MB, free: 3.785 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.175e-05/0.1336, allocations: 4.375 kB / 434.4 MB, free: 3.781 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001855/0.1338, allocations: 53.92 kB / 434.5 MB, free: 3.723 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.279e-05/0.1338, allocations: 0 / 434.5 MB, free: 3.723 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.431e-05/0.1338, allocations: 7.938 kB / 434.5 MB, free: 3.715 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.598e-06/0.1338, allocations: 0 / 434.5 MB, free: 3.715 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.562e-05/0.1339, allocations: 19.98 kB / 434.5 MB, free: 3.695 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004235/0.1343, allocations: 268.9 kB / 434.8 MB, free: 3.383 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001034/0.1345, allocations: 34.5 kB / 434.8 MB, free: 3.34 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.591e-05/0.1345, allocations: 20.94 kB / 434.8 MB, free: 3.316 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.724e-05/0.1346, allocations: 4 kB / 434.8 MB, free: 3.312 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002155/0.1348, allocations: 63.38 kB / 434.9 MB, free: 3.238 MB / 366.1 MB Notification: Performance of pre-optimization done (n=4): time 1.512e-06/0.1348, allocations: 4 kB / 434.9 MB, free: 3.234 MB / 366.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002747/0.1351, allocations: 77.58 kB / 435 MB, free: 3.152 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.101e-05/0.1351, allocations: 55.34 kB / 435 MB, free: 3.086 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.126e-05/0.1352, allocations: 117.8 kB / 435.2 MB, free: 2.961 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.935e-05/0.1352, allocations: 29.7 kB / 435.2 MB, free: 2.926 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.612e-05/0.1353, allocations: 84.14 kB / 435.3 MB, free: 2.84 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.006e-05/0.1353, allocations: 11.89 kB / 435.3 MB, free: 2.828 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.123e-05/0.1354, allocations: 25.7 kB / 435.3 MB, free: 2.797 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001234/0.1355, allocations: 318.8 kB / 435.6 MB, free: 2.477 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.066e-05/0.1356, allocations: 11.98 kB / 435.6 MB, free: 2.465 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.981e-05/0.1357, allocations: 56.27 kB / 435.7 MB, free: 2.395 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001174/0.1358, allocations: 64.16 kB / 435.7 MB, free: 2.316 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-06/0.1358, allocations: 4 kB / 435.7 MB, free: 2.312 MB / 366.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001566/0.136, allocations: 89.45 kB / 435.8 MB, free: 2.219 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.884e-05/0.136, allocations: 4 kB / 435.8 MB, free: 2.215 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.681e-06/0.136, allocations: 4 kB / 435.8 MB, free: 2.211 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.36e-05/0.136, allocations: 192 / 435.8 MB, free: 2.211 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.892e-05/0.1361, allocations: 8 kB / 435.9 MB, free: 2.203 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.354e-06/0.1361, allocations: 7.984 kB / 435.9 MB, free: 2.195 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.889e-05/0.1362, allocations: 12.09 kB / 435.9 MB, free: 2.184 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.369e-05/0.1362, allocations: 3.984 kB / 435.9 MB, free: 2.18 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.0001421/0.1363, allocations: 121.7 kB / 436 MB, free: 2.051 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.462e-05/0.1364, allocations: 7.906 kB / 436 MB, free: 2.043 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.716e-05/0.1364, allocations: 3.906 kB / 436 MB, free: 2.039 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.413e-06/0.1364, allocations: 384 / 436 MB, free: 2.039 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.303e-06/0.1364, allocations: 7.984 kB / 436 MB, free: 2.031 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.206e-06/0.1364, allocations: 0 / 436 MB, free: 2.031 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002053/0.1366, allocations: 169.6 kB / 436.2 MB, free: 1.816 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.655e-06/0.1366, allocations: 11.94 kB / 436.2 MB, free: 1.805 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.36e-05/0.1367, allocations: 4 kB / 436.2 MB, free: 1.801 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.543e-06/0.1367, allocations: 0 / 436.2 MB, free: 1.801 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.253e-05/0.1367, allocations: 3.984 kB / 436.2 MB, free: 1.797 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.032e-06/0.1367, allocations: 0 / 436.2 MB, free: 1.797 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.92e-07/0.1368, allocations: 0 / 436.2 MB, free: 1.797 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002407/0.137, allocations: 120.9 kB / 436.3 MB, free: 1.66 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.138e-05/0.1371, allocations: 81.17 kB / 436.4 MB, free: 1.562 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.898e-05/0.1371, allocations: 4.031 kB / 436.4 MB, free: 1.559 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.915e-05/0.1371, allocations: 0 / 436.4 MB, free: 1.559 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.706e-05/0.1372, allocations: 7.984 kB / 436.4 MB, free: 1.551 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.023e-06/0.1372, allocations: 4 kB / 436.4 MB, free: 1.547 MB / 366.1 MB Notification: Performance of sorting global known variables: time 5.43e-05/0.1372, allocations: 83.28 kB / 436.5 MB, free: 1.465 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1372, allocations: 0 / 436.5 MB, free: 1.465 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002547/0.1375, allocations: 12 kB / 436.5 MB, free: 1.453 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.0001179/0.1376, allocations: 103.2 kB / 436.6 MB, free: 1.344 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001634/0.1378, allocations: 39.92 kB / 436.6 MB, free: 1.305 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.1378, allocations: 0 / 436.6 MB, free: 1.305 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 5.86e-05/0.1379, allocations: 15.92 kB / 436.7 MB, free: 1.289 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001516/0.138, allocations: 15.88 kB / 436.7 MB, free: 1.273 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003634/0.1384, allocations: 163.3 kB / 436.8 MB, free: 1.09 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003374/0.1387, allocations: 0.6846 MB / 437.5 MB, free: 388 kB / 366.1 MB Notification: Performance of simCode: alias equations: time 2.581e-05/0.1388, allocations: 4 kB / 437.5 MB, free: 384 kB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.467e-05/0.1388, allocations: 7.438 kB / 437.5 MB, free: 376 kB / 366.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1388, allocations: 0 / 437.5 MB, free: 376 kB / 366.1 MB Notification: Performance of Templates: time 0.002589/0.1414, allocations: 473.7 kB / 438 MB, free: 15.9 MB / 382.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)