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.001263/0.001263, allocations: 115.8 kB / 18.4 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00123/0.00123, allocations: 199.5 kB / 19.34 MB, free: 3.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.448/1.448, allocations: 227.4 MB / 247.5 MB, free: 10.36 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001123/0.001123, allocations: 65.28 kB / 308.4 MB, free: 15.87 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.108/0.1091, allocations: 50.52 MB / 358.9 MB, free: 13.33 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemoSignalCharacteristic): time 0.003355/0.1125, allocations: 2.285 MB / 361.2 MB, free: 11.04 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001561/0.1141, allocations: 0.9425 MB / 362.1 MB, free: 10.09 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001467/0.1142, allocations: 7.938 kB / 362.1 MB, free: 10.08 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001323/0.1144, allocations: 43.47 kB / 362.2 MB, free: 10.04 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003225/0.1147, allocations: 99.28 kB / 362.3 MB, free: 9.938 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003342/0.1151, allocations: 171.6 kB / 362.4 MB, free: 9.77 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004026/0.1155, allocations: 430.8 kB / 362.8 MB, free: 9.348 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002108/0.1157, allocations: 123.5 kB / 363 MB, free: 9.23 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002535/0.116, allocations: 179.3 kB / 363.1 MB, free: 9.055 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002391/0.1162, allocations: 191.1 kB / 363.3 MB, free: 8.867 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.295e-05/0.1163, allocations: 40 kB / 363.4 MB, free: 8.828 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.023e-05/0.1164, allocations: 51.98 kB / 363.4 MB, free: 8.777 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.215e-05/0.1165, allocations: 95.61 kB / 363.5 MB, free: 8.684 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001692/0.1167, allocations: 191 kB / 363.7 MB, free: 8.496 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004016/0.1171, allocations: 410.5 kB / 364.1 MB, free: 8.094 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.1171, allocations: 0 / 364.1 MB, free: 8.094 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.1171, allocations: 0 / 364.1 MB, free: 8.094 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.032e-05/0.1171, allocations: 0 / 364.1 MB, free: 8.094 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.00149/0.1186, allocations: 0.7248 MB / 364.8 MB, free: 7.305 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.95e-05/0.1187, allocations: 12.03 kB / 364.8 MB, free: 7.293 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000305/0.119, allocations: 60.45 kB / 364.9 MB, free: 7.234 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005859/0.1196, allocations: 384.3 kB / 365.3 MB, free: 6.824 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.735e-05/0.1196, allocations: 20.81 kB / 365.3 MB, free: 6.805 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.702e-05/0.1197, allocations: 32.38 kB / 365.3 MB, free: 6.773 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005204/0.1202, allocations: 259.4 kB / 365.6 MB, free: 6.512 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.592e-05/0.1202, allocations: 7.922 kB / 365.6 MB, free: 6.504 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.037e-05/0.1203, allocations: 12 kB / 365.6 MB, free: 6.492 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.454e-06/0.1203, allocations: 4 kB / 365.6 MB, free: 6.488 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004671/0.1207, allocations: 185.6 kB / 365.8 MB, free: 6.309 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0013/0.122, allocations: 0.7788 MB / 366.6 MB, free: 5.477 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005392/0.1226, allocations: 194.7 kB / 366.8 MB, free: 5.277 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002232/0.1228, allocations: 84.81 kB / 366.8 MB, free: 5.191 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.058e-05/0.1229, allocations: 7.984 kB / 366.8 MB, free: 5.184 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004842/0.1234, allocations: 240.9 kB / 367.1 MB, free: 4.934 MB / 302.1 MB Notification: Performance of pre-optimization done (n=28): time 2.144e-06/0.1234, allocations: 0 / 367.1 MB, free: 4.934 MB / 302.1 MB Notification: Performance of matching and sorting (n=28): time 0.0009365/0.1243, allocations: 383.1 kB / 367.5 MB, free: 4.555 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.974e-05/0.1244, allocations: 59.41 kB / 367.5 MB, free: 4.484 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003562/0.1247, allocations: 320.5 kB / 367.8 MB, free: 4.16 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.691e-05/0.1248, allocations: 33.7 kB / 367.9 MB, free: 4.121 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001383/0.1249, allocations: 184.6 kB / 368 MB, free: 3.938 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.777e-05/0.125, allocations: 86.8 kB / 368.1 MB, free: 3.852 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001226/0.1251, allocations: 78.06 kB / 368.2 MB, free: 3.766 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001436/0.1253, allocations: 354.7 kB / 368.5 MB, free: 3.41 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002535/0.1255, allocations: 96.67 kB / 368.6 MB, free: 3.316 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003397/0.1259, allocations: 234.5 kB / 368.9 MB, free: 3.027 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006076/0.1265, allocations: 381.2 kB / 369.2 MB, free: 2.59 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.368e-06/0.1265, allocations: 0 / 369.2 MB, free: 2.59 MB / 302.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0007983/0.1273, allocations: 434.4 kB / 369.7 MB, free: 2.152 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.317e-05/0.1274, allocations: 33.7 kB / 369.7 MB, free: 2.113 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.477e-06/0.1274, allocations: 4 kB / 369.7 MB, free: 2.109 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.852e-05/0.1274, allocations: 4 kB / 369.7 MB, free: 2.105 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002884/0.1277, allocations: 75.89 kB / 369.8 MB, free: 2.031 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.574e-05/0.1277, allocations: 12 kB / 369.8 MB, free: 2.02 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002893/0.128, allocations: 44.05 kB / 369.8 MB, free: 1.977 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.2e-05/0.1281, allocations: 19.98 kB / 369.9 MB, free: 1.957 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.0001965/0.1283, allocations: 171.3 kB / 370 MB, free: 1.777 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.71e-05/0.1284, allocations: 43.45 kB / 370.1 MB, free: 1.734 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007009/0.1291, allocations: 301.3 kB / 370.4 MB, free: 1.434 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.833e-06/0.1291, allocations: 4 kB / 370.4 MB, free: 1.43 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.751e-06/0.1291, allocations: 7.922 kB / 370.4 MB, free: 1.422 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.909e-06/0.1291, allocations: 0 / 370.4 MB, free: 1.422 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003554/0.1295, allocations: 369.2 kB / 370.7 MB, free: 1.012 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.043e-06/0.1295, allocations: 0 / 370.7 MB, free: 1.012 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002286/0.1297, allocations: 39.91 kB / 370.8 MB, free: 0.9727 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.396e-06/0.1297, allocations: 0 / 370.8 MB, free: 0.9727 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.969e-05/0.1298, allocations: 15.98 kB / 370.8 MB, free: 0.957 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.314e-06/0.1298, allocations: 0 / 370.8 MB, free: 0.957 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.253e-06/0.1298, allocations: 0 / 370.8 MB, free: 0.957 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009517/0.1307, allocations: 450.2 kB / 371.2 MB, free: 0.4961 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.492e-05/0.1308, allocations: 116.7 kB / 371.3 MB, free: 372 kB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.633e-05/0.1309, allocations: 8 kB / 371.3 MB, free: 364 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002281/0.1311, allocations: 19.97 kB / 371.4 MB, free: 344 kB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001006/0.1312, allocations: 27.91 kB / 371.4 MB, free: 316 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.976e-05/0.1313, allocations: 15.98 kB / 371.4 MB, free: 300 kB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002455/0.1315, allocations: 227.1 kB / 371.6 MB, free: 76 kB / 302.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.1315, allocations: 0 / 371.6 MB, free: 76 kB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003615/0.1319, allocations: 71.83 kB / 371.7 MB, free: 4 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.2293/0.3612, allocations: 109.4 kB / 371.8 MB, free: 20.09 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001097/0.3623, allocations: 327.1 kB / 372.1 MB, free: 20.02 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.467e-06/0.3623, allocations: 1.062 kB / 372.1 MB, free: 20.02 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004076/0.3627, allocations: 125.9 kB / 372.2 MB, free: 20.02 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005557/0.3633, allocations: 57.91 kB / 372.3 MB, free: 20.02 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001522/0.3648, allocations: 0.6149 MB / 372.9 MB, free: 19.72 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000403/0.3653, allocations: 0.7893 MB / 373.7 MB, free: 19.02 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002146/0.3655, allocations: 48.59 kB / 373.8 MB, free: 19.02 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000128/0.3656, allocations: 34.73 kB / 373.8 MB, free: 19.02 MB / 302.1 MB Notification: Performance of SimCode: time 7.21e-07/0.3656, allocations: 1.094 kB / 373.8 MB, free: 19.02 MB / 302.1 MB Notification: Performance of Templates: time 0.01316/0.3788, allocations: 3.553 MB / 377.3 MB, free: 18.87 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 -s cvode -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.DemoSignalCharacteristic.pipe 2>&1)