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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00129/0.00129, allocations: 207.3 kB / 17.99 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.474/1.474, allocations: 226.7 MB / 245.5 MB, free: 6.969 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001193/0.001193, allocations: 101.8 kB / 296.7 MB, free: 6.473 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001017/0.001018, allocations: 47.92 kB / 356.6 MB, free: 10.6 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2592/0.2602, allocations: 50.45 MB / 407 MB, free: 27.8 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemoSignalCharacteristic): time 0.003912/0.2642, allocations: 2.32 MB / 409.4 MB, free: 25.48 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001428/0.2657, allocations: 0.8991 MB / 410.3 MB, free: 24.58 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001767/0.2659, allocations: 7.938 kB / 410.3 MB, free: 24.57 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001403/0.266, allocations: 26.19 kB / 410.3 MB, free: 24.55 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000356/0.2664, allocations: 79.55 kB / 410.4 MB, free: 24.47 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002825/0.2667, allocations: 138.8 kB / 410.5 MB, free: 24.34 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002853/0.267, allocations: 398.8 kB / 410.9 MB, free: 23.95 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002443/0.2672, allocations: 119.5 kB / 411 MB, free: 23.83 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002794/0.2675, allocations: 159.3 kB / 411.2 MB, free: 23.68 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002067/0.2677, allocations: 179.1 kB / 411.3 MB, free: 23.5 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.641e-05/0.2678, allocations: 23.94 kB / 411.4 MB, free: 23.48 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.004e-05/0.2679, allocations: 35.97 kB / 411.4 MB, free: 23.44 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.481e-05/0.268, allocations: 75.62 kB / 411.5 MB, free: 23.37 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001401/0.2681, allocations: 167 kB / 411.6 MB, free: 23.2 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003333/0.2685, allocations: 376.3 kB / 412 MB, free: 22.84 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.925e-06/0.2685, allocations: 0 / 412 MB, free: 22.84 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.014e-06/0.2685, allocations: 0 / 412 MB, free: 22.84 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.865e-06/0.2685, allocations: 0 / 412 MB, free: 22.84 MB / 298.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.001611/0.2701, allocations: 0.7171 MB / 412.7 MB, free: 22.06 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.834e-05/0.2702, allocations: 8.031 kB / 412.7 MB, free: 22.05 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003529/0.2706, allocations: 68.44 kB / 412.8 MB, free: 21.98 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006148/0.2712, allocations: 376.3 kB / 413.2 MB, free: 21.58 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.309e-05/0.2712, allocations: 16.81 kB / 413.2 MB, free: 21.56 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.913e-05/0.2713, allocations: 32.31 kB / 413.2 MB, free: 21.53 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004948/0.2718, allocations: 251.5 kB / 413.5 MB, free: 21.28 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.393e-05/0.2718, allocations: 7.984 kB / 413.5 MB, free: 21.27 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.228e-05/0.2719, allocations: 8 kB / 413.5 MB, free: 21.27 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.007e-05/0.2719, allocations: 8 kB / 413.5 MB, free: 21.26 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004559/0.2724, allocations: 185.6 kB / 413.7 MB, free: 21.07 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001252/0.2736, allocations: 0.7905 MB / 414.5 MB, free: 20.23 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004794/0.2741, allocations: 187.3 kB / 414.6 MB, free: 20.04 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002089/0.2743, allocations: 84.81 kB / 414.7 MB, free: 19.96 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.863e-05/0.2744, allocations: 8 kB / 414.7 MB, free: 19.95 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004137/0.2748, allocations: 248.8 kB / 415 MB, free: 19.69 MB / 298.7 MB Notification: Performance of pre-optimization done (n=28): time 2.385e-06/0.2748, allocations: 0 / 415 MB, free: 19.69 MB / 298.7 MB Notification: Performance of matching and sorting (n=28): time 0.0008411/0.2756, allocations: 371.2 kB / 415.3 MB, free: 19.32 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.245e-05/0.2757, allocations: 67.38 kB / 415.4 MB, free: 19.25 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002986/0.276, allocations: 308.6 kB / 415.7 MB, free: 18.94 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.482e-05/0.2761, allocations: 41.7 kB / 415.7 MB, free: 18.89 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001185/0.2762, allocations: 196.4 kB / 415.9 MB, free: 18.7 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.475e-05/0.2762, allocations: 78.84 kB / 416 MB, free: 18.62 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001014/0.2764, allocations: 78.05 kB / 416.1 MB, free: 18.53 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001/0.2765, allocations: 338.8 kB / 416.4 MB, free: 18.19 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002472/0.2767, allocations: 104.7 kB / 416.5 MB, free: 18.09 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003165/0.277, allocations: 238.3 kB / 416.8 MB, free: 17.8 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005552/0.2776, allocations: 385.3 kB / 417.1 MB, free: 17.36 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.887e-06/0.2776, allocations: 0 / 417.1 MB, free: 17.36 MB / 298.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0007135/0.2783, allocations: 426.2 kB / 417.5 MB, free: 16.93 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.327e-05/0.2784, allocations: 34.23 kB / 417.6 MB, free: 16.89 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.628e-06/0.2784, allocations: 7.938 kB / 417.6 MB, free: 16.88 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.346e-05/0.2784, allocations: 12 kB / 417.6 MB, free: 16.87 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002574/0.2787, allocations: 75.83 kB / 417.7 MB, free: 16.79 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.178e-05/0.2787, allocations: 4 kB / 417.7 MB, free: 16.79 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002434/0.279, allocations: 39.77 kB / 417.7 MB, free: 16.75 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.719e-05/0.279, allocations: 19.98 kB / 417.7 MB, free: 16.73 MB / 298.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 (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.0001405/0.2792, allocations: 168.9 kB / 417.9 MB, free: 16.56 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.743e-05/0.2792, allocations: 47.45 kB / 417.9 MB, free: 16.51 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006005/0.2798, allocations: 306.9 kB / 418.2 MB, free: 16.21 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.31e-06/0.2798, allocations: 0 / 418.2 MB, free: 16.21 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.55e-06/0.2798, allocations: 7.938 kB / 418.3 MB, free: 16.2 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.871e-06/0.2799, allocations: 8.016 kB / 418.3 MB, free: 16.19 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002558/0.2801, allocations: 357.3 kB / 418.6 MB, free: 15.79 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.325e-06/0.2801, allocations: 3.984 kB / 418.6 MB, free: 15.79 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002014/0.2803, allocations: 35.97 kB / 418.7 MB, free: 15.75 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.375e-06/0.2803, allocations: 0 / 418.7 MB, free: 15.75 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.411e-05/0.2804, allocations: 8 kB / 418.7 MB, free: 15.75 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.784e-06/0.2804, allocations: 0 / 418.7 MB, free: 15.75 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.2804, allocations: 7.984 kB / 418.7 MB, free: 15.74 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002726/0.2831, allocations: 2.079 MB / 420.7 MB, free: 13.52 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.969e-05/0.2832, allocations: 112.7 kB / 420.9 MB, free: 13.39 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.164e-05/0.2832, allocations: 12.06 kB / 420.9 MB, free: 13.38 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002025/0.2834, allocations: 15.97 kB / 420.9 MB, free: 13.36 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.209e-05/0.2835, allocations: 31.91 kB / 420.9 MB, free: 13.33 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.274e-05/0.2836, allocations: 11.98 kB / 420.9 MB, free: 13.32 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001848/0.2838, allocations: 227.1 kB / 421.1 MB, free: 13.1 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2838, allocations: 0 / 421.1 MB, free: 13.1 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004068/0.2842, allocations: 95.73 kB / 421.2 MB, free: 13 MB / 298.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) * 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.0001181/0.2843, allocations: 111.2 kB / 421.4 MB, free: 12.89 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000602/0.2849, allocations: 327.8 kB / 421.7 MB, free: 12.55 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.627e-06/0.2849, allocations: 4.312 kB / 421.7 MB, free: 12.55 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002544/0.2852, allocations: 119.8 kB / 421.8 MB, free: 12.43 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003403/0.2855, allocations: 51.86 kB / 421.8 MB, free: 12.39 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001148/0.2867, allocations: 0.9191 MB / 422.8 MB, free: 11.43 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002019/0.2869, allocations: 0.7919 MB / 423.6 MB, free: 10.61 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001806/0.2871, allocations: 54.92 kB / 423.6 MB, free: 10.56 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.981e-05/0.2872, allocations: 31.44 kB / 423.6 MB, free: 10.53 MB / 298.7 MB Notification: Performance of SimCode: time 3.11e-07/0.2872, allocations: 0 / 423.6 MB, free: 10.53 MB / 298.7 MB Notification: Performance of Templates: time 0.006218/0.2934, allocations: 3.518 MB / 427.2 MB, free: 7.035 MB / 298.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)