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/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+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 ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.003162/0.003162, allocations: 171.5 kB / 7.448 MB, free: 2.504 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.288/1.288, allocations: 170.6 MB / 178.4 MB, free: 15.46 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001908/0.001908, allocations: 112.4 kB / 217.7 MB, free: 8.23 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo): time 0.1469/0.1469, allocations: 37.97 MB / 294.8 MB, free: 9.629 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 7.303e-06/7.333e-06, allocations: 0 / 349.5 MB, free: 37.1 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1167/0.1168, allocations: 48.7 MB / 398.2 MB, free: 5.703 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3036/0.4204, allocations: 73.13 MB / 471.3 MB, free: 13.72 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002129/0.4207, allocations: 59.48 kB / 471.4 MB, free: 13.72 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.002557/0.4232, allocations: 0.6266 MB / 472 MB, free: 13.68 MB / 330.7 MB Notification: Performance of Transformations before backend: time 6.482e-06/0.4233, allocations: 0 / 472 MB, free: 13.68 MB / 330.7 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.0003254/0.4236, allocations: 344.5 kB / 472.3 MB, free: 13.33 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.984e-05/0.4236, allocations: 7.844 kB / 472.4 MB, free: 13.33 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.89e-05/0.4237, allocations: 17.89 kB / 472.4 MB, free: 13.32 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001793/0.4239, allocations: 189.7 kB / 472.6 MB, free: 13.11 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.53e-05/0.4239, allocations: 0 / 472.6 MB, free: 13.11 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.078e-05/0.4239, allocations: 2.078 kB / 472.6 MB, free: 13.11 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 6.451e-05/0.424, allocations: 10.31 kB / 472.6 MB, free: 13.11 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.746e-05/0.4241, allocations: 41.36 kB / 472.6 MB, free: 13.08 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.097e-05/0.4241, allocations: 0 / 472.6 MB, free: 13.08 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.118e-05/0.4241, allocations: 0 / 472.6 MB, free: 13.08 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.33e-06/0.4241, allocations: 4 kB / 472.6 MB, free: 13.07 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003442/0.4245, allocations: 253.7 kB / 472.9 MB, free: 12.84 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.118e-05/0.4245, allocations: 25.48 kB / 472.9 MB, free: 12.81 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.725e-05/0.4246, allocations: 10.48 kB / 472.9 MB, free: 12.8 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.639e-05/0.4246, allocations: 7.875 kB / 472.9 MB, free: 12.8 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.541e-05/0.4247, allocations: 56.61 kB / 473 MB, free: 12.75 MB / 330.7 MB Notification: Performance of pre-optimization done (n=4): time 1.172e-06/0.4247, allocations: 0 / 473 MB, free: 12.75 MB / 330.7 MB Notification: Performance of matching and sorting (n=4): time 0.0001649/0.4249, allocations: 52.02 kB / 473 MB, free: 12.72 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.302e-05/0.4249, allocations: 52.91 kB / 473.1 MB, free: 12.66 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.507e-05/0.425, allocations: 104.2 kB / 473.2 MB, free: 12.56 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.269e-05/0.425, allocations: 35.08 kB / 473.2 MB, free: 12.52 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.387e-05/0.425, allocations: 81.52 kB / 473.3 MB, free: 12.44 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.828e-05/0.4251, allocations: 12.39 kB / 473.3 MB, free: 12.43 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.859e-06/0.4251, allocations: 4.75 kB / 473.3 MB, free: 12.43 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 7.777e-05/0.4252, allocations: 313.6 kB / 473.6 MB, free: 12.12 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.347e-05/0.4252, allocations: 6.875 kB / 473.6 MB, free: 12.12 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.838e-05/0.4252, allocations: 39.62 kB / 473.6 MB, free: 12.08 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.905e-05/0.4253, allocations: 14.62 kB / 473.7 MB, free: 12.08 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.784e-06/0.4253, allocations: 0 / 473.7 MB, free: 12.08 MB / 330.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 9.527e-05/0.4254, allocations: 70.75 kB / 473.7 MB, free: 12.04 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.273e-05/0.4254, allocations: 8.031 kB / 473.7 MB, free: 12.04 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.779e-06/0.4254, allocations: 8.094 kB / 473.7 MB, free: 12.03 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.368e-05/0.4254, allocations: 3.844 kB / 473.8 MB, free: 12.03 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001186/0.4255, allocations: 14.5 kB / 473.8 MB, free: 12.03 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.7e-06/0.4256, allocations: 7.688 kB / 473.8 MB, free: 12.02 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.431e-05/0.4256, allocations: 11.39 kB / 473.8 MB, free: 12.02 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.676e-06/0.4256, allocations: 0 / 473.8 MB, free: 12.02 MB / 330.7 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 ($PRE.mean.y,mean.y,$whenCondition1) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.275e-05/0.4257, allocations: 110.6 kB / 473.9 MB, free: 11.91 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.317e-05/0.4257, allocations: 11.72 kB / 473.9 MB, free: 11.9 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.914e-05/0.4258, allocations: 11.12 kB / 473.9 MB, free: 11.89 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.543e-06/0.4258, allocations: 0 / 473.9 MB, free: 11.89 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.539e-06/0.4258, allocations: 0 / 473.9 MB, free: 11.89 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.118e-06/0.4258, allocations: 0 / 473.9 MB, free: 11.89 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.334e-05/0.4259, allocations: 141 kB / 474.1 MB, free: 11.73 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.4259, allocations: 3.844 kB / 474.1 MB, free: 11.73 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.084e-05/0.426, allocations: 7.562 kB / 474.1 MB, free: 11.73 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.707e-06/0.426, allocations: 3.906 kB / 474.1 MB, free: 11.73 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.195e-05/0.426, allocations: 3.25 kB / 474.1 MB, free: 11.73 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.22e-07/0.426, allocations: 4 kB / 474.1 MB, free: 11.73 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-06/0.426, allocations: 0 / 474.1 MB, free: 11.73 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001373/0.4262, allocations: 100.6 kB / 474.2 MB, free: 11.66 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.876e-05/0.4262, allocations: 84.86 kB / 474.3 MB, free: 11.56 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.887e-05/0.4262, allocations: 0 / 474.3 MB, free: 11.56 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.847e-05/0.4263, allocations: 3.75 kB / 474.3 MB, free: 11.56 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.001e-05/0.4263, allocations: 11.31 kB / 474.3 MB, free: 11.56 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.753e-06/0.4263, allocations: 4 kB / 474.3 MB, free: 11.55 MB / 330.7 MB Notification: Performance of sort global known variables: time 3.023e-05/0.4264, allocations: 90.66 kB / 474.4 MB, free: 11.48 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002006/0.4266, allocations: 7.625 kB / 474.4 MB, free: 11.48 MB / 330.7 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) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001006/0.4267, allocations: 94.55 kB / 474.5 MB, free: 11.39 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 8.765e-05/0.4268, allocations: 26.69 kB / 474.5 MB, free: 11.39 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.473e-06/0.4268, allocations: 0 / 474.5 MB, free: 11.39 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 3.227e-05/0.4268, allocations: 10.69 kB / 474.5 MB, free: 11.39 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001125/0.4269, allocations: 6.688 kB / 474.5 MB, free: 11.38 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002824/0.4272, allocations: 101.7 kB / 474.6 MB, free: 11.3 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002514/0.4275, allocations: 0.6962 MB / 475.3 MB, free: 26.61 MB / 346.7 MB Notification: Performance of SimCode: time 2.21e-07/0.4275, allocations: 0 / 475.3 MB, free: 26.61 MB / 346.7 MB Notification: Performance of Templates: time 0.002256/0.4298, allocations: 487.4 kB / 475.8 MB, free: 26.55 MB / 346.7 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)