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.0008525/0.0008527, allocations: 92.52 kB / 17.35 MB, free: 6.375 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0007673/0.0007673, allocations: 198.9 kB / 18.28 MB, free: 5.5 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.143/1.143, allocations: 227.7 MB / 246.8 MB, free: 11.29 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002432/0.0002432, allocations: 8 kB / 307.7 MB, free: 0.8164 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07723/0.07749, allocations: 51.51 MB / 359.2 MB, free: 13.3 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemoSignalCharacteristic): time 0.001866/0.0794, allocations: 1.964 MB / 361.2 MB, free: 11.33 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001187/0.0806, allocations: 0.9232 MB / 362.1 MB, free: 10.4 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001004/0.08071, allocations: 4 kB / 362.1 MB, free: 10.39 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 8.989e-05/0.08081, allocations: 27.72 kB / 362.1 MB, free: 10.37 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000267/0.08108, allocations: 87.16 kB / 362.2 MB, free: 10.29 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002561/0.08135, allocations: 147.8 kB / 362.4 MB, free: 10.14 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000307/0.08166, allocations: 398.8 kB / 362.8 MB, free: 9.75 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001892/0.08186, allocations: 119.5 kB / 362.9 MB, free: 9.637 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001978/0.08206, allocations: 139.3 kB / 363 MB, free: 9.5 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001935/0.08227, allocations: 167.1 kB / 363.2 MB, free: 9.336 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.452e-05/0.08231, allocations: 16 kB / 363.2 MB, free: 9.32 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.705e-05/0.08238, allocations: 24 kB / 363.2 MB, free: 9.297 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.256e-05/0.08245, allocations: 71.61 kB / 363.3 MB, free: 9.227 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001286/0.08259, allocations: 180.7 kB / 363.5 MB, free: 9.043 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002891/0.08288, allocations: 370.8 kB / 363.8 MB, free: 8.68 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.996e-06/0.08289, allocations: 0 / 363.8 MB, free: 8.68 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.0829, allocations: 0 / 363.8 MB, free: 8.68 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.42e-06/0.08291, allocations: 0 / 363.8 MB, free: 8.68 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.001113/0.08403, allocations: 0.6549 MB / 364.5 MB, free: 7.961 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.725e-05/0.08406, allocations: 12.03 kB / 364.5 MB, free: 7.949 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002525/0.08432, allocations: 68.45 kB / 364.6 MB, free: 7.883 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004547/0.08479, allocations: 380.3 kB / 364.9 MB, free: 7.477 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.213e-05/0.08482, allocations: 20.81 kB / 365 MB, free: 7.457 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.084e-05/0.08487, allocations: 32.36 kB / 365 MB, free: 7.426 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004815/0.08536, allocations: 271.4 kB / 365.3 MB, free: 7.152 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.371e-05/0.08538, allocations: 4 kB / 365.3 MB, free: 7.148 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.552e-05/0.08541, allocations: 4 kB / 365.3 MB, free: 7.145 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.486e-06/0.08543, allocations: 8 kB / 365.3 MB, free: 7.137 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004613/0.08589, allocations: 209.6 kB / 365.5 MB, free: 6.934 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001134/0.08704, allocations: 0.8101 MB / 366.3 MB, free: 6.07 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004462/0.08749, allocations: 218.6 kB / 366.5 MB, free: 5.848 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002224/0.08773, allocations: 96.8 kB / 366.6 MB, free: 5.75 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.065e-05/0.08776, allocations: 4 kB / 366.6 MB, free: 5.746 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004215/0.08818, allocations: 260.8 kB / 366.8 MB, free: 5.477 MB / 302.1 MB Notification: Performance of pre-optimization done (n=28): time 1.513e-06/0.0882, allocations: 4 kB / 366.9 MB, free: 5.473 MB / 302.1 MB Notification: Performance of matching and sorting (n=28): time 0.0008336/0.08903, allocations: 405.1 kB / 367.2 MB, free: 5.074 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.374e-05/0.08908, allocations: 59.39 kB / 367.3 MB, free: 5.004 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002851/0.08937, allocations: 316.6 kB / 367.6 MB, free: 4.684 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.299e-05/0.08941, allocations: 37.7 kB / 367.7 MB, free: 4.641 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000101/0.08951, allocations: 188.5 kB / 367.8 MB, free: 4.453 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.802e-05/0.08958, allocations: 86.89 kB / 367.9 MB, free: 4.367 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.327e-05/0.08964, allocations: 41.7 kB / 368 MB, free: 4.32 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000102/0.08975, allocations: 342.8 kB / 368.3 MB, free: 3.977 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002512/0.09, allocations: 108.7 kB / 368.4 MB, free: 3.867 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000307/0.09032, allocations: 246.5 kB / 368.6 MB, free: 3.566 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000553/0.09088, allocations: 394.5 kB / 369 MB, free: 3.113 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.896e-06/0.09089, allocations: 0 / 369 MB, free: 3.113 MB / 302.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0007159/0.09161, allocations: 457.2 kB / 369.5 MB, free: 2.656 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.018e-05/0.09165, allocations: 37.69 kB / 369.5 MB, free: 2.613 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.173e-06/0.09166, allocations: 4 kB / 369.5 MB, free: 2.609 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.245e-05/0.09168, allocations: 8 kB / 369.5 MB, free: 2.602 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002484/0.09193, allocations: 79.83 kB / 369.6 MB, free: 2.523 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.24e-05/0.09195, allocations: 8 kB / 369.6 MB, free: 2.516 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002423/0.0922, allocations: 47.67 kB / 369.7 MB, free: 2.469 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.371e-05/0.09223, allocations: 20 kB / 369.7 MB, free: 2.449 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.0001392/0.09238, allocations: 171.3 kB / 369.8 MB, free: 2.27 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.302e-05/0.09243, allocations: 35.56 kB / 369.9 MB, free: 2.234 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006329/0.09306, allocations: 330.9 kB / 370.2 MB, free: 1.906 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.429e-06/0.09308, allocations: 8 kB / 370.2 MB, free: 1.898 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.357e-06/0.09309, allocations: 0 / 370.2 MB, free: 1.898 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.41e-06/0.0931, allocations: 3.984 kB / 370.2 MB, free: 1.895 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002722/0.09337, allocations: 357.2 kB / 370.6 MB, free: 1.496 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.575e-06/0.09338, allocations: 3.984 kB / 370.6 MB, free: 1.492 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002099/0.0936, allocations: 47.91 kB / 370.6 MB, free: 1.445 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.869e-06/0.09361, allocations: 4 kB / 370.6 MB, free: 1.441 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.962e-05/0.09364, allocations: 7.938 kB / 370.6 MB, free: 1.434 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.715e-06/0.09364, allocations: 11.98 kB / 370.6 MB, free: 1.422 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.09365, allocations: 48 / 370.6 MB, free: 1.422 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008565/0.09451, allocations: 485.2 kB / 371.1 MB, free: 0.9258 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.396e-05/0.09459, allocations: 108.7 kB / 371.2 MB, free: 0.8008 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.976e-05/0.09464, allocations: 12.06 kB / 371.2 MB, free: 0.7891 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002078/0.09485, allocations: 31.91 kB / 371.3 MB, free: 0.7578 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.517e-05/0.09493, allocations: 31.91 kB / 371.3 MB, free: 0.7266 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.955e-05/0.09495, allocations: 11.98 kB / 371.3 MB, free: 0.7148 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001945/0.09515, allocations: 231 kB / 371.5 MB, free: 0.4922 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.09516, allocations: 0 / 371.5 MB, free: 0.4922 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002815/0.09544, allocations: 71.75 kB / 371.6 MB, free: 432 kB / 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.0001057/0.09556, allocations: 119.2 kB / 371.7 MB, free: 304 kB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.1244/0.22, allocations: 336.8 kB / 372 MB, free: 19.41 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 7.223e-06/0.22, allocations: 0.625 kB / 372 MB, free: 19.41 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004241/0.2204, allocations: 138.2 kB / 372.2 MB, free: 19.41 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004054/0.2209, allocations: 50.14 kB / 372.2 MB, free: 19.41 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001089/0.222, allocations: 0.7393 MB / 373 MB, free: 18.99 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002169/0.2222, allocations: 0.7868 MB / 373.8 MB, free: 18.29 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002007/0.2224, allocations: 46.86 kB / 373.8 MB, free: 18.29 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.146e-05/0.2225, allocations: 38.69 kB / 373.8 MB, free: 18.29 MB / 302.1 MB Notification: Performance of SimCode: time 8.41e-07/0.2225, allocations: 0 / 373.8 MB, free: 18.29 MB / 302.1 MB Notification: Performance of Templates: time 0.007023/0.2295, allocations: 3.232 MB / 377.1 MB, free: 18.14 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)