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.001366/0.001366, allocations: 117.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001344/0.001344, allocations: 199.8 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.528/1.528, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001784/0.001784, allocations: 63.89 kB / 358.2 MB, free: 13.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2946/0.2964, allocations: 50.53 MB / 408.8 MB, free: 1.52 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemoSignalCharacteristic): time 0.003794/0.3002, allocations: 2.297 MB / 411.1 MB, free: 15.22 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00183/0.3021, allocations: 0.9386 MB / 412 MB, free: 14.27 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001448/0.3023, allocations: 4 kB / 412 MB, free: 14.27 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001548/0.3024, allocations: 35.48 kB / 412 MB, free: 14.23 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003813/0.3028, allocations: 111.2 kB / 412.1 MB, free: 14.12 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004133/0.3033, allocations: 163.7 kB / 412.3 MB, free: 13.96 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005641/0.3039, allocations: 438.8 kB / 412.7 MB, free: 13.53 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000258/0.3041, allocations: 111.5 kB / 412.8 MB, free: 13.42 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003244/0.3045, allocations: 179.2 kB / 413 MB, free: 13.24 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003444/0.3048, allocations: 195.1 kB / 413.2 MB, free: 13.05 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.268e-05/0.3049, allocations: 36 kB / 413.2 MB, free: 13.02 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001095/0.305, allocations: 55.98 kB / 413.3 MB, free: 12.96 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001021/0.3051, allocations: 99.61 kB / 413.4 MB, free: 12.86 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001952/0.3053, allocations: 187 kB / 413.6 MB, free: 12.68 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005592/0.3059, allocations: 413.4 kB / 414 MB, free: 12.28 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.272e-06/0.3059, allocations: 0 / 414 MB, free: 12.28 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.3059, allocations: 3.938 kB / 414 MB, free: 12.27 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.344e-06/0.3059, allocations: 0 / 414 MB, free: 12.27 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.001692/0.3076, allocations: 0.7324 MB / 414.7 MB, free: 11.49 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.315e-05/0.3077, allocations: 8.031 kB / 414.7 MB, free: 11.48 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.08e-05/0.3078, allocations: 58.72 kB / 414.8 MB, free: 11.41 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000314/0.3081, allocations: 68.64 kB / 414.8 MB, free: 11.35 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000679/0.3088, allocations: 388.6 kB / 415.2 MB, free: 10.93 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.853e-05/0.3088, allocations: 16.81 kB / 415.2 MB, free: 10.91 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.496e-05/0.3089, allocations: 28.38 kB / 415.3 MB, free: 10.88 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005819/0.3095, allocations: 259.2 kB / 415.5 MB, free: 10.63 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.549e-05/0.3095, allocations: 15.88 kB / 415.5 MB, free: 10.61 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.022e-05/0.3096, allocations: 8 kB / 415.5 MB, free: 10.61 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.917e-06/0.3096, allocations: 8 kB / 415.6 MB, free: 10.6 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004938/0.3101, allocations: 181.6 kB / 415.7 MB, free: 10.42 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001489/0.3116, allocations: 0.783 MB / 416.5 MB, free: 9.586 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005477/0.3122, allocations: 190.2 kB / 416.7 MB, free: 9.395 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002477/0.3124, allocations: 84.81 kB / 416.8 MB, free: 9.309 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.758e-05/0.3125, allocations: 15.92 kB / 416.8 MB, free: 9.293 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005235/0.313, allocations: 241 kB / 417 MB, free: 9.043 MB / 334.1 MB Notification: Performance of pre-optimization done (n=28): time 1.923e-06/0.313, allocations: 0 / 417 MB, free: 9.043 MB / 334.1 MB Notification: Performance of matching and sorting (n=28): time 0.0009841/0.314, allocations: 383.3 kB / 417.4 MB, free: 8.664 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.725e-05/0.3141, allocations: 59.41 kB / 417.5 MB, free: 8.594 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003713/0.3144, allocations: 324.5 kB / 417.8 MB, free: 8.273 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.039e-05/0.3145, allocations: 33.7 kB / 417.8 MB, free: 8.234 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001368/0.3147, allocations: 180.8 kB / 418 MB, free: 8.055 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001341/0.3148, allocations: 95.27 kB / 418.1 MB, free: 7.961 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001146/0.3149, allocations: 70.06 kB / 418.2 MB, free: 7.883 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001802/0.3151, allocations: 350.8 kB / 418.5 MB, free: 7.531 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002727/0.3154, allocations: 108.7 kB / 418.6 MB, free: 7.426 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004047/0.3158, allocations: 230.5 kB / 418.8 MB, free: 7.141 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006576/0.3165, allocations: 386.5 kB / 419.2 MB, free: 6.695 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.107e-05/0.3165, allocations: 0 / 419.2 MB, free: 6.695 MB / 334.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0008983/0.3174, allocations: 434.7 kB / 419.6 MB, free: 6.258 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.165e-05/0.3175, allocations: 36.05 kB / 419.7 MB, free: 6.219 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.937e-06/0.3175, allocations: 4 kB / 419.7 MB, free: 6.215 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.95e-05/0.3175, allocations: 8 kB / 419.7 MB, free: 6.207 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002885/0.3178, allocations: 67.89 kB / 419.7 MB, free: 6.141 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.306e-05/0.3178, allocations: 7.938 kB / 419.8 MB, free: 6.133 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002799/0.3181, allocations: 48.11 kB / 419.8 MB, free: 6.086 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.063e-05/0.3182, allocations: 19.98 kB / 419.8 MB, free: 6.066 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.0002478/0.3184, allocations: 167.4 kB / 420 MB, free: 5.891 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.196e-05/0.3185, allocations: 35.8 kB / 420 MB, free: 5.855 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007486/0.3192, allocations: 306.2 kB / 420.3 MB, free: 5.547 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.163e-06/0.3193, allocations: 11.92 kB / 420.3 MB, free: 5.535 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.238e-06/0.3193, allocations: 0 / 420.3 MB, free: 5.535 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.168e-06/0.3193, allocations: 0 / 420.3 MB, free: 5.535 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004206/0.3197, allocations: 365.2 kB / 420.7 MB, free: 5.129 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.3197, allocations: 0 / 420.7 MB, free: 5.129 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002316/0.32, allocations: 39.91 kB / 420.7 MB, free: 5.09 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.58e-06/0.32, allocations: 4 kB / 420.7 MB, free: 5.086 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.588e-05/0.32, allocations: 11.98 kB / 420.7 MB, free: 5.074 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.008e-06/0.32, allocations: 4 kB / 420.7 MB, free: 5.07 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.32, allocations: 0 / 420.7 MB, free: 5.07 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00106/0.3211, allocations: 465.5 kB / 421.2 MB, free: 4.594 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001011/0.3212, allocations: 116.8 kB / 421.3 MB, free: 4.461 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.452e-05/0.3213, allocations: 12.06 kB / 421.3 MB, free: 4.449 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002256/0.3215, allocations: 23.97 kB / 421.3 MB, free: 4.426 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.33e-05/0.3216, allocations: 23.97 kB / 421.4 MB, free: 4.402 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.38e-05/0.3216, allocations: 11.98 kB / 421.4 MB, free: 4.391 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003023/0.3219, allocations: 231.1 kB / 421.6 MB, free: 4.164 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.3219, allocations: 0 / 421.6 MB, free: 4.164 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003663/0.3223, allocations: 71.88 kB / 421.7 MB, free: 4.094 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.001376/0.3237, allocations: 1.004 MB / 422.7 MB, free: 3.059 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0007679/0.3245, allocations: 327.1 kB / 423 MB, free: 2.727 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.3245, allocations: 1.062 kB / 423 MB, free: 2.727 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003179/0.3248, allocations: 128.3 kB / 423.1 MB, free: 2.602 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000365/0.3252, allocations: 55.05 kB / 423.2 MB, free: 2.555 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00532/0.3305, allocations: 3.487 MB / 426.7 MB, free: 14.86 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004916/0.331, allocations: 0.7837 MB / 427.5 MB, free: 14.05 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001897/0.3312, allocations: 50.94 kB / 427.5 MB, free: 13.99 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002012/0.3314, allocations: 123.4 kB / 427.6 MB, free: 13.87 MB / 350.1 MB Notification: Performance of SimCode: time 6.01e-07/0.3314, allocations: 0 / 427.6 MB, free: 13.87 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03492/0.3664, allocations: 6.902 MB / 434.5 MB, free: 7.07 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.571/8.937, allocations: 8 kB / 434.5 MB, free: 7.062 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)