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.00177/0.00177, allocations: 113.4 kB / 17.99 MB, free: 5.395 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002317/0.002317, allocations: 205.8 kB / 18.92 MB, free: 4.465 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.605/2.605, allocations: 227.4 MB / 247.1 MB, free: 10.69 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002367/0.002367, allocations: 60.28 kB / 307.1 MB, free: 0.9453 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1741/0.1765, allocations: 50.54 MB / 357.6 MB, free: 14.4 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemoSignalCharacteristic): time 0.006246/0.1828, allocations: 2.319 MB / 360 MB, free: 12.06 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003043/0.1859, allocations: 0.9348 MB / 360.9 MB, free: 11.12 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003391/0.1863, allocations: 7.938 kB / 360.9 MB, free: 11.11 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002262/0.1866, allocations: 23.73 kB / 360.9 MB, free: 11.09 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006386/0.1872, allocations: 83.53 kB / 361 MB, free: 11.01 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008117/0.1881, allocations: 147.8 kB / 361.1 MB, free: 10.86 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008753/0.189, allocations: 426.8 kB / 361.6 MB, free: 10.45 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003976/0.1894, allocations: 119.5 kB / 361.7 MB, free: 10.33 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005101/0.1899, allocations: 187.2 kB / 361.9 MB, free: 10.15 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004634/0.1904, allocations: 191.1 kB / 362 MB, free: 9.961 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.824e-05/0.1905, allocations: 40 kB / 362.1 MB, free: 9.922 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000165/0.1907, allocations: 48 kB / 362.1 MB, free: 9.875 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001587/0.1909, allocations: 95.66 kB / 362.2 MB, free: 9.781 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002763/0.1912, allocations: 183 kB / 362.4 MB, free: 9.602 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005842/0.1918, allocations: 303.6 kB / 362.7 MB, free: 9.305 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.671e-06/0.1918, allocations: 0 / 362.7 MB, free: 9.305 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.184e-06/0.1918, allocations: 4 kB / 362.7 MB, free: 9.301 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.277e-06/0.1918, allocations: 0 / 362.7 MB, free: 9.301 MB / 302.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.002601/0.1945, allocations: 0.7248 MB / 363.4 MB, free: 8.512 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.904e-05/0.1945, allocations: 8.031 kB / 363.4 MB, free: 8.504 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005661/0.1951, allocations: 64.44 kB / 363.5 MB, free: 8.441 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009755/0.1961, allocations: 384.3 kB / 363.9 MB, free: 8.031 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.432e-05/0.1962, allocations: 20.81 kB / 363.9 MB, free: 8.012 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.652e-05/0.1963, allocations: 28.36 kB / 363.9 MB, free: 7.984 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001012/0.1973, allocations: 259.5 kB / 364.2 MB, free: 7.723 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.31e-05/0.1974, allocations: 0 / 364.2 MB, free: 7.723 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.263e-05/0.1974, allocations: 8 kB / 364.2 MB, free: 7.715 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.442e-05/0.1974, allocations: 8 kB / 364.2 MB, free: 7.707 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001009/0.1985, allocations: 185.5 kB / 364.4 MB, free: 7.527 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002455/0.2009, allocations: 0.7945 MB / 365.2 MB, free: 6.68 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009799/0.202, allocations: 194.7 kB / 365.4 MB, free: 6.48 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005447/0.2025, allocations: 88.8 kB / 365.4 MB, free: 6.391 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.118e-05/0.2026, allocations: 4 kB / 365.5 MB, free: 6.387 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008411/0.2035, allocations: 240.9 kB / 365.7 MB, free: 6.137 MB / 302.1 MB Notification: Performance of pre-optimization done (n=28): time 4.268e-06/0.2035, allocations: 0 / 365.7 MB, free: 6.137 MB / 302.1 MB Notification: Performance of matching and sorting (n=28): time 0.001821/0.2053, allocations: 388.9 kB / 366.1 MB, free: 5.754 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.192e-05/0.2054, allocations: 59.41 kB / 366.1 MB, free: 5.684 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006429/0.2061, allocations: 320.5 kB / 366.4 MB, free: 5.359 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.995e-05/0.2062, allocations: 37.7 kB / 366.5 MB, free: 5.316 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002038/0.2064, allocations: 184.6 kB / 366.7 MB, free: 5.133 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001197/0.2065, allocations: 82.81 kB / 366.7 MB, free: 5.051 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001989/0.2067, allocations: 74.05 kB / 366.8 MB, free: 4.969 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001813/0.2069, allocations: 342.8 kB / 367.1 MB, free: 4.625 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004912/0.2074, allocations: 108.7 kB / 367.2 MB, free: 4.52 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006105/0.2081, allocations: 238.5 kB / 367.5 MB, free: 4.227 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001162/0.2092, allocations: 373.5 kB / 367.8 MB, free: 3.797 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.063e-06/0.2093, allocations: 4 kB / 367.9 MB, free: 3.793 MB / 302.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001495/0.2108, allocations: 434.7 kB / 368.3 MB, free: 3.355 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.534e-05/0.2109, allocations: 33.7 kB / 368.3 MB, free: 3.316 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.96e-05/0.2109, allocations: 7.938 kB / 368.3 MB, free: 3.309 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.086e-05/0.211, allocations: 8 kB / 368.3 MB, free: 3.301 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005855/0.2116, allocations: 71.89 kB / 368.4 MB, free: 3.23 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.205e-05/0.2116, allocations: 7.938 kB / 368.4 MB, free: 3.223 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005594/0.2122, allocations: 43.75 kB / 368.4 MB, free: 3.18 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.37e-05/0.2123, allocations: 16 kB / 368.5 MB, free: 3.164 MB / 302.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.0003973/0.2128, allocations: 175.4 kB / 368.6 MB, free: 2.98 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001349/0.2129, allocations: 39.47 kB / 368.7 MB, free: 2.941 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001372/0.2143, allocations: 314.9 kB / 369 MB, free: 2.629 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.222e-05/0.2143, allocations: 4 kB / 369 MB, free: 2.625 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.678e-06/0.2144, allocations: 0 / 369 MB, free: 2.625 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.055e-06/0.2144, allocations: 0 / 369 MB, free: 2.625 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006829/0.2151, allocations: 357.2 kB / 369.3 MB, free: 2.227 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.977e-06/0.2151, allocations: 0 / 369.3 MB, free: 2.227 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004822/0.2156, allocations: 39.97 kB / 369.4 MB, free: 2.188 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.747e-05/0.2156, allocations: 4 kB / 369.4 MB, free: 2.184 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.79e-05/0.2157, allocations: 11.92 kB / 369.4 MB, free: 2.172 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.375e-06/0.2157, allocations: 4 kB / 369.4 MB, free: 2.168 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.505e-06/0.2157, allocations: 4 kB / 369.4 MB, free: 2.164 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001769/0.2175, allocations: 449.2 kB / 369.8 MB, free: 1.703 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001452/0.2177, allocations: 108.7 kB / 369.9 MB, free: 1.578 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001081/0.2178, allocations: 12.05 kB / 369.9 MB, free: 1.566 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004294/0.2183, allocations: 24.17 kB / 370 MB, free: 1.543 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001418/0.2184, allocations: 31.97 kB / 370 MB, free: 1.512 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.078e-05/0.2185, allocations: 11.98 kB / 370 MB, free: 1.5 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004521/0.219, allocations: 231 kB / 370.2 MB, free: 1.277 MB / 302.1 MB Notification: Performance of sort global known variables: time 5.51e-07/0.219, allocations: 3.938 kB / 370.2 MB, free: 1.273 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000685/0.2197, allocations: 71.84 kB / 370.3 MB, free: 1.203 MB / 302.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.0002395/0.2199, allocations: 123.2 kB / 370.4 MB, free: 1.074 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001459/0.2214, allocations: 335.9 kB / 370.8 MB, free: 0.7344 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.06e-06/0.2214, allocations: 4 kB / 370.8 MB, free: 0.7305 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000549/0.222, allocations: 131.9 kB / 370.9 MB, free: 0.6016 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007744/0.2228, allocations: 59.56 kB / 371 MB, free: 0.5469 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2414/0.4642, allocations: 0.7426 MB / 371.7 MB, free: 20.19 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004167/0.4647, allocations: 0.7917 MB / 372.5 MB, free: 19.49 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003244/0.465, allocations: 36.59 kB / 372.5 MB, free: 19.48 MB / 302.1 MB Notification: Performance of SimCode: time 1.884e-06/0.465, allocations: 5.766 kB / 372.5 MB, free: 19.48 MB / 302.1 MB Notification: Performance of Templates: time 0.01505/0.4801, allocations: 4.267 MB / 376.8 MB, free: 19.24 MB / 302.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)