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.001686/0.001686, allocations: 115.1 kB / 17.33 MB, free: 5.984 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002292/0.002291, allocations: 205.8 kB / 18.27 MB, free: 5.07 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.435/1.435, allocations: 227.4 MB / 246.4 MB, free: 10.83 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001907/0.001907, allocations: 58.25 kB / 306.4 MB, free: 0.9609 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1275/0.1294, allocations: 50.53 MB / 357 MB, free: 14.43 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemoSignalCharacteristic): time 0.004211/0.1337, allocations: 2.318 MB / 359.3 MB, free: 12.1 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001912/0.1356, allocations: 0.9386 MB / 360.2 MB, free: 11.15 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002851/0.1359, allocations: 4 kB / 360.2 MB, free: 11.15 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002063/0.1362, allocations: 19.73 kB / 360.2 MB, free: 11.13 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005875/0.1368, allocations: 87.45 kB / 360.3 MB, free: 11.04 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004612/0.1373, allocations: 151.8 kB / 360.5 MB, free: 10.89 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005166/0.1378, allocations: 426.8 kB / 360.9 MB, free: 10.48 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002426/0.1381, allocations: 115.5 kB / 361 MB, free: 10.37 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003461/0.1384, allocations: 187.2 kB / 361.2 MB, free: 10.18 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003049/0.1387, allocations: 183.1 kB / 361.4 MB, free: 10 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.468e-05/0.1388, allocations: 40 kB / 361.4 MB, free: 9.965 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001318/0.139, allocations: 55.98 kB / 361.5 MB, free: 9.91 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000106/0.1391, allocations: 99.61 kB / 361.6 MB, free: 9.812 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001949/0.1393, allocations: 187 kB / 361.7 MB, free: 9.629 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004734/0.1398, allocations: 398.9 kB / 362.1 MB, free: 9.238 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.853e-06/0.1398, allocations: 0 / 362.1 MB, free: 9.238 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.234e-06/0.1398, allocations: 0 / 362.1 MB, free: 9.238 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.442e-05/0.1398, allocations: 0 / 362.1 MB, free: 9.238 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.001655/0.1415, allocations: 0.7248 MB / 362.9 MB, free: 8.449 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.471e-05/0.1415, allocations: 8.031 kB / 362.9 MB, free: 8.441 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003279/0.1419, allocations: 64.44 kB / 362.9 MB, free: 8.379 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005562/0.1424, allocations: 380.3 kB / 363.3 MB, free: 7.973 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.755e-05/0.1425, allocations: 20.81 kB / 363.3 MB, free: 7.953 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.815e-05/0.1425, allocations: 28.38 kB / 363.4 MB, free: 7.926 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005648/0.1431, allocations: 263.5 kB / 363.6 MB, free: 7.66 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.545e-05/0.1431, allocations: 0 / 363.6 MB, free: 7.66 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.407e-05/0.1432, allocations: 8 kB / 363.6 MB, free: 7.652 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.496e-06/0.1432, allocations: 11.94 kB / 363.6 MB, free: 7.641 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004952/0.1437, allocations: 185.6 kB / 363.8 MB, free: 7.461 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001376/0.1451, allocations: 0.7905 MB / 364.6 MB, free: 6.617 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004844/0.1456, allocations: 190.7 kB / 364.8 MB, free: 6.422 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002435/0.1458, allocations: 92.8 kB / 364.9 MB, free: 6.328 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.85e-05/0.1459, allocations: 4 kB / 364.9 MB, free: 6.324 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004996/0.1464, allocations: 252.8 kB / 365.1 MB, free: 6.062 MB / 302.1 MB Notification: Performance of pre-optimization done (n=28): time 2.014e-06/0.1464, allocations: 0 / 365.1 MB, free: 6.062 MB / 302.1 MB Notification: Performance of matching and sorting (n=28): time 0.0009441/0.1473, allocations: 385 kB / 365.5 MB, free: 5.684 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.006e-05/0.1474, allocations: 59.41 kB / 365.6 MB, free: 5.613 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000342/0.1477, allocations: 316.5 kB / 365.9 MB, free: 5.293 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.077e-05/0.1478, allocations: 37.7 kB / 365.9 MB, free: 5.25 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001334/0.1479, allocations: 192.6 kB / 366.1 MB, free: 5.059 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.773e-05/0.148, allocations: 86.75 kB / 366.2 MB, free: 4.973 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001147/0.1481, allocations: 74.05 kB / 366.3 MB, free: 4.891 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001277/0.1483, allocations: 342.8 kB / 366.6 MB, free: 4.547 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002957/0.1486, allocations: 104.7 kB / 366.7 MB, free: 4.445 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000341/0.1489, allocations: 231.3 kB / 366.9 MB, free: 4.16 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006233/0.1495, allocations: 378.5 kB / 367.3 MB, free: 3.723 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.208e-06/0.1496, allocations: 0 / 367.3 MB, free: 3.723 MB / 302.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0008263/0.1504, allocations: 429 kB / 367.7 MB, free: 3.293 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.601e-05/0.1504, allocations: 33.7 kB / 367.7 MB, free: 3.254 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.057e-06/0.1505, allocations: 4 kB / 367.7 MB, free: 3.25 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.712e-05/0.1505, allocations: 8.531 kB / 367.8 MB, free: 3.242 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002886/0.1508, allocations: 79.83 kB / 367.8 MB, free: 3.164 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.771e-05/0.1508, allocations: 4 kB / 367.8 MB, free: 3.16 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002962/0.1511, allocations: 47.75 kB / 367.9 MB, free: 3.113 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.53e-05/0.1511, allocations: 12 kB / 367.9 MB, free: 3.102 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.0001788/0.1513, allocations: 179.3 kB / 368.1 MB, free: 2.914 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.819e-05/0.1514, allocations: 39.47 kB / 368.1 MB, free: 2.875 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000711/0.1521, allocations: 306.9 kB / 368.4 MB, free: 2.57 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.352e-06/0.1521, allocations: 4 kB / 368.4 MB, free: 2.566 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.718e-06/0.1521, allocations: 3.938 kB / 368.4 MB, free: 2.562 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.252e-06/0.1521, allocations: 0 / 368.4 MB, free: 2.562 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003487/0.1525, allocations: 365.2 kB / 368.8 MB, free: 2.156 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.1525, allocations: 4 kB / 368.8 MB, free: 2.152 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002321/0.1527, allocations: 35.97 kB / 368.8 MB, free: 2.117 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.362e-06/0.1528, allocations: 4 kB / 368.8 MB, free: 2.113 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.629e-05/0.1528, allocations: 7.984 kB / 368.8 MB, free: 2.105 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.487e-06/0.1528, allocations: 4 kB / 368.8 MB, free: 2.102 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.1528, allocations: 0 / 368.8 MB, free: 2.102 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009473/0.1538, allocations: 457.2 kB / 369.3 MB, free: 1.633 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.268e-05/0.1539, allocations: 112.7 kB / 369.4 MB, free: 1.504 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.7e-05/0.1539, allocations: 8 kB / 369.4 MB, free: 1.496 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002415/0.1542, allocations: 23.97 kB / 369.4 MB, free: 1.473 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.642e-05/0.1543, allocations: 23.97 kB / 369.4 MB, free: 1.449 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.786e-05/0.1543, allocations: 19.92 kB / 369.5 MB, free: 1.43 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002365/0.1545, allocations: 235 kB / 369.7 MB, free: 1.203 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1545, allocations: 0 / 369.7 MB, free: 1.203 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003414/0.1549, allocations: 67.84 kB / 369.7 MB, free: 1.137 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.0001384/0.155, allocations: 123.2 kB / 369.9 MB, free: 1.008 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007291/0.1558, allocations: 335.2 kB / 370.2 MB, free: 0.668 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.1558, allocations: 4 kB / 370.2 MB, free: 0.6641 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000297/0.1561, allocations: 123.8 kB / 370.3 MB, free: 0.543 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003775/0.1565, allocations: 58.19 kB / 370.4 MB, free: 500 kB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1566/0.3131, allocations: 0.7247 MB / 371.1 MB, free: 20.18 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004191/0.3136, allocations: 0.7893 MB / 371.9 MB, free: 19.48 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003778/0.314, allocations: 45.89 kB / 371.9 MB, free: 19.48 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001416/0.3141, allocations: 33.23 kB / 372 MB, free: 19.48 MB / 302.1 MB Notification: Performance of SimCode: time 1.873e-06/0.3142, allocations: 0.5 kB / 372 MB, free: 19.48 MB / 302.1 MB Notification: Performance of Templates: time 0.01256/0.3267, allocations: 3.435 MB / 375.4 MB, free: 19.36 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)