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.001839/0.001839, allocations: 108.4 kB / 18.45 MB, free: 4.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002472/0.002472, allocations: 205.9 kB / 19.4 MB, free: 3.66 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.499/2.499, allocations: 227.4 MB / 247.6 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002517/0.002517, allocations: 63.89 kB / 359.4 MB, free: 12.96 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4865/0.4891, allocations: 50.55 MB / 409.9 MB, free: 1.613 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemoSignalCharacteristic): time 0.007552/0.4967, allocations: 2.275 MB / 412.2 MB, free: 15.33 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003526/0.5003, allocations: 0.9425 MB / 413.1 MB, free: 14.38 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004222/0.5008, allocations: 4 kB / 413.2 MB, free: 14.38 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003084/0.5012, allocations: 43.48 kB / 413.2 MB, free: 14.34 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000824/0.502, allocations: 107.2 kB / 413.3 MB, free: 14.23 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000796/0.5028, allocations: 167.7 kB / 413.5 MB, free: 14.07 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009493/0.5038, allocations: 434.8 kB / 413.9 MB, free: 13.64 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000436/0.5043, allocations: 115.5 kB / 414 MB, free: 13.52 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005808/0.5049, allocations: 183.2 kB / 414.2 MB, free: 13.34 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006074/0.5055, allocations: 191.1 kB / 414.4 MB, free: 13.16 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001409/0.5057, allocations: 40 kB / 414.4 MB, free: 13.12 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002257/0.5059, allocations: 52 kB / 414.5 MB, free: 13.07 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000178/0.5061, allocations: 99.59 kB / 414.6 MB, free: 12.97 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000387/0.5065, allocations: 179 kB / 414.7 MB, free: 12.79 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009101/0.5075, allocations: 411.7 kB / 415.1 MB, free: 12.39 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.364e-06/0.5075, allocations: 8 kB / 415.1 MB, free: 12.39 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.366e-06/0.5075, allocations: 0 / 415.1 MB, free: 12.39 MB / 334.1 MB Notification: Performance of Transformations before backend: time 3.101e-05/0.5076, allocations: 0 / 415.1 MB, free: 12.39 MB / 334.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.003079/0.5106, allocations: 0.7209 MB / 415.9 MB, free: 11.61 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.618e-05/0.5107, allocations: 15.97 kB / 415.9 MB, free: 11.6 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006207/0.5114, allocations: 60.44 kB / 415.9 MB, free: 11.54 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001156/0.5125, allocations: 380.3 kB / 416.3 MB, free: 11.13 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.398e-05/0.5126, allocations: 24.81 kB / 416.3 MB, free: 11.1 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001118/0.5128, allocations: 36.3 kB / 416.4 MB, free: 11.07 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001086/0.5139, allocations: 251.5 kB / 416.6 MB, free: 10.82 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.431e-05/0.5139, allocations: 3.906 kB / 416.6 MB, free: 10.82 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.228e-05/0.514, allocations: 15.94 kB / 416.6 MB, free: 10.8 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.829e-05/0.514, allocations: 4 kB / 416.6 MB, free: 10.8 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009181/0.515, allocations: 193.5 kB / 416.8 MB, free: 10.61 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002549/0.5175, allocations: 0.775 MB / 417.6 MB, free: 9.781 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000885/0.5184, allocations: 194.7 kB / 417.8 MB, free: 9.582 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004948/0.519, allocations: 88.8 kB / 417.9 MB, free: 9.492 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.056e-05/0.519, allocations: 4 kB / 417.9 MB, free: 9.488 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008754/0.5199, allocations: 241 kB / 418.1 MB, free: 9.238 MB / 334.1 MB Notification: Performance of pre-optimization done (n=28): time 5.961e-06/0.52, allocations: 0 / 418.1 MB, free: 9.238 MB / 334.1 MB Notification: Performance of matching and sorting (n=28): time 0.001938/0.5219, allocations: 387.2 kB / 418.5 MB, free: 8.855 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.002e-05/0.522, allocations: 59.39 kB / 418.6 MB, free: 8.785 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000779/0.5228, allocations: 320.5 kB / 418.9 MB, free: 8.469 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 8.79e-05/0.5229, allocations: 37.7 kB / 418.9 MB, free: 8.426 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002755/0.5232, allocations: 192.5 kB / 419.1 MB, free: 8.234 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000174/0.5234, allocations: 86.8 kB / 419.2 MB, free: 8.148 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002468/0.5237, allocations: 70.06 kB / 419.2 MB, free: 8.07 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002875/0.524, allocations: 346.8 kB / 419.6 MB, free: 7.723 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005743/0.5246, allocations: 96.69 kB / 419.7 MB, free: 7.629 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007314/0.5253, allocations: 234.5 kB / 419.9 MB, free: 7.34 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001345/0.5267, allocations: 377.4 kB / 420.3 MB, free: 6.906 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.555e-05/0.5267, allocations: 8 kB / 420.3 MB, free: 6.898 MB / 334.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.00174/0.5285, allocations: 434.2 kB / 420.7 MB, free: 6.461 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.477e-05/0.5286, allocations: 33.7 kB / 420.7 MB, free: 6.422 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.03e-05/0.5286, allocations: 4 kB / 420.7 MB, free: 6.418 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.862e-05/0.5287, allocations: 8.531 kB / 420.7 MB, free: 6.41 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005705/0.5293, allocations: 71.89 kB / 420.8 MB, free: 6.34 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.395e-05/0.5293, allocations: 15.92 kB / 420.8 MB, free: 6.324 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005902/0.5299, allocations: 39.67 kB / 420.9 MB, free: 6.285 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.162e-05/0.53, allocations: 20 kB / 420.9 MB, free: 6.266 MB / 334.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.0003798/0.5304, allocations: 163.5 kB / 421.1 MB, free: 6.094 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001612/0.5306, allocations: 35.56 kB / 421.1 MB, free: 6.059 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001453/0.5321, allocations: 314.2 kB / 421.4 MB, free: 5.742 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.644e-06/0.5321, allocations: 4 kB / 421.4 MB, free: 5.738 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.327e-05/0.5321, allocations: 0 / 421.4 MB, free: 5.738 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.343e-06/0.5322, allocations: 3.938 kB / 421.4 MB, free: 5.734 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007056/0.5329, allocations: 365.2 kB / 421.8 MB, free: 5.328 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.46e-06/0.5329, allocations: 7.938 kB / 421.8 MB, free: 5.32 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004524/0.5334, allocations: 39.97 kB / 421.8 MB, free: 5.281 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.325e-05/0.5334, allocations: 3.984 kB / 421.8 MB, free: 5.277 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.736e-05/0.5335, allocations: 4 kB / 421.8 MB, free: 5.273 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.921e-06/0.5335, allocations: 3.938 kB / 421.8 MB, free: 5.27 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.986e-06/0.5335, allocations: 0 / 421.8 MB, free: 5.27 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001951/0.5355, allocations: 469.1 kB / 422.3 MB, free: 4.789 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001784/0.5357, allocations: 104.7 kB / 422.4 MB, free: 4.668 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001006/0.5358, allocations: 12.05 kB / 422.4 MB, free: 4.656 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004086/0.5362, allocations: 15.98 kB / 422.4 MB, free: 4.641 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001571/0.5364, allocations: 31.95 kB / 422.4 MB, free: 4.609 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.944e-05/0.5364, allocations: 11.98 kB / 422.4 MB, free: 4.598 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004842/0.5369, allocations: 231.1 kB / 422.7 MB, free: 4.371 MB / 334.1 MB Notification: Performance of sort global known variables: time 4.91e-07/0.537, allocations: 0 / 422.7 MB, free: 4.371 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0007035/0.5377, allocations: 75.84 kB / 422.7 MB, free: 4.297 MB / 334.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.0002638/0.538, allocations: 118.7 kB / 422.9 MB, free: 4.172 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001332/0.5393, allocations: 327 kB / 423.2 MB, free: 3.84 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.859e-06/0.5393, allocations: 0 / 423.2 MB, free: 3.84 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005952/0.5399, allocations: 127.8 kB / 423.3 MB, free: 3.715 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006581/0.5406, allocations: 62.48 kB / 423.4 MB, free: 3.656 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002224/0.5429, allocations: 0.6352 MB / 424 MB, free: 2.988 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007306/0.5436, allocations: 0.7876 MB / 424.8 MB, free: 2.168 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002083/0.5439, allocations: 39.42 kB / 424.8 MB, free: 2.129 MB / 334.1 MB Notification: Performance of SimCode: time 4.61e-07/0.5439, allocations: 0 / 424.8 MB, free: 2.129 MB / 334.1 MB Notification: Performance of Templates: time 0.01458/0.5585, allocations: 4.353 MB / 429.2 MB, free: 13.79 MB / 350.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)