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.0008271/0.0008271, allocations: 93.02 kB / 17 MB, free: 6.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009314/0.0009314, allocations: 192.4 kB / 17.9 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.386/1.386, allocations: 227.7 MB / 246.4 MB, free: 9.824 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002816/0.0002816, allocations: 4 kB / 307.1 MB, free: 0.9648 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09899/0.09929, allocations: 51.53 MB / 358.6 MB, free: 13.44 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemoSignalCharacteristic): time 0.002443/0.1018, allocations: 1.891 MB / 360.5 MB, free: 11.54 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001619/0.1034, allocations: 0.8808 MB / 361.4 MB, free: 10.65 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001899/0.1036, allocations: 4 kB / 361.4 MB, free: 10.64 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001237/0.1038, allocations: 27.72 kB / 361.4 MB, free: 10.62 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003202/0.1041, allocations: 79.48 kB / 361.5 MB, free: 10.54 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000341/0.1045, allocations: 111.8 kB / 361.6 MB, free: 10.43 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003845/0.1049, allocations: 382.8 kB / 362 MB, free: 10.05 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002035/0.1051, allocations: 94.12 kB / 362.1 MB, free: 9.969 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002449/0.1053, allocations: 147.3 kB / 362.2 MB, free: 9.824 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002331/0.1056, allocations: 159.2 kB / 362.4 MB, free: 9.668 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.869e-05/0.1056, allocations: 12 kB / 362.4 MB, free: 9.656 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.489e-05/0.1057, allocations: 28 kB / 362.4 MB, free: 9.629 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.692e-05/0.1058, allocations: 71.66 kB / 362.5 MB, free: 9.559 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.926e-05/0.1059, allocations: 81.52 kB / 362.6 MB, free: 9.473 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002759/0.1062, allocations: 283.6 kB / 362.8 MB, free: 9.195 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.841e-06/0.1062, allocations: 0 / 362.8 MB, free: 9.195 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.963e-06/0.1062, allocations: 0 / 362.8 MB, free: 9.195 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.694e-06/0.1062, allocations: 0 / 362.8 MB, free: 9.195 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.001313/0.1075, allocations: 0.6548 MB / 363.5 MB, free: 8.473 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.423e-05/0.1076, allocations: 12.03 kB / 363.5 MB, free: 8.461 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002727/0.1078, allocations: 63.5 kB / 363.6 MB, free: 8.398 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005401/0.1084, allocations: 371.3 kB / 363.9 MB, free: 8 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.756e-05/0.1084, allocations: 20.44 kB / 364 MB, free: 7.98 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.437e-05/0.1085, allocations: 35.94 kB / 364 MB, free: 7.945 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005376/0.109, allocations: 259.1 kB / 364.2 MB, free: 7.684 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.706e-05/0.1091, allocations: 4 kB / 364.2 MB, free: 7.68 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.022e-05/0.1091, allocations: 8 kB / 364.3 MB, free: 7.672 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.161e-05/0.1091, allocations: 19.94 kB / 364.3 MB, free: 7.652 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004802/0.1096, allocations: 201.6 kB / 364.5 MB, free: 7.457 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00139/0.111, allocations: 0.8064 MB / 365.3 MB, free: 6.598 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004546/0.1115, allocations: 203.2 kB / 365.5 MB, free: 6.391 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000233/0.1117, allocations: 104.2 kB / 365.6 MB, free: 6.289 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.889e-05/0.1117, allocations: 192 / 365.6 MB, free: 6.289 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004736/0.1122, allocations: 261 kB / 365.8 MB, free: 6.02 MB / 302.1 MB Notification: Performance of pre-optimization done (n=28): time 1.533e-06/0.1122, allocations: 0 / 365.8 MB, free: 6.02 MB / 302.1 MB Notification: Performance of matching and sorting (n=28): time 0.0009025/0.1131, allocations: 401.1 kB / 366.2 MB, free: 5.625 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.345e-05/0.1132, allocations: 63.39 kB / 366.3 MB, free: 5.551 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003262/0.1135, allocations: 328.4 kB / 366.6 MB, free: 5.219 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.25e-05/0.1136, allocations: 37.7 kB / 366.6 MB, free: 5.176 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001181/0.1137, allocations: 180.6 kB / 366.8 MB, free: 4.996 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.07e-05/0.1138, allocations: 86.89 kB / 366.9 MB, free: 4.91 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.643e-05/0.1138, allocations: 4 kB / 366.9 MB, free: 4.906 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001257/0.1139, allocations: 350.8 kB / 367.3 MB, free: 4.555 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002611/0.1142, allocations: 112.7 kB / 367.4 MB, free: 4.441 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003222/0.1145, allocations: 242.3 kB / 367.6 MB, free: 4.145 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003022/0.1148, allocations: 165.5 kB / 367.8 MB, free: 3.977 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.036e-06/0.1149, allocations: 0 / 367.8 MB, free: 3.977 MB / 302.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0007663/0.1156, allocations: 442.9 kB / 368.2 MB, free: 3.531 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.988e-05/0.1157, allocations: 37.7 kB / 368.2 MB, free: 3.488 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.967e-06/0.1157, allocations: 4 kB / 368.2 MB, free: 3.484 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.561e-05/0.1157, allocations: 8 kB / 368.2 MB, free: 3.477 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002731/0.116, allocations: 71.89 kB / 368.3 MB, free: 3.406 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.543e-05/0.116, allocations: 15.92 kB / 368.3 MB, free: 3.391 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002608/0.1163, allocations: 55.62 kB / 368.4 MB, free: 3.336 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.736e-05/0.1163, allocations: 16 kB / 368.4 MB, free: 3.32 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 ($PRE.rectifiedMean.mean.y_last,rectifiedMean.mean.y_last,$PRE.mean.y_last,mean.y_last,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$PRE.rootMeanSquare.mean.y_last,rootMeanSquare.mean.y_last,$PRE.harmonic.mean1.y_last,harmonic.mean1.y_last,$PRE.harmonic.mean2.y_last,harmonic.mean2.y_last,$whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001587/0.1165, allocations: 163.5 kB / 368.6 MB, free: 3.148 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.89e-05/0.1165, allocations: 31.62 kB / 368.6 MB, free: 3.117 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006941/0.1172, allocations: 334.9 kB / 368.9 MB, free: 2.785 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.089e-06/0.1173, allocations: 4 kB / 368.9 MB, free: 2.781 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.098e-06/0.1173, allocations: 0 / 368.9 MB, free: 2.781 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.909e-06/0.1173, allocations: 4 kB / 368.9 MB, free: 2.777 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003274/0.1176, allocations: 361.2 kB / 369.3 MB, free: 2.375 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.1176, allocations: 0 / 369.3 MB, free: 2.375 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002254/0.1178, allocations: 47.91 kB / 369.3 MB, free: 2.328 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.861e-06/0.1179, allocations: 7.984 kB / 369.3 MB, free: 2.32 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.3e-05/0.1179, allocations: 4.062 kB / 369.3 MB, free: 2.316 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.517e-06/0.1179, allocations: 7.938 kB / 369.3 MB, free: 2.309 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.51e-07/0.1179, allocations: 0 / 369.3 MB, free: 2.309 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009132/0.1188, allocations: 489.2 kB / 369.8 MB, free: 1.809 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.604e-05/0.1189, allocations: 124.5 kB / 369.9 MB, free: 1.668 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.066e-05/0.119, allocations: 4.062 kB / 369.9 MB, free: 1.664 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002109/0.1192, allocations: 31.97 kB / 370 MB, free: 1.633 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.873e-05/0.1193, allocations: 23.97 kB / 370 MB, free: 1.609 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.54e-05/0.1193, allocations: 15.98 kB / 370 MB, free: 1.594 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002306/0.1196, allocations: 227 kB / 370.2 MB, free: 1.375 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1196, allocations: 0 / 370.2 MB, free: 1.375 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003254/0.1199, allocations: 71.84 kB / 370.3 MB, free: 1.305 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001402/0.12, allocations: 119.2 kB / 370.4 MB, free: 1.18 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006376/0.1207, allocations: 342 kB / 370.8 MB, free: 0.8359 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.1207, allocations: 0 / 370.8 MB, free: 0.8359 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002931/0.121, allocations: 136.8 kB / 370.9 MB, free: 0.7031 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000329/0.1213, allocations: 57 kB / 370.9 MB, free: 0.6484 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1685/0.2898, allocations: 0.6933 MB / 371.6 MB, free: 19.19 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002991/0.2902, allocations: 0.7924 MB / 372.4 MB, free: 18.49 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000299/0.2905, allocations: 47.77 kB / 372.5 MB, free: 18.49 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001119/0.2906, allocations: 34.81 kB / 372.5 MB, free: 18.48 MB / 302.1 MB Notification: Performance of SimCode: time 1.092e-06/0.2906, allocations: 0 / 372.5 MB, free: 18.48 MB / 302.1 MB Notification: Performance of Templates: time 0.007894/0.2985, allocations: 3.132 MB / 375.6 MB, free: 18.35 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)