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.001375/0.001375, allocations: 117.2 kB / 17.79 MB, free: 5.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001653/0.001653, allocations: 200.6 kB / 18.73 MB, free: 4.328 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.529/1.529, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001191/0.001191, allocations: 63.89 kB / 358.7 MB, free: 12.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.332/0.3332, allocations: 50.54 MB / 409.2 MB, free: 1.586 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemoSignalCharacteristic): time 0.003985/0.3373, allocations: 2.282 MB / 411.5 MB, free: 15.3 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001956/0.3393, allocations: 0.9425 MB / 412.5 MB, free: 14.35 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001684/0.3395, allocations: 7.938 kB / 412.5 MB, free: 14.34 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001687/0.3397, allocations: 31.55 kB / 412.5 MB, free: 14.31 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004113/0.3401, allocations: 115.2 kB / 412.6 MB, free: 14.19 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004006/0.3405, allocations: 171.6 kB / 412.8 MB, free: 14.02 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004831/0.341, allocations: 426.8 kB / 413.2 MB, free: 13.61 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002681/0.3413, allocations: 127.5 kB / 413.3 MB, free: 13.48 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003022/0.3416, allocations: 175.3 kB / 413.5 MB, free: 13.3 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000265/0.3419, allocations: 191.1 kB / 413.7 MB, free: 13.12 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.934e-05/0.3419, allocations: 36 kB / 413.7 MB, free: 13.08 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001154/0.342, allocations: 59.98 kB / 413.8 MB, free: 13.02 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001036/0.3422, allocations: 99.61 kB / 413.9 MB, free: 12.93 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001921/0.3424, allocations: 187 kB / 414.1 MB, free: 12.74 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004652/0.3428, allocations: 411.7 kB / 414.5 MB, free: 12.34 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/0.3428, allocations: 0 / 414.5 MB, free: 12.34 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.3429, allocations: 0 / 414.5 MB, free: 12.34 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.664e-06/0.3429, allocations: 3.938 kB / 414.5 MB, free: 12.34 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.001633/0.3445, allocations: 0.7249 MB / 415.2 MB, free: 11.56 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.511e-05/0.3446, allocations: 8.031 kB / 415.2 MB, free: 11.55 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003461/0.3449, allocations: 64.44 kB / 415.3 MB, free: 11.49 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006377/0.3456, allocations: 380.3 kB / 415.6 MB, free: 11.08 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.195e-05/0.3456, allocations: 20.81 kB / 415.7 MB, free: 11.06 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.935e-05/0.3457, allocations: 28.38 kB / 415.7 MB, free: 11.03 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005466/0.3462, allocations: 259.4 kB / 415.9 MB, free: 10.78 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.285e-05/0.3463, allocations: 7.906 kB / 415.9 MB, free: 10.77 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.406e-05/0.3463, allocations: 12 kB / 416 MB, free: 10.76 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.01e-05/0.3463, allocations: 11.94 kB / 416 MB, free: 10.75 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004861/0.3468, allocations: 181.6 kB / 416.1 MB, free: 10.57 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001458/0.3483, allocations: 0.7789 MB / 416.9 MB, free: 9.738 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005115/0.3488, allocations: 194.7 kB / 417.1 MB, free: 9.539 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002256/0.349, allocations: 88.8 kB / 417.2 MB, free: 9.449 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.405e-05/0.3491, allocations: 4 kB / 417.2 MB, free: 9.445 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000477/0.3496, allocations: 245 kB / 417.4 MB, free: 9.191 MB / 334.1 MB Notification: Performance of pre-optimization done (n=28): time 2.074e-06/0.3496, allocations: 3.938 kB / 417.4 MB, free: 9.188 MB / 334.1 MB Notification: Performance of matching and sorting (n=28): time 0.0009328/0.3505, allocations: 371.2 kB / 417.8 MB, free: 8.82 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.02e-05/0.3506, allocations: 63.41 kB / 417.9 MB, free: 8.746 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003752/0.351, allocations: 324.5 kB / 418.2 MB, free: 8.426 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.048e-05/0.351, allocations: 33.7 kB / 418.2 MB, free: 8.387 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002081/0.3512, allocations: 192.5 kB / 418.4 MB, free: 8.195 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.882e-05/0.3513, allocations: 82.83 kB / 418.5 MB, free: 8.113 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001279/0.3515, allocations: 74.05 kB / 418.6 MB, free: 8.031 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002107/0.3517, allocations: 342.8 kB / 418.9 MB, free: 7.688 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002734/0.3519, allocations: 108.7 kB / 419 MB, free: 7.582 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003931/0.3524, allocations: 234.5 kB / 419.2 MB, free: 7.293 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006557/0.353, allocations: 373.4 kB / 419.6 MB, free: 6.863 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.057e-06/0.353, allocations: 4 kB / 419.6 MB, free: 6.859 MB / 334.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0007938/0.3538, allocations: 426.8 kB / 420 MB, free: 6.43 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.762e-05/0.3539, allocations: 37.7 kB / 420.1 MB, free: 6.387 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.064e-05/0.3539, allocations: 4 kB / 420.1 MB, free: 6.383 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.535e-05/0.3539, allocations: 8 kB / 420.1 MB, free: 6.375 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002932/0.3542, allocations: 75.89 kB / 420.1 MB, free: 6.301 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.199e-05/0.3543, allocations: 4 kB / 420.1 MB, free: 6.297 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002811/0.3546, allocations: 51.66 kB / 420.2 MB, free: 6.246 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.907e-05/0.3546, allocations: 12 kB / 420.2 MB, free: 6.234 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.000211/0.3548, allocations: 179.4 kB / 420.4 MB, free: 6.047 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.448e-05/0.3549, allocations: 39.5 kB / 420.4 MB, free: 6.008 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007131/0.3556, allocations: 306.2 kB / 420.7 MB, free: 5.699 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5e-06/0.3556, allocations: 4 kB / 420.7 MB, free: 5.695 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.391e-06/0.3556, allocations: 0 / 420.7 MB, free: 5.695 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.824e-06/0.3556, allocations: 0 / 420.7 MB, free: 5.695 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003569/0.356, allocations: 373.1 kB / 421.1 MB, free: 5.281 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.853e-06/0.356, allocations: 0 / 421.1 MB, free: 5.281 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002309/0.3562, allocations: 39.91 kB / 421.1 MB, free: 5.242 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.553e-06/0.3563, allocations: 4 kB / 421.1 MB, free: 5.238 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.715e-05/0.3563, allocations: 7.984 kB / 421.1 MB, free: 5.23 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.637e-06/0.3563, allocations: 4 kB / 421.1 MB, free: 5.227 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.3563, allocations: 4 kB / 421.1 MB, free: 5.223 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009276/0.3572, allocations: 457.1 kB / 421.6 MB, free: 4.754 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.167e-05/0.3573, allocations: 108.7 kB / 421.7 MB, free: 4.629 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.148e-05/0.3574, allocations: 8.062 kB / 421.7 MB, free: 4.621 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002137/0.3576, allocations: 27.97 kB / 421.7 MB, free: 4.594 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.745e-05/0.3577, allocations: 27.91 kB / 421.8 MB, free: 4.566 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.778e-05/0.3578, allocations: 15.98 kB / 421.8 MB, free: 4.551 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002531/0.358, allocations: 231 kB / 422 MB, free: 4.324 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.358, allocations: 0 / 422 MB, free: 4.324 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003424/0.3584, allocations: 67.84 kB / 422.1 MB, free: 4.258 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.0001841/0.3586, allocations: 123.3 kB / 422.2 MB, free: 4.125 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0007234/0.3593, allocations: 319.1 kB / 422.5 MB, free: 3.805 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.3593, allocations: 0 / 422.5 MB, free: 3.805 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002751/0.3596, allocations: 131.9 kB / 422.6 MB, free: 3.676 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003713/0.36, allocations: 60.61 kB / 422.7 MB, free: 3.621 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001152/0.3611, allocations: 0.6062 MB / 423.3 MB, free: 2.988 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004104/0.3616, allocations: 0.7953 MB / 424.1 MB, free: 2.16 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001484/0.3617, allocations: 55.03 kB / 424.1 MB, free: 2.109 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.418e-05/0.3618, allocations: 31.42 kB / 424.2 MB, free: 2.078 MB / 334.1 MB Notification: Performance of SimCode: time 2.3e-07/0.3618, allocations: 0 / 424.2 MB, free: 2.078 MB / 334.1 MB Notification: Performance of Templates: time 0.007917/0.3698, allocations: 3.574 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)