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.001572/0.001572, allocations: 118.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001957/0.001957, allocations: 198 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.393/1.393, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001233/0.001233, allocations: 59.91 kB / 358.2 MB, free: 13.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2522/0.2534, allocations: 50.55 MB / 408.8 MB, free: 1.508 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemoSignalCharacteristic): time 0.00318/0.2566, allocations: 2.278 MB / 411 MB, free: 15.23 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001554/0.2582, allocations: 0.9464 MB / 412 MB, free: 14.27 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001321/0.2584, allocations: 4 kB / 412 MB, free: 14.27 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001414/0.2585, allocations: 35.53 kB / 412 MB, free: 14.23 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003289/0.2589, allocations: 119.2 kB / 412.1 MB, free: 14.11 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003488/0.2592, allocations: 159.7 kB / 412.3 MB, free: 13.96 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004306/0.2597, allocations: 438.8 kB / 412.7 MB, free: 13.53 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000217/0.2599, allocations: 119.5 kB / 412.8 MB, free: 13.41 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002606/0.2602, allocations: 187.2 kB / 413 MB, free: 13.22 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000244/0.2604, allocations: 179.2 kB / 413.2 MB, free: 13.05 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.55e-05/0.2605, allocations: 39.94 kB / 413.2 MB, free: 13.01 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001042/0.2606, allocations: 63.97 kB / 413.3 MB, free: 12.95 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.901e-05/0.2607, allocations: 87.69 kB / 413.4 MB, free: 12.86 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001667/0.2609, allocations: 187 kB / 413.6 MB, free: 12.68 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004271/0.2613, allocations: 421.3 kB / 414 MB, free: 12.27 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.449e-06/0.2613, allocations: 3.938 kB / 414 MB, free: 12.26 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.2613, allocations: 0 / 414 MB, free: 12.26 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.382e-06/0.2613, allocations: 0 / 414 MB, free: 12.26 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.001404/0.2627, allocations: 0.7324 MB / 414.7 MB, free: 11.48 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.788e-05/0.2628, allocations: 8.031 kB / 414.7 MB, free: 11.47 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.674e-05/0.2629, allocations: 58.73 kB / 414.8 MB, free: 11.4 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002814/0.2631, allocations: 72.56 kB / 414.9 MB, free: 11.33 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005394/0.2637, allocations: 392.6 kB / 415.2 MB, free: 10.91 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.442e-05/0.2637, allocations: 20.81 kB / 415.3 MB, free: 10.89 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.752e-05/0.2638, allocations: 28.38 kB / 415.3 MB, free: 10.86 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005005/0.2643, allocations: 251.3 kB / 415.5 MB, free: 10.61 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.758e-05/0.2643, allocations: 7.891 kB / 415.5 MB, free: 10.61 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.332e-05/0.2644, allocations: 15.98 kB / 415.6 MB, free: 10.59 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.236e-06/0.2644, allocations: 4 kB / 415.6 MB, free: 10.59 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004787/0.2649, allocations: 185.6 kB / 415.7 MB, free: 10.4 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001297/0.2662, allocations: 0.7869 MB / 416.5 MB, free: 9.566 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004689/0.2666, allocations: 182.7 kB / 416.7 MB, free: 9.379 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002298/0.2669, allocations: 96.8 kB / 416.8 MB, free: 9.281 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.881e-05/0.2669, allocations: 3.938 kB / 416.8 MB, free: 9.277 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004502/0.2674, allocations: 241 kB / 417 MB, free: 9.027 MB / 334.1 MB Notification: Performance of pre-optimization done (n=28): time 1.723e-06/0.2674, allocations: 0 / 417 MB, free: 9.027 MB / 334.1 MB Notification: Performance of matching and sorting (n=28): time 0.0009249/0.2683, allocations: 387.3 kB / 417.4 MB, free: 8.645 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.192e-05/0.2684, allocations: 59.41 kB / 417.5 MB, free: 8.574 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003125/0.2687, allocations: 320.5 kB / 417.8 MB, free: 8.258 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.52e-05/0.2687, allocations: 41.69 kB / 417.8 MB, free: 8.211 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001156/0.2689, allocations: 184.8 kB / 418 MB, free: 8.027 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.354e-05/0.2689, allocations: 87.27 kB / 418.1 MB, free: 7.941 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000103/0.269, allocations: 74.06 kB / 418.2 MB, free: 7.859 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001148/0.2692, allocations: 346.8 kB / 418.5 MB, free: 7.512 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002517/0.2694, allocations: 96.69 kB / 418.6 MB, free: 7.418 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003237/0.2698, allocations: 234.6 kB / 418.8 MB, free: 7.129 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005854/0.2704, allocations: 381.2 kB / 419.2 MB, free: 6.691 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.278e-06/0.2704, allocations: 0 / 419.2 MB, free: 6.691 MB / 334.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0007646/0.2711, allocations: 434.4 kB / 419.6 MB, free: 6.254 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.358e-05/0.2712, allocations: 38.22 kB / 419.7 MB, free: 6.211 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.02e-05/0.2712, allocations: 12 kB / 419.7 MB, free: 6.199 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.852e-05/0.2712, allocations: 4 kB / 419.7 MB, free: 6.195 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002953/0.2715, allocations: 71.89 kB / 419.7 MB, free: 6.125 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.415e-05/0.2716, allocations: 12 kB / 419.8 MB, free: 6.113 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002627/0.2718, allocations: 43.77 kB / 419.8 MB, free: 6.07 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.83e-05/0.2719, allocations: 16 kB / 419.8 MB, free: 6.055 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.0001723/0.272, allocations: 175.4 kB / 420 MB, free: 5.871 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.968e-05/0.2721, allocations: 31.81 kB / 420 MB, free: 5.84 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006743/0.2728, allocations: 310.2 kB / 420.3 MB, free: 5.527 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.963e-06/0.2728, allocations: 4 kB / 420.3 MB, free: 5.523 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.16e-06/0.2728, allocations: 3.938 kB / 420.3 MB, free: 5.52 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.352e-06/0.2728, allocations: 7.984 kB / 420.3 MB, free: 5.512 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003627/0.2732, allocations: 357.2 kB / 420.7 MB, free: 5.113 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.965e-06/0.2732, allocations: 7.984 kB / 420.7 MB, free: 5.105 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002212/0.2734, allocations: 39.97 kB / 420.7 MB, free: 5.066 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.605e-06/0.2734, allocations: 0 / 420.7 MB, free: 5.066 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.453e-05/0.2735, allocations: 4 kB / 420.7 MB, free: 5.062 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.55e-06/0.2735, allocations: 7.922 kB / 420.7 MB, free: 5.055 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.2735, allocations: 0 / 420.7 MB, free: 5.055 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009591/0.2744, allocations: 473.4 kB / 421.2 MB, free: 4.57 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.755e-05/0.2745, allocations: 112.8 kB / 421.3 MB, free: 4.441 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.379e-05/0.2746, allocations: 8.062 kB / 421.3 MB, free: 4.434 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002192/0.2748, allocations: 19.97 kB / 421.3 MB, free: 4.414 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.776e-05/0.2749, allocations: 31.97 kB / 421.4 MB, free: 4.383 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.553e-05/0.275, allocations: 11.98 kB / 421.4 MB, free: 4.371 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002402/0.2752, allocations: 227.1 kB / 421.6 MB, free: 4.148 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.2752, allocations: 0 / 421.6 MB, free: 4.148 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003285/0.2755, allocations: 75.88 kB / 421.7 MB, free: 4.074 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.001167/0.2767, allocations: 1 MB / 422.7 MB, free: 3.043 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006434/0.2774, allocations: 326.2 kB / 423 MB, free: 2.715 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.2774, allocations: 0 / 423 MB, free: 2.715 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002724/0.2777, allocations: 124.3 kB / 423.1 MB, free: 2.594 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003403/0.278, allocations: 54.44 kB / 423.2 MB, free: 2.543 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004338/0.2824, allocations: 3.499 MB / 426.7 MB, free: 14.84 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003059/0.2827, allocations: 0.7876 MB / 427.5 MB, free: 14.02 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001551/0.2829, allocations: 47.03 kB / 427.5 MB, free: 13.97 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001832/0.283, allocations: 123.3 kB / 427.6 MB, free: 13.85 MB / 350.1 MB Notification: Performance of SimCode: time 4.31e-07/0.2831, allocations: 4 kB / 427.6 MB, free: 13.85 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02723/0.3103, allocations: 6.898 MB / 434.5 MB, free: 7.047 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.089/8.399, allocations: 5.891 kB / 434.5 MB, free: 7.047 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 & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Blocks.Examples.DemoSignalCharacteristic_res.csv --start-time 0 --stop-time 0.5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0005 Modelica_trunk_Modelica_Blocks_Examples_DemoSignalCharacteristic.fmu > Modelica_trunk_Modelica.Blocks.Examples.DemoSignalCharacteristic.pipe 2>&1)