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.001134/0.001134, allocations: 103.8 kB / 17.63 MB, free: 5.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001404/0.001404, allocations: 210.4 kB / 18.58 MB, free: 4.535 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.422/1.422, allocations: 227.4 MB / 246.8 MB, free: 10.54 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001282/0.001282, allocations: 63.41 kB / 306.9 MB, free: 0.6094 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.103/0.1043, allocations: 50.53 MB / 357.5 MB, free: 14.08 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemoSignalCharacteristic): time 0.003482/0.1078, allocations: 2.283 MB / 359.7 MB, free: 11.78 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001864/0.1097, allocations: 0.9464 MB / 360.7 MB, free: 10.83 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002406/0.11, allocations: 4 kB / 360.7 MB, free: 10.82 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001648/0.1102, allocations: 35.48 kB / 360.7 MB, free: 10.79 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000417/0.1106, allocations: 103.2 kB / 360.8 MB, free: 10.69 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004424/0.111, allocations: 171.7 kB / 361 MB, free: 10.52 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00049/0.1115, allocations: 426.8 kB / 361.4 MB, free: 10.1 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002364/0.1118, allocations: 123.5 kB / 361.5 MB, free: 9.984 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003002/0.1121, allocations: 171.3 kB / 361.7 MB, free: 9.816 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002679/0.1124, allocations: 191.1 kB / 361.9 MB, free: 9.629 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.086e-05/0.1124, allocations: 44 kB / 361.9 MB, free: 9.586 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001195/0.1126, allocations: 59.92 kB / 362 MB, free: 9.527 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.646e-05/0.1127, allocations: 95.61 kB / 362.1 MB, free: 9.434 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001756/0.1129, allocations: 187 kB / 362.3 MB, free: 9.25 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004238/0.1133, allocations: 406.9 kB / 362.7 MB, free: 8.852 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.972e-06/0.1133, allocations: 4 kB / 362.7 MB, free: 8.848 MB / 302.1 MB Notification: Performance of FrontEnd: time 9.42e-07/0.1133, allocations: 0 / 362.7 MB, free: 8.848 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.454e-06/0.1133, allocations: 0 / 362.7 MB, free: 8.848 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.001452/0.1148, allocations: 0.7131 MB / 363.4 MB, free: 8.07 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.895e-05/0.1148, allocations: 12.03 kB / 363.4 MB, free: 8.059 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003072/0.1151, allocations: 56.45 kB / 363.5 MB, free: 8.004 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005597/0.1157, allocations: 388.3 kB / 363.8 MB, free: 7.59 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.553e-05/0.1157, allocations: 16.81 kB / 363.8 MB, free: 7.574 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.432e-05/0.1158, allocations: 32.36 kB / 363.9 MB, free: 7.543 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000504/0.1163, allocations: 255.5 kB / 364.1 MB, free: 7.285 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.844e-05/0.1163, allocations: 8 kB / 364.1 MB, free: 7.277 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.834e-05/0.1164, allocations: 7.938 kB / 364.1 MB, free: 7.27 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.582e-06/0.1164, allocations: 7.938 kB / 364.2 MB, free: 7.262 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000501/0.1169, allocations: 189.6 kB / 364.3 MB, free: 7.078 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001278/0.1182, allocations: 0.7906 MB / 365.1 MB, free: 6.234 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004767/0.1187, allocations: 194.7 kB / 365.3 MB, free: 6.035 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002401/0.1189, allocations: 88.8 kB / 365.4 MB, free: 5.945 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.888e-05/0.119, allocations: 4 kB / 365.4 MB, free: 5.941 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004833/0.1195, allocations: 237 kB / 365.6 MB, free: 5.695 MB / 302.1 MB Notification: Performance of pre-optimization done (n=28): time 2.114e-06/0.1195, allocations: 4 kB / 365.6 MB, free: 5.691 MB / 302.1 MB Notification: Performance of matching and sorting (n=28): time 0.0009646/0.1204, allocations: 387 kB / 366 MB, free: 5.309 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.805e-05/0.1205, allocations: 59.39 kB / 366.1 MB, free: 5.238 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003494/0.1209, allocations: 316.6 kB / 366.4 MB, free: 4.918 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.007e-05/0.1209, allocations: 37.7 kB / 366.4 MB, free: 4.875 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001289/0.121, allocations: 188.6 kB / 366.6 MB, free: 4.688 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.253e-05/0.1211, allocations: 86.8 kB / 366.7 MB, free: 4.602 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001168/0.1212, allocations: 74.06 kB / 366.8 MB, free: 4.52 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001341/0.1214, allocations: 342.8 kB / 367.1 MB, free: 4.176 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002846/0.1217, allocations: 100.7 kB / 367.2 MB, free: 4.078 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003577/0.122, allocations: 234.5 kB / 367.4 MB, free: 3.789 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006655/0.1227, allocations: 374.5 kB / 367.8 MB, free: 3.355 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.231e-06/0.1227, allocations: 0 / 367.8 MB, free: 3.355 MB / 302.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0008903/0.1236, allocations: 434.2 kB / 368.2 MB, free: 2.918 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.821e-05/0.1237, allocations: 33.7 kB / 368.3 MB, free: 2.879 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.016e-05/0.1237, allocations: 4 kB / 368.3 MB, free: 2.875 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.998e-05/0.1237, allocations: 12.47 kB / 368.3 MB, free: 2.863 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002856/0.124, allocations: 71.89 kB / 368.3 MB, free: 2.793 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.413e-05/0.124, allocations: 15.92 kB / 368.4 MB, free: 2.777 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002868/0.1243, allocations: 35.77 kB / 368.4 MB, free: 2.742 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.864e-05/0.1244, allocations: 20 kB / 368.4 MB, free: 2.723 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.000166/0.1245, allocations: 171.4 kB / 368.6 MB, free: 2.543 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.224e-05/0.1246, allocations: 39.47 kB / 368.6 MB, free: 2.504 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007114/0.1253, allocations: 313.2 kB / 368.9 MB, free: 2.191 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.517e-06/0.1254, allocations: 0 / 368.9 MB, free: 2.191 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.129e-06/0.1254, allocations: 0 / 368.9 MB, free: 2.191 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.382e-06/0.1254, allocations: 4 kB / 368.9 MB, free: 2.188 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003492/0.1257, allocations: 365.2 kB / 369.3 MB, free: 1.781 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.807e-06/0.1257, allocations: 4 kB / 369.3 MB, free: 1.777 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000235/0.126, allocations: 43.91 kB / 369.3 MB, free: 1.734 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.519e-06/0.126, allocations: 0 / 369.3 MB, free: 1.734 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.887e-05/0.126, allocations: 11.98 kB / 369.3 MB, free: 1.723 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.525e-06/0.126, allocations: 0 / 369.3 MB, free: 1.723 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.126, allocations: 4 kB / 369.3 MB, free: 1.719 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009801/0.127, allocations: 450.2 kB / 369.8 MB, free: 1.258 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.658e-05/0.1271, allocations: 108.7 kB / 369.9 MB, free: 1.133 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.997e-05/0.1272, allocations: 12.05 kB / 369.9 MB, free: 1.121 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000234/0.1274, allocations: 19.98 kB / 369.9 MB, free: 1.102 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.579e-05/0.1275, allocations: 28.19 kB / 369.9 MB, free: 1.074 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.612e-05/0.1276, allocations: 15.98 kB / 370 MB, free: 1.059 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002316/0.1278, allocations: 235 kB / 370.2 MB, free: 0.832 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.1278, allocations: 4 kB / 370.2 MB, free: 0.8281 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003482/0.1282, allocations: 71.84 kB / 370.3 MB, free: 0.7578 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.0001308/0.1283, allocations: 111.2 kB / 370.4 MB, free: 0.6406 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007324/0.129, allocations: 345.7 kB / 370.7 MB, free: 300 kB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.1291, allocations: 0 / 370.7 MB, free: 300 kB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002959/0.1294, allocations: 127.8 kB / 370.8 MB, free: 172 kB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003582/0.1297, allocations: 57.94 kB / 370.9 MB, free: 116 kB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1506/0.2804, allocations: 0.6124 MB / 371.5 MB, free: 20.03 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002541/0.2807, allocations: 0.791 MB / 372.3 MB, free: 19.33 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002322/0.2809, allocations: 47.2 kB / 372.3 MB, free: 19.33 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.506e-05/0.281, allocations: 34.75 kB / 372.4 MB, free: 19.33 MB / 302.1 MB Notification: Performance of SimCode: time 1.002e-06/0.281, allocations: 0 / 372.4 MB, free: 19.33 MB / 302.1 MB Notification: Performance of Templates: time 0.008764/0.2898, allocations: 3.541 MB / 375.9 MB, free: 19.2 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)