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.001135/0.001135, allocations: 196.8 kB / 18.1 MB, free: 3.738 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.42/1.42, allocations: 226.5 MB / 245.4 MB, free: 8.219 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007815/0.0007815, allocations: 102.3 kB / 297.5 MB, free: 6.898 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002298/0.0002297, allocations: 4 kB / 358.1 MB, free: 10.29 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2262/0.2264, allocations: 51.29 MB / 409.4 MB, free: 27.64 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09702/0.3235, allocations: 79.46 MB / 488.8 MB, free: 12.08 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000207/0.3238, allocations: 74.73 kB / 488.9 MB, free: 12.01 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0185/0.3423, allocations: 5.979 MB / 494.9 MB, free: 6.016 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.395e-06/0.3423, allocations: 0 / 494.9 MB, free: 6.016 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.564e-05/0.3424, allocations: 8 kB / 494.9 MB, free: 6.008 MB / 362.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.001315/0.3437, allocations: 0.6669 MB / 495.5 MB, free: 5.281 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.349e-05/0.3437, allocations: 8.031 kB / 495.6 MB, free: 5.273 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003171/0.3441, allocations: 68.44 kB / 495.6 MB, free: 5.207 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005528/0.3446, allocations: 364.5 kB / 496 MB, free: 4.816 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.177e-05/0.3447, allocations: 24.81 kB / 496 MB, free: 4.793 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.247e-05/0.3447, allocations: 32.36 kB / 496 MB, free: 4.762 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005198/0.3453, allocations: 263.7 kB / 496.3 MB, free: 4.496 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.002e-05/0.3453, allocations: 8.094 kB / 496.3 MB, free: 4.488 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.281e-05/0.3453, allocations: 11.94 kB / 496.3 MB, free: 4.477 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.082e-05/0.3453, allocations: 8 kB / 496.3 MB, free: 4.469 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005087/0.3459, allocations: 209.6 kB / 496.5 MB, free: 4.266 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00139/0.3473, allocations: 0.8062 MB / 497.3 MB, free: 3.406 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005031/0.3478, allocations: 207.1 kB / 497.5 MB, free: 3.195 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002362/0.348, allocations: 104.8 kB / 497.6 MB, free: 3.09 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.686e-05/0.3481, allocations: 3.984 kB / 497.6 MB, free: 3.086 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004744/0.3486, allocations: 253 kB / 497.9 MB, free: 2.824 MB / 362.7 MB Notification: Performance of pre-optimization done (n=28): time 3.326e-06/0.3486, allocations: 0 / 497.9 MB, free: 2.824 MB / 362.7 MB Notification: Performance of matching and sorting (n=28): time 0.0009403/0.3495, allocations: 411.2 kB / 498.3 MB, free: 2.418 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.239e-05/0.3496, allocations: 55.41 kB / 498.3 MB, free: 2.352 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003625/0.3499, allocations: 324.4 kB / 498.7 MB, free: 2.027 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.211e-05/0.35, allocations: 33.7 kB / 498.7 MB, free: 1.988 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001409/0.3501, allocations: 184.6 kB / 498.9 MB, free: 1.805 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.068e-05/0.3502, allocations: 82.89 kB / 499 MB, free: 1.723 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.743e-05/0.3502, allocations: 8 kB / 499 MB, free: 1.715 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001307/0.3504, allocations: 346.8 kB / 499.3 MB, free: 1.367 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002733/0.3507, allocations: 108.7 kB / 499.4 MB, free: 1.258 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003663/0.351, allocations: 254.3 kB / 499.7 MB, free: 0.9492 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006739/0.3517, allocations: 397.3 kB / 0.4883 GB, free: 0.4961 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.741e-06/0.3517, allocations: 0 / 0.4883 GB, free: 0.4961 MB / 362.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.000829/0.3526, allocations: 450.8 kB / 0.4888 GB, free: 44 kB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.967e-05/0.3526, allocations: 33.7 kB / 0.4888 GB, free: 4 kB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.293e-05/0.3527, allocations: 12.05 kB / 0.4888 GB, free: 15.99 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.977e-05/0.3527, allocations: 8 kB / 0.4888 GB, free: 15.98 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002723/0.353, allocations: 67.91 kB / 0.4889 GB, free: 15.92 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.383e-05/0.353, allocations: 11.92 kB / 0.4889 GB, free: 15.91 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002772/0.3533, allocations: 59.61 kB / 0.4889 GB, free: 15.85 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.27e-05/0.3533, allocations: 19.98 kB / 0.489 GB, free: 15.83 MB / 378.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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001993/0.3535, allocations: 167.5 kB / 0.4891 GB, free: 15.66 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.586e-05/0.3536, allocations: 35.56 kB / 0.4891 GB, free: 15.62 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007052/0.3543, allocations: 330.9 kB / 0.4895 GB, free: 15.29 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.981e-06/0.3543, allocations: 4 kB / 0.4895 GB, free: 15.29 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-06/0.3543, allocations: 0 / 0.4895 GB, free: 15.29 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.502e-06/0.3543, allocations: 0 / 0.4895 GB, free: 15.29 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000335/0.3547, allocations: 369.2 kB / 0.4898 GB, free: 14.88 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.196e-06/0.3547, allocations: 0 / 0.4898 GB, free: 14.88 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002351/0.3549, allocations: 55.83 kB / 0.4899 GB, free: 14.82 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.196e-06/0.355, allocations: 0 / 0.4899 GB, free: 14.82 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.747e-05/0.355, allocations: 8 kB / 0.4899 GB, free: 14.81 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.166e-06/0.355, allocations: 4 kB / 0.4899 GB, free: 14.81 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.355, allocations: 0 / 0.4899 GB, free: 14.81 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009979/0.356, allocations: 486.2 kB / 0.4903 GB, free: 14.31 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.001e-05/0.3561, allocations: 116.6 kB / 0.4905 GB, free: 14.18 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.531e-05/0.3562, allocations: 12.05 kB / 0.4905 GB, free: 14.17 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00022/0.3564, allocations: 27.97 kB / 0.4905 GB, free: 14.14 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.27e-05/0.3565, allocations: 31.91 kB / 0.4905 GB, free: 14.11 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.449e-05/0.3565, allocations: 11.98 kB / 0.4905 GB, free: 14.1 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.000238/0.3568, allocations: 223.1 kB / 0.4908 GB, free: 13.88 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.91e-07/0.3568, allocations: 0 / 0.4908 GB, free: 13.88 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003815/0.3572, allocations: 91.73 kB / 0.4908 GB, free: 13.79 MB / 378.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 (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.000188/0.3574, allocations: 123.2 kB / 0.491 GB, free: 13.66 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.000673/0.3581, allocations: 343 kB / 0.4913 GB, free: 13.32 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.3581, allocations: 0 / 0.4913 GB, free: 13.32 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003006/0.3584, allocations: 136.9 kB / 0.4914 GB, free: 13.18 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003527/0.3587, allocations: 49 kB / 0.4915 GB, free: 13.14 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001182/0.3599, allocations: 0.7087 MB / 0.4922 GB, free: 12.4 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004099/0.3604, allocations: 0.7879 MB / 0.4929 GB, free: 11.59 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001956/0.3606, allocations: 42.97 kB / 0.493 GB, free: 11.54 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.81e-05/0.3607, allocations: 39.36 kB / 0.493 GB, free: 11.5 MB / 378.7 MB Notification: Performance of SimCode: time 2.4e-07/0.3607, allocations: 0 / 0.493 GB, free: 11.5 MB / 378.7 MB Notification: Performance of Templates: time 0.007263/0.3679, allocations: 3.17 MB / 0.4961 GB, free: 8.352 MB / 378.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)