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/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001201/0.001201, allocations: 118.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001328/0.001329, allocations: 198 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.412/1.412, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001028/0.001028, allocations: 63.89 kB / 358.7 MB, free: 12.94 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.348/0.3491, allocations: 50.54 MB / 409.2 MB, free: 1.633 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemoSignalCharacteristic): time 0.003469/0.3526, allocations: 2.282 MB / 411.5 MB, free: 15.35 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001857/0.3545, allocations: 0.9425 MB / 412.5 MB, free: 14.4 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001937/0.3547, allocations: 7.938 kB / 412.5 MB, free: 14.39 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001655/0.3549, allocations: 35.55 kB / 412.5 MB, free: 14.36 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003741/0.3553, allocations: 111.2 kB / 412.6 MB, free: 14.24 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003758/0.3557, allocations: 171.7 kB / 412.8 MB, free: 14.07 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004413/0.3561, allocations: 422.8 kB / 413.2 MB, free: 13.66 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002522/0.3564, allocations: 119.5 kB / 413.3 MB, free: 13.54 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002947/0.3567, allocations: 183.3 kB / 413.5 MB, free: 13.36 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003001/0.357, allocations: 195.1 kB / 413.7 MB, free: 13.17 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.405e-05/0.3571, allocations: 40 kB / 413.7 MB, free: 13.13 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001102/0.3572, allocations: 52 kB / 413.8 MB, free: 13.08 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001001/0.3573, allocations: 95.59 kB / 413.9 MB, free: 12.98 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001898/0.3575, allocations: 182.9 kB / 414 MB, free: 12.8 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005027/0.358, allocations: 418.2 kB / 414.5 MB, free: 12.39 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.23e-06/0.358, allocations: 0 / 414.5 MB, free: 12.39 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.358, allocations: 0 / 414.5 MB, free: 12.39 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.305e-05/0.358, allocations: 0 / 414.5 MB, free: 12.39 MB / 334.1 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.001544/0.3596, allocations: 0.7324 MB / 415.2 MB, free: 11.61 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.14e-05/0.3596, allocations: 12.03 kB / 415.2 MB, free: 11.6 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003081/0.3599, allocations: 68.62 kB / 415.3 MB, free: 11.53 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005707/0.3605, allocations: 388.5 kB / 415.6 MB, free: 11.11 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.452e-05/0.3606, allocations: 24.81 kB / 415.7 MB, free: 11.09 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.538e-05/0.3606, allocations: 36.3 kB / 415.7 MB, free: 11.05 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005236/0.3612, allocations: 255.5 kB / 416 MB, free: 10.8 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.942e-05/0.3612, allocations: 3.953 kB / 416 MB, free: 10.8 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.347e-05/0.3612, allocations: 12 kB / 416 MB, free: 10.79 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.965e-06/0.3612, allocations: 4 kB / 416 MB, free: 10.78 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004867/0.3617, allocations: 185.6 kB / 416.2 MB, free: 10.6 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001306/0.3631, allocations: 0.783 MB / 416.9 MB, free: 9.766 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004832/0.3635, allocations: 186.8 kB / 417.1 MB, free: 9.574 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002279/0.3638, allocations: 96.17 kB / 417.2 MB, free: 9.48 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.371e-05/0.3638, allocations: 7.984 kB / 417.2 MB, free: 9.473 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004713/0.3643, allocations: 240.9 kB / 417.5 MB, free: 9.223 MB / 334.1 MB Notification: Performance of pre-optimization done (n=28): time 1.603e-06/0.3643, allocations: 0 / 417.5 MB, free: 9.223 MB / 334.1 MB Notification: Performance of matching and sorting (n=28): time 0.000912/0.3652, allocations: 379.4 kB / 417.8 MB, free: 8.848 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.687e-05/0.3653, allocations: 67.39 kB / 417.9 MB, free: 8.77 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003434/0.3656, allocations: 320.5 kB / 418.2 MB, free: 8.453 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.289e-05/0.3657, allocations: 37.7 kB / 418.2 MB, free: 8.41 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001319/0.3658, allocations: 184.8 kB / 418.4 MB, free: 8.227 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.037e-05/0.3659, allocations: 95.2 kB / 418.5 MB, free: 8.133 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001101/0.366, allocations: 74.06 kB / 418.6 MB, free: 8.051 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000123/0.3661, allocations: 346.8 kB / 418.9 MB, free: 7.703 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002664/0.3664, allocations: 96.69 kB / 419 MB, free: 7.609 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003249/0.3668, allocations: 230.6 kB / 419.2 MB, free: 7.324 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005898/0.3674, allocations: 381.3 kB / 419.6 MB, free: 6.887 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.038e-06/0.3674, allocations: 0 / 419.6 MB, free: 6.887 MB / 334.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.000767/0.3681, allocations: 434.6 kB / 420 MB, free: 6.449 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.357e-05/0.3682, allocations: 33.7 kB / 420.1 MB, free: 6.41 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.053e-05/0.3682, allocations: 4 kB / 420.1 MB, free: 6.406 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.967e-05/0.3682, allocations: 4 kB / 420.1 MB, free: 6.402 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000281/0.3685, allocations: 75.83 kB / 420.2 MB, free: 6.328 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.281e-05/0.3685, allocations: 12.34 kB / 420.2 MB, free: 6.316 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002632/0.3688, allocations: 47.75 kB / 420.2 MB, free: 6.27 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.511e-05/0.3689, allocations: 20 kB / 420.2 MB, free: 6.25 MB / 334.1 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 (rectifiedMean.mean.y_last,$PRE.rectifiedMean.mean.y_last,mean.y_last,$PRE.mean.y_last,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,rootMeanSquare.mean.y_last,$PRE.rootMeanSquare.mean.y_last,harmonic.mean2.y_last,$PRE.harmonic.mean2.y_last,harmonic.mean1.y_last,$PRE.harmonic.mean1.y_last,pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001899/0.3691, allocations: 171.3 kB / 420.4 MB, free: 6.07 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.313e-05/0.3691, allocations: 35.8 kB / 420.4 MB, free: 6.035 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000729/0.3699, allocations: 318.2 kB / 420.7 MB, free: 5.715 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.548e-06/0.3699, allocations: 8 kB / 420.8 MB, free: 5.707 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.66e-06/0.3699, allocations: 3.938 kB / 420.8 MB, free: 5.703 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.15e-06/0.3699, allocations: 0 / 420.8 MB, free: 5.703 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003554/0.3703, allocations: 369.2 kB / 421.1 MB, free: 5.293 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.843e-06/0.3703, allocations: 0 / 421.1 MB, free: 5.293 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002183/0.3705, allocations: 35.97 kB / 421.2 MB, free: 5.258 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.565e-06/0.3705, allocations: 4 kB / 421.2 MB, free: 5.254 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.688e-05/0.3705, allocations: 11.98 kB / 421.2 MB, free: 5.242 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.575e-06/0.3706, allocations: 0 / 421.2 MB, free: 5.242 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.3706, allocations: 0 / 421.2 MB, free: 5.242 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009547/0.3715, allocations: 469.3 kB / 421.6 MB, free: 4.762 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.768e-05/0.3716, allocations: 108.9 kB / 421.7 MB, free: 4.637 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.514e-05/0.3717, allocations: 12.05 kB / 421.7 MB, free: 4.625 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002146/0.3719, allocations: 15.98 kB / 421.8 MB, free: 4.609 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.491e-05/0.372, allocations: 31.95 kB / 421.8 MB, free: 4.578 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.399e-05/0.372, allocations: 8 kB / 421.8 MB, free: 4.57 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002394/0.3723, allocations: 231 kB / 422 MB, free: 4.344 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3723, allocations: 0 / 422 MB, free: 4.344 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003285/0.3726, allocations: 71.89 kB / 422.1 MB, free: 4.273 MB / 334.1 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) * Number of clocked states: 0 () * 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 (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.0001707/0.3728, allocations: 119.2 kB / 422.2 MB, free: 4.145 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006791/0.3735, allocations: 330.9 kB / 422.5 MB, free: 3.812 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.394e-06/0.3735, allocations: 0 / 422.5 MB, free: 3.812 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002801/0.3738, allocations: 123.8 kB / 422.7 MB, free: 3.691 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003462/0.3741, allocations: 56.92 kB / 422.7 MB, free: 3.637 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001044/0.3752, allocations: 0.6172 MB / 423.3 MB, free: 2.992 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003479/0.3756, allocations: 0.7837 MB / 424.1 MB, free: 2.176 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001547/0.3757, allocations: 51.03 kB / 424.2 MB, free: 2.129 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.763e-05/0.3758, allocations: 35.42 kB / 424.2 MB, free: 2.094 MB / 334.1 MB Notification: Performance of SimCode: time 2.2e-07/0.3758, allocations: 0 / 424.2 MB, free: 2.094 MB / 334.1 MB Notification: Performance of Templates: time 0.008381/0.3842, allocations: 3.59 MB / 427.8 MB, free: 14.52 MB / 350.1 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)