Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_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_cpp_Modelica.Blocks.Examples.DemoSignalCharacteristic") translateModel(Modelica.Blocks.Examples.DemoSignalCharacteristic,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Blocks.Examples.DemoSignalCharacteristic") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001131/0.001131, allocations: 203.1 kB / 18.07 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.24/1.24, allocations: 226.5 MB / 245.4 MB, free: 6.488 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007831/0.0007831, allocations: 100.5 kB / 297.4 MB, free: 6.66 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002121/0.0002121, allocations: 4 kB / 357.4 MB, free: 10.73 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1886/0.1889, allocations: 51.3 MB / 408.7 MB, free: 27.67 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08643/0.2754, allocations: 79.45 MB / 488.1 MB, free: 12.11 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001941/0.2756, allocations: 63.97 kB / 488.2 MB, free: 12.05 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01871/0.2943, allocations: 5.98 MB / 494.2 MB, free: 6.062 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.533e-06/0.2944, allocations: 0 / 494.2 MB, free: 6.062 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.804e-05/0.2944, allocations: 8 kB / 494.2 MB, free: 6.055 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.001067/0.2955, allocations: 0.6708 MB / 494.8 MB, free: 5.324 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.375e-05/0.2955, allocations: 8.031 kB / 494.8 MB, free: 5.316 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002667/0.2958, allocations: 76.44 kB / 494.9 MB, free: 5.242 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005186/0.2963, allocations: 364.4 kB / 495.3 MB, free: 4.852 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.744e-05/0.2963, allocations: 20.81 kB / 495.3 MB, free: 4.832 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.977e-05/0.2964, allocations: 32.36 kB / 495.3 MB, free: 4.801 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005079/0.2969, allocations: 263.7 kB / 495.6 MB, free: 4.535 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.58e-05/0.2969, allocations: 8.094 kB / 495.6 MB, free: 4.527 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.186e-05/0.297, allocations: 15.94 kB / 495.6 MB, free: 4.512 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.092e-06/0.297, allocations: 4 kB / 495.6 MB, free: 4.508 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004828/0.2975, allocations: 213.6 kB / 495.8 MB, free: 4.301 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001215/0.2987, allocations: 0.8023 MB / 496.6 MB, free: 3.445 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004555/0.2992, allocations: 207.2 kB / 496.8 MB, free: 3.234 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002342/0.2994, allocations: 104.8 kB / 496.9 MB, free: 3.129 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.787e-05/0.2995, allocations: 4 kB / 496.9 MB, free: 3.125 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004418/0.2999, allocations: 252.9 kB / 497.2 MB, free: 2.863 MB / 362.7 MB Notification: Performance of pre-optimization done (n=28): time 2.074e-06/0.2999, allocations: 0 / 497.2 MB, free: 2.863 MB / 362.7 MB Notification: Performance of matching and sorting (n=28): time 0.0009212/0.3008, allocations: 411.2 kB / 497.6 MB, free: 2.457 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.492e-05/0.3009, allocations: 55.41 kB / 497.6 MB, free: 2.391 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003177/0.3012, allocations: 328.4 kB / 497.9 MB, free: 2.062 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.303e-05/0.3013, allocations: 33.7 kB / 498 MB, free: 2.023 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.978e-05/0.3014, allocations: 180.6 kB / 498.2 MB, free: 1.844 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.122e-05/0.3014, allocations: 82.89 kB / 498.2 MB, free: 1.762 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.914e-05/0.3015, allocations: 8 kB / 498.2 MB, free: 1.754 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001091/0.3016, allocations: 346.8 kB / 498.6 MB, free: 1.406 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002856/0.3019, allocations: 108.7 kB / 498.7 MB, free: 1.297 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003388/0.3022, allocations: 254.3 kB / 498.9 MB, free: 0.9883 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005863/0.3028, allocations: 394.5 kB / 499.3 MB, free: 0.5352 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.277e-06/0.3028, allocations: 0 / 499.3 MB, free: 0.5352 MB / 362.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.000762/0.3036, allocations: 453.2 kB / 499.8 MB, free: 84 kB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.1e-05/0.3036, allocations: 37.69 kB / 499.8 MB, free: 40 kB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.544e-06/0.3036, allocations: 4 kB / 499.8 MB, free: 36 kB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.557e-05/0.3037, allocations: 8 kB / 499.8 MB, free: 28 kB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002785/0.3039, allocations: 76.11 kB / 499.9 MB, free: 15.95 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.101e-05/0.304, allocations: 7.938 kB / 499.9 MB, free: 15.95 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002675/0.3042, allocations: 51.67 kB / 499.9 MB, free: 15.89 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.749e-05/0.3043, allocations: 16 kB / 500 MB, free: 15.88 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.000151/0.3044, allocations: 171.5 kB / 0.4884 GB, free: 15.7 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.523e-05/0.3045, allocations: 35.56 kB / 0.4884 GB, free: 15.67 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006867/0.3052, allocations: 330.8 kB / 0.4888 GB, free: 15.34 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.629e-06/0.3052, allocations: 4 kB / 0.4888 GB, free: 15.33 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.611e-06/0.3052, allocations: 4.062 kB / 0.4888 GB, free: 15.33 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.168e-06/0.3052, allocations: 0 / 0.4888 GB, free: 15.33 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003056/0.3055, allocations: 361.2 kB / 0.4891 GB, free: 14.93 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.015e-06/0.3055, allocations: 7.984 kB / 0.4891 GB, free: 14.92 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002328/0.3058, allocations: 55.84 kB / 0.4892 GB, free: 14.86 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.285e-06/0.3058, allocations: 3.938 kB / 0.4892 GB, free: 14.86 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.565e-05/0.3058, allocations: 8 kB / 0.4892 GB, free: 14.85 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.913e-06/0.3058, allocations: 0 / 0.4892 GB, free: 14.85 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.946e-06/0.3058, allocations: 3.984 kB / 0.4892 GB, free: 14.85 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000912/0.3067, allocations: 486.2 kB / 0.4896 GB, free: 14.35 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.099e-05/0.3068, allocations: 112.6 kB / 0.4898 GB, free: 14.22 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.28e-05/0.3069, allocations: 12.06 kB / 0.4898 GB, free: 14.21 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002155/0.3071, allocations: 27.97 kB / 0.4898 GB, free: 14.18 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.805e-05/0.3072, allocations: 28 kB / 0.4898 GB, free: 14.16 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.294e-05/0.3072, allocations: 11.98 kB / 0.4898 GB, free: 14.14 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.000207/0.3074, allocations: 227 kB / 0.4901 GB, free: 13.93 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3074, allocations: 4 kB / 0.4901 GB, free: 13.92 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003248/0.3078, allocations: 87.73 kB / 0.4901 GB, free: 13.84 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.0001407/0.3079, allocations: 123.2 kB / 0.4903 GB, free: 13.71 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0006477/0.3086, allocations: 344 kB / 0.4906 GB, free: 13.36 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.3086, allocations: 0 / 0.4906 GB, free: 13.36 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002895/0.3089, allocations: 139.9 kB / 0.4907 GB, free: 13.22 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003171/0.3092, allocations: 51.23 kB / 0.4908 GB, free: 13.18 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009737/0.3102, allocations: 0.7416 MB / 0.4915 GB, free: 12.4 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002738/0.3105, allocations: 0.7879 MB / 0.4923 GB, free: 11.59 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001038/0.3106, allocations: 35.42 kB / 0.4923 GB, free: 11.55 MB / 378.7 MB Notification: Performance of SimCode: time 2.51e-07/0.3106, allocations: 0 / 0.4923 GB, free: 11.55 MB / 378.7 MB Notification: Performance of Templates: time 0.005392/0.316, allocations: 4.175 MB / 0.4964 GB, free: 7.391 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Blocks.Examples.DemoSignalCharacteristic.makefile (rm -f Modelica_trunk_cpp_Modelica.Blocks.Examples.DemoSignalCharacteristic.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Blocks.Examples.DemoSignalCharacteristic.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Blocks.Examples.DemoSignalCharacteristic.pipe >> ../files/Modelica_trunk_cpp_Modelica.Blocks.Examples.DemoSignalCharacteristic.sim & ./Modelica_trunk_cpp_Modelica.Blocks.Examples.DemoSignalCharacteristic --alarm=480 > Modelica_trunk_cpp_Modelica.Blocks.Examples.DemoSignalCharacteristic.pipe 2>&1)