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.0008539/0.0008539, allocations: 94.94 kB / 18 MB, free: 5.738 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009835/0.0009836, allocations: 203.2 kB / 18.93 MB, free: 4.848 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.307/1.307, allocations: 227.7 MB / 247.5 MB, free: 11.36 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002768/0.0002768, allocations: 4.281 kB / 308.4 MB, free: 0.8594 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09423/0.09453, allocations: 51.53 MB / 359.9 MB, free: 13.33 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemoSignalCharacteristic): time 0.002414/0.09698, allocations: 1.961 MB / 361.9 MB, free: 11.36 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001676/0.09869, allocations: 0.9271 MB / 362.8 MB, free: 10.42 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002297/0.09894, allocations: 4 kB / 362.8 MB, free: 10.42 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001411/0.0991, allocations: 19.73 kB / 362.8 MB, free: 10.4 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004165/0.09952, allocations: 91.47 kB / 362.9 MB, free: 10.31 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004162/0.09995, allocations: 151.8 kB / 363.1 MB, free: 10.16 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000475/0.1004, allocations: 390.9 kB / 363.4 MB, free: 9.777 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002532/0.1007, allocations: 115.5 kB / 363.5 MB, free: 9.668 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003193/0.101, allocations: 143.3 kB / 363.7 MB, free: 9.527 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002867/0.1013, allocations: 159.1 kB / 363.8 MB, free: 9.371 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.629e-05/0.1014, allocations: 16 kB / 363.9 MB, free: 9.355 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001002/0.1015, allocations: 27.98 kB / 363.9 MB, free: 9.328 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.126e-05/0.1016, allocations: 67.61 kB / 363.9 MB, free: 9.262 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001814/0.1018, allocations: 184.7 kB / 364.1 MB, free: 9.074 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003235/0.1021, allocations: 287.5 kB / 364.4 MB, free: 8.793 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.489e-06/0.1021, allocations: 0 / 364.4 MB, free: 8.793 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.677e-06/0.1021, allocations: 0 / 364.4 MB, free: 8.793 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.833e-05/0.1022, allocations: 3.938 kB / 364.4 MB, free: 8.789 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.001481/0.1036, allocations: 0.6549 MB / 365.1 MB, free: 8.07 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.074e-05/0.1037, allocations: 8.031 kB / 365.1 MB, free: 8.062 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003467/0.104, allocations: 68.44 kB / 365.1 MB, free: 7.996 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006137/0.1047, allocations: 384.2 kB / 365.5 MB, free: 7.586 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.437e-05/0.1047, allocations: 28.8 kB / 365.5 MB, free: 7.559 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.143e-05/0.1048, allocations: 28.38 kB / 365.6 MB, free: 7.531 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005721/0.1054, allocations: 259.5 kB / 365.8 MB, free: 7.27 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.833e-05/0.1054, allocations: 4 kB / 365.8 MB, free: 7.266 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.135e-05/0.1054, allocations: 8 kB / 365.8 MB, free: 7.258 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.857e-06/0.1055, allocations: 12 kB / 365.9 MB, free: 7.246 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005344/0.106, allocations: 209.6 kB / 366.1 MB, free: 7.043 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001399/0.1074, allocations: 0.8139 MB / 366.9 MB, free: 6.176 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005224/0.1079, allocations: 206.1 kB / 367.1 MB, free: 5.969 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002552/0.1082, allocations: 96.8 kB / 367.2 MB, free: 5.871 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.272e-05/0.1083, allocations: 4 kB / 367.2 MB, free: 5.867 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004978/0.1088, allocations: 256.8 kB / 367.4 MB, free: 5.602 MB / 302.1 MB Notification: Performance of pre-optimization done (n=28): time 1.984e-06/0.1088, allocations: 0 / 367.4 MB, free: 5.602 MB / 302.1 MB Notification: Performance of matching and sorting (n=28): time 0.000994/0.1098, allocations: 409.1 kB / 367.8 MB, free: 5.199 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.299e-05/0.1098, allocations: 63.38 kB / 367.9 MB, free: 5.125 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003533/0.1102, allocations: 316.6 kB / 368.2 MB, free: 4.805 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.339e-05/0.1102, allocations: 41.69 kB / 368.2 MB, free: 4.758 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000132/0.1104, allocations: 192.4 kB / 368.4 MB, free: 4.566 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.958e-05/0.1105, allocations: 86.83 kB / 368.5 MB, free: 4.48 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.772e-05/0.1105, allocations: 37.7 kB / 368.5 MB, free: 4.438 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000121/0.1107, allocations: 346.8 kB / 368.9 MB, free: 4.09 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002999/0.111, allocations: 116.7 kB / 369 MB, free: 3.973 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000358/0.1113, allocations: 238.6 kB / 369.2 MB, free: 3.68 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006488/0.112, allocations: 401.1 kB / 369.6 MB, free: 3.223 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.4e-06/0.112, allocations: 0 / 369.6 MB, free: 3.223 MB / 302.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0008654/0.1129, allocations: 450.8 kB / 370.1 MB, free: 2.77 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.029e-05/0.1129, allocations: 37.69 kB / 370.1 MB, free: 2.727 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.146e-05/0.1129, allocations: 8 kB / 370.1 MB, free: 2.719 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.593e-05/0.113, allocations: 4 kB / 370.1 MB, free: 2.715 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002921/0.1133, allocations: 79.83 kB / 370.2 MB, free: 2.637 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.308e-05/0.1133, allocations: 12 kB / 370.2 MB, free: 2.625 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002989/0.1136, allocations: 43.67 kB / 370.2 MB, free: 2.582 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.026e-05/0.1136, allocations: 27.92 kB / 370.3 MB, free: 2.555 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.0001759/0.1138, allocations: 167.3 kB / 370.4 MB, free: 2.379 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.754e-05/0.1139, allocations: 35.56 kB / 370.5 MB, free: 2.344 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007355/0.1146, allocations: 334.9 kB / 370.8 MB, free: 2.012 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.965e-06/0.1146, allocations: 4 kB / 370.8 MB, free: 2.008 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.648e-06/0.1147, allocations: 3.938 kB / 370.8 MB, free: 2.004 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.312e-06/0.1147, allocations: 3.984 kB / 370.8 MB, free: 2 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003382/0.115, allocations: 357.2 kB / 371.2 MB, free: 1.602 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.537e-06/0.115, allocations: 0 / 371.2 MB, free: 1.602 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002381/0.1153, allocations: 44.03 kB / 371.2 MB, free: 1.559 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.092e-06/0.1153, allocations: 8 kB / 371.2 MB, free: 1.551 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.6e-05/0.1153, allocations: 7.984 kB / 371.2 MB, free: 1.543 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.665e-06/0.1153, allocations: 4 kB / 371.2 MB, free: 1.539 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.1153, allocations: 0 / 371.2 MB, free: 1.539 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001022/0.1164, allocations: 489.2 kB / 371.7 MB, free: 1.039 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.649e-05/0.1165, allocations: 108.7 kB / 371.8 MB, free: 0.9141 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.418e-05/0.1165, allocations: 12.06 kB / 371.8 MB, free: 0.9023 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002378/0.1168, allocations: 27.97 kB / 371.8 MB, free: 0.875 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.822e-05/0.1168, allocations: 23.97 kB / 371.9 MB, free: 0.8516 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.454e-05/0.1169, allocations: 15.98 kB / 371.9 MB, free: 0.8359 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002315/0.1171, allocations: 231 kB / 372.1 MB, free: 0.6133 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1171, allocations: 0 / 372.1 MB, free: 0.6133 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003521/0.1175, allocations: 71.75 kB / 372.2 MB, free: 0.543 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.0001368/0.1176, allocations: 127.1 kB / 372.3 MB, free: 420 kB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000692/0.1183, allocations: 335.1 kB / 372.6 MB, free: 72 kB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.886e-06/0.1183, allocations: 0 / 372.6 MB, free: 72 kB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.1602/0.2785, allocations: 144.2 kB / 372.8 MB, free: 19.95 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006719/0.2793, allocations: 55.97 kB / 372.8 MB, free: 19.95 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001858/0.2811, allocations: 0.7711 MB / 373.6 MB, free: 19.5 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003698/0.2815, allocations: 0.7914 MB / 374.4 MB, free: 18.8 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001879/0.2817, allocations: 36.5 kB / 374.4 MB, free: 18.8 MB / 302.1 MB Notification: Performance of SimCode: time 5.91e-07/0.2817, allocations: 0 / 374.4 MB, free: 18.8 MB / 302.1 MB Notification: Performance of Templates: time 0.01137/0.2931, allocations: 4.214 MB / 378.6 MB, free: 18.55 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)