Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.DemoSignalCharacteristic.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Blocks.Examples.DemoSignalCharacteristic,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.DemoSignalCharacteristic") translateModel(Modelica.Blocks.Examples.DemoSignalCharacteristic,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.DemoSignalCharacteristic") [: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 trunk/package.mo): time 0.002204/0.002204, allocations: 204 kB / 8.54 MB, free: 1.832 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.376/1.376, allocations: 225.5 MB / 234.4 MB, free: 3.324 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009603/0.0009604, allocations: 95.38 kB / 286.3 MB, free: 5.305 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 7.604e-06/7.634e-06, allocations: 0 / 343.1 MB, free: 8.742 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1114/0.1114, allocations: 51.48 MB / 394.6 MB, free: 5.215 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3001/0.4116, allocations: 78.69 MB / 473.3 MB, free: 13.09 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001962/0.4118, allocations: 61.97 kB / 473.4 MB, free: 13.07 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.0167/0.4285, allocations: 5.58 MB / 478.9 MB, free: 9.887 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.415e-05/0.4286, allocations: 11.56 kB / 478.9 MB, free: 9.879 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.001085/0.4297, allocations: 0.6082 MB / 479.6 MB, free: 9.246 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.253e-05/0.4298, allocations: 12.03 kB / 479.6 MB, free: 9.234 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003624/0.4301, allocations: 71.5 kB / 479.6 MB, free: 9.164 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005367/0.4307, allocations: 355.5 kB / 480 MB, free: 8.816 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.374e-05/0.4307, allocations: 11.91 kB / 480 MB, free: 8.805 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.797e-05/0.4308, allocations: 18.62 kB / 480 MB, free: 8.789 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000267/0.4311, allocations: 132.7 kB / 480.1 MB, free: 8.707 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003368/0.4314, allocations: 197.3 kB / 480.3 MB, free: 8.555 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.837e-05/0.4314, allocations: 0 / 480.3 MB, free: 8.555 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.058e-05/0.4315, allocations: 7.859 kB / 480.3 MB, free: 8.551 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.568e-06/0.4315, allocations: 7.984 kB / 480.4 MB, free: 8.543 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0012/0.4327, allocations: 0.7226 MB / 481.1 MB, free: 7.914 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002496/0.433, allocations: 137.7 kB / 481.2 MB, free: 7.812 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001066/0.4331, allocations: 62.55 kB / 481.3 MB, free: 7.773 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.418e-05/0.4331, allocations: 4.125 kB / 481.3 MB, free: 7.77 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002456/0.4334, allocations: 171.7 kB / 481.4 MB, free: 7.625 MB / 346.7 MB Notification: Performance of pre-optimization done (n=28): time 2.134e-06/0.4334, allocations: 0 / 481.4 MB, free: 7.625 MB / 346.7 MB Notification: Performance of matching and sorting (n=28): time 0.0004051/0.4338, allocations: 211.3 kB / 481.6 MB, free: 7.457 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.252e-05/0.4338, allocations: 66.34 kB / 481.7 MB, free: 7.383 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002556/0.4341, allocations: 268.9 kB / 482 MB, free: 7.172 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.212e-05/0.4341, allocations: 25.7 kB / 482 MB, free: 7.141 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.953e-05/0.4342, allocations: 152.7 kB / 482.2 MB, free: 7.004 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.718e-05/0.4343, allocations: 80.53 kB / 482.2 MB, free: 6.938 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.537e-05/0.4343, allocations: 0 / 482.2 MB, free: 6.938 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 7.5e-05/0.4344, allocations: 349 kB / 482.6 MB, free: 6.602 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001247/0.4345, allocations: 65.38 kB / 482.6 MB, free: 6.562 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001714/0.4347, allocations: 202 kB / 482.8 MB, free: 6.34 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001621/0.4349, allocations: 101.2 kB / 482.9 MB, free: 6.27 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.526e-06/0.4349, allocations: 0 / 482.9 MB, free: 6.27 MB / 346.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0004743/0.4354, allocations: 305.8 kB / 483.2 MB, free: 6.023 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.389e-05/0.4354, allocations: 4 kB / 483.2 MB, free: 6.02 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.828e-06/0.4354, allocations: 4 kB / 483.2 MB, free: 6.016 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.009e-05/0.4354, allocations: 8.047 kB / 483.2 MB, free: 6.008 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002987/0.4357, allocations: 87.41 kB / 483.3 MB, free: 5.926 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.101e-05/0.4357, allocations: 11.91 kB / 483.3 MB, free: 5.914 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003137/0.4361, allocations: 35.83 kB / 483.4 MB, free: 5.879 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.068e-05/0.4361, allocations: 19.22 kB / 483.4 MB, free: 5.863 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 20 ($PRE.rectifiedMean.mean.y_last,rectifiedMean.mean.y_last,$PRE.mean.y_last,mean.y_last,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$PRE.rootMeanSquare.mean.y_last,rootMeanSquare.mean.y_last,$PRE.harmonic.mean1.y_last,harmonic.mean1.y_last,$PRE.harmonic.mean2.y_last,harmonic.mean2.y_last,$whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (45): * Single equations (assignments): 44 * Array equations: 0 * Algorithm blocks: 1 * 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 0.0001025/0.4362, allocations: 135 kB / 483.5 MB, free: 5.73 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.793e-05/0.4363, allocations: 31.62 kB / 483.6 MB, free: 5.699 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003836/0.4367, allocations: 226.6 kB / 483.8 MB, free: 5.523 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.627e-06/0.4367, allocations: 0 / 483.8 MB, free: 5.523 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.819e-06/0.4367, allocations: 8 kB / 483.8 MB, free: 5.516 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.972e-06/0.4367, allocations: 3.984 kB / 483.8 MB, free: 5.512 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002497/0.4369, allocations: 312.9 kB / 484.1 MB, free: 5.223 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/0.437, allocations: 0 / 484.1 MB, free: 5.223 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000251/0.4372, allocations: 55.83 kB / 484.2 MB, free: 5.168 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.598e-06/0.4372, allocations: 0 / 484.2 MB, free: 5.168 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.628e-05/0.4373, allocations: 11.69 kB / 484.2 MB, free: 5.16 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.255e-06/0.4373, allocations: 2.344 kB / 484.2 MB, free: 5.16 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/0.4373, allocations: 0 / 484.2 MB, free: 5.16 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004669/0.4377, allocations: 344.4 kB / 484.5 MB, free: 4.895 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.934e-05/0.4378, allocations: 112 kB / 484.6 MB, free: 4.77 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.476e-05/0.4379, allocations: 3.984 kB / 484.6 MB, free: 4.766 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002599/0.4382, allocations: 27.36 kB / 484.6 MB, free: 4.742 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.647e-05/0.4382, allocations: 27.33 kB / 484.7 MB, free: 4.719 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.498e-05/0.4383, allocations: 11.36 kB / 484.7 MB, free: 4.711 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.0001727/0.4384, allocations: 215 kB / 484.9 MB, free: 4.543 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003612/0.4388, allocations: 75.72 kB / 485 MB, free: 4.469 MB / 346.7 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: 13 ($whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,pulse.T_start,pulse.count,mean.y_last,rectifiedMean.mean.y_last,rootMeanSquare.mean.y_last,harmonic.mean1.y_last,harmonic.mean2.y_last) * Number of discrete states: 6 (pulse.count,mean.x,rectifiedMean.mean.x,rootMeanSquare.mean.x,harmonic.mean1.x,harmonic.mean2.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (28): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * 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.0001762/0.439, allocations: 119.1 kB / 485.1 MB, free: 4.348 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0003579/0.4394, allocations: 227.8 kB / 485.3 MB, free: 4.176 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.617e-06/0.4394, allocations: 0 / 485.3 MB, free: 4.176 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000137/0.4395, allocations: 108.2 kB / 485.4 MB, free: 4.098 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002865/0.4398, allocations: 33.7 kB / 485.4 MB, free: 4.074 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008482/0.4407, allocations: 446 kB / 485.9 MB, free: 3.668 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002965/0.441, allocations: 0.8356 MB / 486.7 MB, free: 2.809 MB / 346.7 MB Notification: Performance of SimCode: time 2.81e-07/0.441, allocations: 0 / 486.7 MB, free: 2.809 MB / 346.7 MB Notification: Performance of Templates: time 0.006547/0.4475, allocations: 3.265 MB / 490 MB, free: 15.61 MB / 362.7 MB make -j1 -f Modelica_trunk_Modelica.Blocks.Examples.DemoSignalCharacteristic.makefile (rm -f Modelica_trunk_Modelica.Blocks.Examples.DemoSignalCharacteristic.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.DemoSignalCharacteristic.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.DemoSignalCharacteristic.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.DemoSignalCharacteristic.sim & ./Modelica_trunk_Modelica.Blocks.Examples.DemoSignalCharacteristic -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.DemoSignalCharacteristic.pipe 2>&1)