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.001098/0.001098, allocations: 117 kB / 18.41 MB, free: 4.559 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001133/0.001133, allocations: 204.5 kB / 19.36 MB, free: 3.617 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.493/1.493, allocations: 227.4 MB / 247.5 MB, free: 10.37 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001191/0.001191, allocations: 55.03 kB / 308.4 MB, free: 15.92 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1254/0.1267, allocations: 50.53 MB / 358.9 MB, free: 13.37 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemoSignalCharacteristic): time 0.004148/0.1308, allocations: 2.295 MB / 361.2 MB, free: 11.06 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001835/0.1327, allocations: 0.9387 MB / 362.1 MB, free: 10.12 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002516/0.133, allocations: 7.938 kB / 362.1 MB, free: 10.11 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001717/0.1332, allocations: 39.53 kB / 362.2 MB, free: 10.07 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004148/0.1336, allocations: 107.2 kB / 362.3 MB, free: 9.965 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004548/0.1341, allocations: 171.6 kB / 362.4 MB, free: 9.797 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005496/0.1346, allocations: 426.9 kB / 362.9 MB, free: 9.379 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002571/0.1349, allocations: 119.5 kB / 363 MB, free: 9.266 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003581/0.1353, allocations: 183.2 kB / 363.2 MB, free: 9.086 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003346/0.1356, allocations: 195.1 kB / 363.3 MB, free: 8.895 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.029e-05/0.1357, allocations: 40 kB / 363.4 MB, free: 8.855 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001211/0.1358, allocations: 51.98 kB / 363.4 MB, free: 8.805 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.742e-05/0.1359, allocations: 87.67 kB / 363.5 MB, free: 8.719 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001935/0.1361, allocations: 187 kB / 363.7 MB, free: 8.535 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004364/0.1366, allocations: 414.5 kB / 364.1 MB, free: 8.129 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.438e-06/0.1366, allocations: 0 / 364.1 MB, free: 8.129 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.1366, allocations: 0 / 364.1 MB, free: 8.129 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.13e-05/0.1366, allocations: 0 / 364.1 MB, free: 8.129 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.001571/0.1382, allocations: 0.721 MB / 364.8 MB, free: 7.344 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.393e-05/0.1382, allocations: 11.97 kB / 364.8 MB, free: 7.332 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003146/0.1386, allocations: 68.44 kB / 364.9 MB, free: 7.266 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000601/0.1392, allocations: 388.3 kB / 365.3 MB, free: 6.852 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.771e-05/0.1392, allocations: 20.81 kB / 365.3 MB, free: 6.832 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.789e-05/0.1393, allocations: 28.38 kB / 365.3 MB, free: 6.805 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000546/0.1398, allocations: 259.4 kB / 365.6 MB, free: 6.543 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.585e-05/0.1398, allocations: 3.938 kB / 365.6 MB, free: 6.539 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.24e-05/0.1399, allocations: 15.98 kB / 365.6 MB, free: 6.523 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.305e-05/0.1399, allocations: 8 kB / 365.6 MB, free: 6.516 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004904/0.1404, allocations: 177.6 kB / 365.8 MB, free: 6.344 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001369/0.1418, allocations: 0.7867 MB / 366.6 MB, free: 5.504 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005321/0.1423, allocations: 186.7 kB / 366.8 MB, free: 5.312 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002297/0.1426, allocations: 92.36 kB / 366.9 MB, free: 5.223 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.112e-05/0.1426, allocations: 4 kB / 366.9 MB, free: 5.219 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004774/0.1431, allocations: 245 kB / 367.1 MB, free: 4.965 MB / 302.1 MB Notification: Performance of pre-optimization done (n=28): time 2.194e-06/0.1431, allocations: 0 / 367.1 MB, free: 4.965 MB / 302.1 MB Notification: Performance of matching and sorting (n=28): time 0.0009689/0.1441, allocations: 391 kB / 367.5 MB, free: 4.578 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.884e-05/0.1442, allocations: 63.41 kB / 367.5 MB, free: 4.504 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003768/0.1446, allocations: 316.5 kB / 367.8 MB, free: 4.184 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.493e-05/0.1446, allocations: 33.7 kB / 367.9 MB, free: 4.145 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002101/0.1448, allocations: 184.6 kB / 368.1 MB, free: 3.961 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.691e-05/0.1449, allocations: 86.8 kB / 368.1 MB, free: 3.875 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001101/0.145, allocations: 78.06 kB / 368.2 MB, free: 3.789 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001462/0.1452, allocations: 350.8 kB / 368.6 MB, free: 3.438 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000281/0.1455, allocations: 96.69 kB / 368.7 MB, free: 3.344 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003863/0.1459, allocations: 234.5 kB / 368.9 MB, free: 3.055 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007221/0.1466, allocations: 370.5 kB / 369.3 MB, free: 2.625 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.275e-06/0.1466, allocations: 3.938 kB / 369.3 MB, free: 2.621 MB / 302.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001002/0.1476, allocations: 437.1 kB / 369.7 MB, free: 2.184 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.46e-05/0.1477, allocations: 37.69 kB / 369.7 MB, free: 2.141 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.728e-05/0.1477, allocations: 8 kB / 369.7 MB, free: 2.133 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.043e-05/0.1478, allocations: 4 kB / 369.7 MB, free: 2.129 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003247/0.1481, allocations: 67.89 kB / 369.8 MB, free: 2.062 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.226e-05/0.1481, allocations: 11.94 kB / 369.8 MB, free: 2.051 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003353/0.1485, allocations: 43.98 kB / 369.9 MB, free: 2.008 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.665e-05/0.1485, allocations: 16 kB / 369.9 MB, free: 1.992 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.0002336/0.1488, allocations: 171.4 kB / 370 MB, free: 1.812 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.794e-05/0.1488, allocations: 43.41 kB / 370.1 MB, free: 1.77 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007602/0.1496, allocations: 305.3 kB / 370.4 MB, free: 1.465 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.374e-06/0.1496, allocations: 4 kB / 370.4 MB, free: 1.461 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.073e-06/0.1496, allocations: 0 / 370.4 MB, free: 1.461 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.052e-05/0.1497, allocations: 3.984 kB / 370.4 MB, free: 1.457 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004569/0.1501, allocations: 365.3 kB / 370.7 MB, free: 1.051 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.519e-06/0.1501, allocations: 4 kB / 370.7 MB, free: 1.047 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002361/0.1504, allocations: 43.84 kB / 370.8 MB, free: 1.004 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.611e-06/0.1504, allocations: 0 / 370.8 MB, free: 1.004 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.387e-05/0.1505, allocations: 15.98 kB / 370.8 MB, free: 0.9883 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.476e-06/0.1505, allocations: 0 / 370.8 MB, free: 0.9883 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.1505, allocations: 0 / 370.8 MB, free: 0.9883 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000979/0.1515, allocations: 454.2 kB / 371.2 MB, free: 0.5234 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.846e-05/0.1516, allocations: 112.7 kB / 371.4 MB, free: 404 kB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.582e-05/0.1516, allocations: 8.062 kB / 371.4 MB, free: 396 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002233/0.1518, allocations: 19.97 kB / 371.4 MB, free: 376 kB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.268e-05/0.1519, allocations: 23.97 kB / 371.4 MB, free: 352 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.13e-05/0.152, allocations: 15.98 kB / 371.4 MB, free: 336 kB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002555/0.1522, allocations: 227.1 kB / 371.6 MB, free: 112 kB / 302.1 MB Notification: Performance of sort global known variables: time 3.737e-06/0.1522, allocations: 0 / 371.6 MB, free: 112 kB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003689/0.1526, allocations: 75.77 kB / 371.7 MB, free: 36 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.1868/0.3394, allocations: 108.8 kB / 371.8 MB, free: 20.12 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008552/0.3403, allocations: 326.4 kB / 372.1 MB, free: 20.06 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.108e-06/0.3403, allocations: 0.75 kB / 372.1 MB, free: 20.06 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003116/0.3406, allocations: 129.6 kB / 372.3 MB, free: 20.06 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004069/0.3411, allocations: 49.55 kB / 372.3 MB, free: 20.05 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001096/0.3422, allocations: 0.6176 MB / 372.9 MB, free: 19.76 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002566/0.3424, allocations: 0.79 MB / 373.7 MB, free: 19.06 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001751/0.3426, allocations: 49.84 kB / 373.8 MB, free: 19.05 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.52e-05/0.3427, allocations: 34.62 kB / 373.8 MB, free: 19.05 MB / 302.1 MB Notification: Performance of SimCode: time 2.81e-07/0.3427, allocations: 0 / 373.8 MB, free: 19.05 MB / 302.1 MB Notification: Performance of Templates: time 0.008588/0.3513, allocations: 3.542 MB / 377.3 MB, free: 18.93 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 gbode -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.DemoSignalCharacteristic.pipe 2>&1)