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.001428/0.001428, allocations: 107.8 kB / 18.45 MB, free: 4.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001656/0.001656, allocations: 205.9 kB / 19.4 MB, free: 3.66 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.383/1.383, allocations: 227.4 MB / 247.6 MB, free: 10.51 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001374/0.001374, allocations: 64.12 kB / 359.4 MB, free: 12.94 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2569/0.2583, allocations: 50.53 MB / 409.9 MB, free: 1.613 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemoSignalCharacteristic): time 0.003196/0.2616, allocations: 2.287 MB / 412.2 MB, free: 15.32 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001512/0.2631, allocations: 0.9503 MB / 413.2 MB, free: 14.36 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001386/0.2633, allocations: 4 kB / 413.2 MB, free: 14.36 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001517/0.2634, allocations: 31.55 kB / 413.2 MB, free: 14.33 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003344/0.2638, allocations: 111.2 kB / 413.3 MB, free: 14.21 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003663/0.2641, allocations: 163.7 kB / 413.5 MB, free: 14.05 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004382/0.2646, allocations: 430.8 kB / 413.9 MB, free: 13.63 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002213/0.2648, allocations: 119.5 kB / 414 MB, free: 13.51 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002871/0.2651, allocations: 187.2 kB / 414.2 MB, free: 13.33 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000251/0.2654, allocations: 187.2 kB / 414.4 MB, free: 13.14 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.091e-05/0.2655, allocations: 36 kB / 414.4 MB, free: 13.11 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001042/0.2656, allocations: 59.92 kB / 414.5 MB, free: 13.05 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.698e-05/0.2657, allocations: 91.67 kB / 414.6 MB, free: 12.96 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001508/0.2658, allocations: 183 kB / 414.7 MB, free: 12.78 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003936/0.2662, allocations: 415.7 kB / 415.1 MB, free: 12.38 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.2662, allocations: 0 / 415.1 MB, free: 12.38 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.2662, allocations: 0 / 415.1 MB, free: 12.38 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.264e-06/0.2663, allocations: 7.938 kB / 415.1 MB, free: 12.37 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.001477/0.2677, allocations: 0.717 MB / 415.9 MB, free: 11.6 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.465e-05/0.2678, allocations: 12.03 kB / 415.9 MB, free: 11.59 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002977/0.2681, allocations: 68.44 kB / 415.9 MB, free: 11.52 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005453/0.2686, allocations: 384.3 kB / 416.3 MB, free: 11.11 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.585e-05/0.2687, allocations: 24.8 kB / 416.3 MB, free: 11.08 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.311e-05/0.2687, allocations: 24.38 kB / 416.4 MB, free: 11.06 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005207/0.2693, allocations: 263.5 kB / 416.6 MB, free: 10.8 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.577e-05/0.2693, allocations: 7.844 kB / 416.6 MB, free: 10.79 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.025e-05/0.2693, allocations: 4 kB / 416.6 MB, free: 10.79 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.317e-06/0.2693, allocations: 8 kB / 416.6 MB, free: 10.78 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004792/0.2698, allocations: 185.6 kB / 416.8 MB, free: 10.6 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001284/0.2711, allocations: 0.7867 MB / 417.6 MB, free: 9.762 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004925/0.2716, allocations: 186.8 kB / 417.8 MB, free: 9.57 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002417/0.2719, allocations: 92.8 kB / 417.9 MB, free: 9.477 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.377e-05/0.2719, allocations: 3.938 kB / 417.9 MB, free: 9.473 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004704/0.2724, allocations: 249 kB / 418.1 MB, free: 9.215 MB / 334.1 MB Notification: Performance of pre-optimization done (n=28): time 1.994e-06/0.2724, allocations: 0 / 418.1 MB, free: 9.215 MB / 334.1 MB Notification: Performance of matching and sorting (n=28): time 0.0009175/0.2733, allocations: 375.2 kB / 418.5 MB, free: 8.844 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.363e-05/0.2734, allocations: 63.33 kB / 418.6 MB, free: 8.77 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003229/0.2737, allocations: 320.5 kB / 418.9 MB, free: 8.453 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.823e-05/0.2738, allocations: 41.69 kB / 418.9 MB, free: 8.406 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001278/0.2739, allocations: 188.5 kB / 419.1 MB, free: 8.219 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.086e-05/0.274, allocations: 82.8 kB / 419.2 MB, free: 8.137 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001085/0.2741, allocations: 78.06 kB / 419.2 MB, free: 8.051 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001279/0.2742, allocations: 346.8 kB / 419.6 MB, free: 7.703 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000265/0.2745, allocations: 96.69 kB / 419.7 MB, free: 7.609 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003554/0.2749, allocations: 230.6 kB / 419.9 MB, free: 7.324 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006027/0.2755, allocations: 385.1 kB / 420.3 MB, free: 6.883 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.406e-06/0.2755, allocations: 0 / 420.3 MB, free: 6.883 MB / 334.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0007908/0.2763, allocations: 422.4 kB / 420.7 MB, free: 6.457 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.696e-05/0.2763, allocations: 33.7 kB / 420.7 MB, free: 6.418 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.848e-06/0.2763, allocations: 4 kB / 420.7 MB, free: 6.414 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.247e-05/0.2764, allocations: 8 kB / 420.7 MB, free: 6.406 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002848/0.2767, allocations: 76.3 kB / 420.8 MB, free: 6.332 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.204e-05/0.2767, allocations: 15.92 kB / 420.8 MB, free: 6.316 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002801/0.277, allocations: 43.67 kB / 420.9 MB, free: 6.273 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.586e-05/0.277, allocations: 16 kB / 420.9 MB, free: 6.258 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.0001717/0.2772, allocations: 167.5 kB / 421.1 MB, free: 6.082 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.52e-05/0.2772, allocations: 39.5 kB / 421.1 MB, free: 6.043 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006827/0.2779, allocations: 314.2 kB / 421.4 MB, free: 5.727 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.953e-06/0.2779, allocations: 4 kB / 421.4 MB, free: 5.723 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.719e-06/0.278, allocations: 3.938 kB / 421.4 MB, free: 5.719 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.769e-06/0.278, allocations: 0 / 421.4 MB, free: 5.719 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003306/0.2783, allocations: 365.2 kB / 421.8 MB, free: 5.312 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.993e-06/0.2783, allocations: 0 / 421.8 MB, free: 5.312 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000234/0.2786, allocations: 52.06 kB / 421.8 MB, free: 5.262 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.013e-06/0.2786, allocations: 7.984 kB / 421.8 MB, free: 5.254 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.307e-05/0.2786, allocations: 4 kB / 421.8 MB, free: 5.25 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.024e-06/0.2786, allocations: 4 kB / 421.8 MB, free: 5.246 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.2786, allocations: 0 / 421.8 MB, free: 5.246 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000947/0.2796, allocations: 465.1 kB / 422.3 MB, free: 4.77 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.673e-05/0.2797, allocations: 108.7 kB / 422.4 MB, free: 4.645 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.932e-05/0.2797, allocations: 12.05 kB / 422.4 MB, free: 4.633 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002307/0.28, allocations: 19.98 kB / 422.4 MB, free: 4.613 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.365e-05/0.28, allocations: 27.95 kB / 422.4 MB, free: 4.586 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.205e-05/0.2801, allocations: 11.98 kB / 422.5 MB, free: 4.574 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002214/0.2803, allocations: 231.1 kB / 422.7 MB, free: 4.348 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2803, allocations: 0 / 422.7 MB, free: 4.348 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003331/0.2806, allocations: 71.84 kB / 422.8 MB, free: 4.277 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.0001316/0.2808, allocations: 115.2 kB / 422.9 MB, free: 4.152 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006584/0.2814, allocations: 323.5 kB / 423.2 MB, free: 3.824 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.514e-06/0.2815, allocations: 3.938 kB / 423.2 MB, free: 3.82 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002948/0.2818, allocations: 127.9 kB / 423.3 MB, free: 3.695 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003604/0.2821, allocations: 56.27 kB / 423.4 MB, free: 3.645 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001069/0.2832, allocations: 0.632 MB / 424 MB, free: 2.98 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003102/0.2835, allocations: 0.7875 MB / 424.8 MB, free: 2.16 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001127/0.2837, allocations: 39.42 kB / 424.8 MB, free: 2.121 MB / 334.1 MB Notification: Performance of SimCode: time 3.5e-07/0.2837, allocations: 0 / 424.8 MB, free: 2.121 MB / 334.1 MB Notification: Performance of Templates: time 0.00625/0.2899, allocations: 4.312 MB / 429.1 MB, free: 13.82 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)