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: "" <> buildModelFMU(Modelica.Blocks.Examples.DemoSignalCharacteristic,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_DemoSignalCharacteristic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.DemoSignalCharacteristic,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_DemoSignalCharacteristic",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001159/0.001159, allocations: 118.8 kB / 17.79 MB, free: 5.281 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001705/0.001705, allocations: 202 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.481/1.481, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001416/0.001416, allocations: 63.89 kB / 358.2 MB, free: 13.44 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3714/0.3729, allocations: 50.55 MB / 408.8 MB, free: 1.551 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemoSignalCharacteristic): time 0.00354/0.3764, allocations: 2.279 MB / 411 MB, free: 15.27 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001808/0.3783, allocations: 0.9542 MB / 412 MB, free: 14.3 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001587/0.3785, allocations: 4 kB / 412 MB, free: 14.3 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000157/0.3787, allocations: 35.55 kB / 412 MB, free: 14.26 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003752/0.379, allocations: 107.2 kB / 412.1 MB, free: 14.16 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003995/0.3795, allocations: 159.7 kB / 412.3 MB, free: 14 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004724/0.3799, allocations: 434.8 kB / 412.7 MB, free: 13.57 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002456/0.3802, allocations: 115.4 kB / 412.8 MB, free: 13.46 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003634/0.3806, allocations: 187.2 kB / 413 MB, free: 13.27 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002981/0.3809, allocations: 191.1 kB / 413.2 MB, free: 13.09 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.674e-05/0.381, allocations: 39.98 kB / 413.2 MB, free: 13.05 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001194/0.3811, allocations: 51.98 kB / 413.3 MB, free: 13 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001044/0.3812, allocations: 95.62 kB / 413.4 MB, free: 12.9 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001838/0.3814, allocations: 183 kB / 413.6 MB, free: 12.72 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005/0.3819, allocations: 416.2 kB / 414 MB, free: 12.32 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.502e-06/0.3819, allocations: 0 / 414 MB, free: 12.32 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.3819, allocations: 0 / 414 MB, free: 12.32 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.116e-06/0.3819, allocations: 0 / 414 MB, free: 12.32 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.001759/0.3837, allocations: 0.7249 MB / 414.7 MB, free: 11.54 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.086e-05/0.3838, allocations: 8.031 kB / 414.7 MB, free: 11.53 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.808e-05/0.3839, allocations: 62.67 kB / 414.8 MB, free: 11.46 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003301/0.3842, allocations: 60.44 kB / 414.8 MB, free: 11.4 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006739/0.3849, allocations: 388.3 kB / 415.2 MB, free: 10.98 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.19e-05/0.3849, allocations: 20.81 kB / 415.2 MB, free: 10.96 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.624e-05/0.385, allocations: 28.38 kB / 415.2 MB, free: 10.93 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005538/0.3855, allocations: 259.2 kB / 415.5 MB, free: 10.68 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.021e-05/0.3856, allocations: 7.906 kB / 415.5 MB, free: 10.67 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.105e-05/0.3856, allocations: 11.98 kB / 415.5 MB, free: 10.66 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.165e-06/0.3856, allocations: 4 kB / 415.5 MB, free: 10.66 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000502/0.3861, allocations: 189.5 kB / 415.7 MB, free: 10.47 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001346/0.3875, allocations: 0.7828 MB / 416.5 MB, free: 9.637 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005/0.388, allocations: 190.7 kB / 416.7 MB, free: 9.441 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002506/0.3883, allocations: 88.19 kB / 416.8 MB, free: 9.355 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.179e-05/0.3883, allocations: 11.92 kB / 416.8 MB, free: 9.344 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005186/0.3888, allocations: 245 kB / 417 MB, free: 9.09 MB / 334.1 MB Notification: Performance of pre-optimization done (n=28): time 1.893e-06/0.3888, allocations: 0 / 417 MB, free: 9.09 MB / 334.1 MB Notification: Performance of matching and sorting (n=28): time 0.001032/0.3899, allocations: 383.2 kB / 417.4 MB, free: 8.711 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.33e-05/0.39, allocations: 55.41 kB / 417.4 MB, free: 8.645 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003991/0.3904, allocations: 324.5 kB / 417.8 MB, free: 8.324 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.202e-05/0.3904, allocations: 37.7 kB / 417.8 MB, free: 8.281 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001547/0.3906, allocations: 184.5 kB / 418 MB, free: 8.098 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.978e-05/0.3907, allocations: 86.8 kB / 418.1 MB, free: 8.012 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001189/0.3908, allocations: 78.06 kB / 418.1 MB, free: 7.926 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001488/0.391, allocations: 342.8 kB / 418.5 MB, free: 7.582 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002856/0.3912, allocations: 100.7 kB / 418.6 MB, free: 7.484 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003651/0.3916, allocations: 234.5 kB / 418.8 MB, free: 7.195 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006422/0.3923, allocations: 374.5 kB / 419.2 MB, free: 6.762 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.299e-06/0.3923, allocations: 4 kB / 419.2 MB, free: 6.758 MB / 334.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0008725/0.3932, allocations: 426.4 kB / 419.6 MB, free: 6.328 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.232e-05/0.3932, allocations: 40.34 kB / 419.6 MB, free: 6.285 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.205e-05/0.3932, allocations: 4 kB / 419.6 MB, free: 6.281 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.509e-05/0.3933, allocations: 11.94 kB / 419.6 MB, free: 6.27 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000295/0.3936, allocations: 68.33 kB / 419.7 MB, free: 6.203 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.053e-05/0.3936, allocations: 15.94 kB / 419.7 MB, free: 6.188 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002861/0.3939, allocations: 39.67 kB / 419.8 MB, free: 6.148 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.343e-05/0.3939, allocations: 23.98 kB / 419.8 MB, free: 6.125 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.0002177/0.3942, allocations: 171.4 kB / 419.9 MB, free: 5.945 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.467e-05/0.3942, allocations: 31.62 kB / 420 MB, free: 5.914 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007579/0.395, allocations: 314.2 kB / 420.3 MB, free: 5.598 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.01e-06/0.395, allocations: 3.938 kB / 420.3 MB, free: 5.594 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.071e-06/0.395, allocations: 0 / 420.3 MB, free: 5.594 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.075e-06/0.395, allocations: 7.984 kB / 420.3 MB, free: 5.586 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000408/0.3955, allocations: 365.2 kB / 420.7 MB, free: 5.18 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.053e-06/0.3955, allocations: 0 / 420.7 MB, free: 5.18 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002383/0.3957, allocations: 39.97 kB / 420.7 MB, free: 5.141 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.642e-06/0.3957, allocations: 4 kB / 420.7 MB, free: 5.137 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.202e-05/0.3958, allocations: 15.92 kB / 420.7 MB, free: 5.121 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.144e-06/0.3958, allocations: 0 / 420.7 MB, free: 5.121 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.442e-06/0.3958, allocations: 4.062 kB / 420.7 MB, free: 5.117 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001035/0.3968, allocations: 461.1 kB / 421.2 MB, free: 4.645 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.713e-05/0.3969, allocations: 108.7 kB / 421.3 MB, free: 4.52 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.23e-05/0.397, allocations: 8.062 kB / 421.3 MB, free: 4.512 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002235/0.3972, allocations: 23.97 kB / 421.3 MB, free: 4.488 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.974e-05/0.3973, allocations: 23.97 kB / 421.3 MB, free: 4.465 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.603e-05/0.3973, allocations: 11.98 kB / 421.3 MB, free: 4.453 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002424/0.3976, allocations: 227.1 kB / 421.6 MB, free: 4.23 MB / 334.1 MB Notification: Performance of sort global known variables: time 3.2e-07/0.3976, allocations: 4 kB / 421.6 MB, free: 4.227 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000348/0.398, allocations: 79.83 kB / 421.6 MB, free: 4.148 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.001284/0.3992, allocations: 0.9959 MB / 422.6 MB, free: 3.121 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0007428/0.4, allocations: 319.8 kB / 423 MB, free: 2.797 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 6.713e-06/0.4, allocations: 4.312 kB / 423 MB, free: 2.793 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003276/0.4004, allocations: 124.3 kB / 423.1 MB, free: 2.672 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004738/0.4008, allocations: 60.92 kB / 423.1 MB, free: 2.613 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005442/0.4063, allocations: 3.476 MB / 426.6 MB, free: 14.93 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003936/0.4067, allocations: 0.7876 MB / 427.4 MB, free: 14.12 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001919/0.4069, allocations: 47.03 kB / 427.4 MB, free: 14.07 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001872/0.4071, allocations: 123.4 kB / 427.6 MB, free: 13.95 MB / 350.1 MB Notification: Performance of SimCode: time 9.92e-07/0.4071, allocations: 4 kB / 427.6 MB, free: 13.94 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02896/0.4361, allocations: 7.049 MB / 434.6 MB, free: 6.992 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.191/8.627, allocations: 0 / 434.6 MB, free: 6.992 MB / 350.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Modelica_trunk_Modelica_Blocks_Examples_DemoSignalCharacteristic_fmu --startTime=0 --stopTime=0.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Blocks_Examples_DemoSignalCharacteristic.fmu > Modelica_trunk_Modelica.Blocks.Examples.DemoSignalCharacteristic.pipe 2>&1)