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.001209/0.001209, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001278/0.001278, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.338/1.338, allocations: 227.4 MB / 246.8 MB, free: 10.62 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001213/0.001213, allocations: 54.75 kB / 307 MB, free: 0.5391 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09172/0.09296, allocations: 50.53 MB / 357.6 MB, free: 14 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemoSignalCharacteristic): time 0.003571/0.09657, allocations: 2.281 MB / 359.9 MB, free: 11.7 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00171/0.09831, allocations: 0.9464 MB / 360.8 MB, free: 10.75 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002337/0.09857, allocations: 7.938 kB / 360.8 MB, free: 10.74 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001611/0.09878, allocations: 35.53 kB / 360.8 MB, free: 10.71 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004312/0.09922, allocations: 103.2 kB / 360.9 MB, free: 10.61 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004238/0.09965, allocations: 167.7 kB / 361.1 MB, free: 10.44 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005101/0.1002, allocations: 426.8 kB / 361.5 MB, free: 10.02 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002644/0.1005, allocations: 130.7 kB / 361.7 MB, free: 9.902 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003757/0.1008, allocations: 175.3 kB / 361.8 MB, free: 9.73 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000338/0.1012, allocations: 191.1 kB / 362 MB, free: 9.543 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001055/0.1013, allocations: 36 kB / 362 MB, free: 9.508 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001614/0.1015, allocations: 52 kB / 362.1 MB, free: 9.457 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001274/0.1016, allocations: 103.5 kB / 362.2 MB, free: 9.355 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002396/0.1019, allocations: 187 kB / 362.4 MB, free: 9.172 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005675/0.1024, allocations: 402.9 kB / 362.8 MB, free: 8.777 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.139e-06/0.1024, allocations: 0 / 362.8 MB, free: 8.777 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.154e-06/0.1025, allocations: 0 / 362.8 MB, free: 8.777 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.941e-05/0.1025, allocations: 0 / 362.8 MB, free: 8.777 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.002053/0.1045, allocations: 0.721 MB / 363.5 MB, free: 7.992 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.735e-05/0.1046, allocations: 8.031 kB / 363.5 MB, free: 7.984 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.291e-05/0.1047, allocations: 62.72 kB / 363.6 MB, free: 7.914 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003733/0.1051, allocations: 64.44 kB / 363.6 MB, free: 7.852 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006419/0.1057, allocations: 384.3 kB / 364 MB, free: 7.441 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.76e-05/0.1058, allocations: 20.81 kB / 364 MB, free: 7.422 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.665e-05/0.1058, allocations: 28.31 kB / 364 MB, free: 7.395 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005406/0.1064, allocations: 259.3 kB / 364.3 MB, free: 7.133 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.55e-05/0.1064, allocations: 0 / 364.3 MB, free: 7.133 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.127e-05/0.1064, allocations: 11.98 kB / 364.3 MB, free: 7.121 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.348e-06/0.1065, allocations: 12 kB / 364.3 MB, free: 7.109 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005043/0.107, allocations: 181.6 kB / 364.5 MB, free: 6.934 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001556/0.1085, allocations: 0.7905 MB / 365.3 MB, free: 6.09 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005188/0.1091, allocations: 190.7 kB / 365.5 MB, free: 5.895 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002474/0.1093, allocations: 92.19 kB / 365.6 MB, free: 5.805 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.008e-05/0.1094, allocations: 3.938 kB / 365.6 MB, free: 5.801 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004951/0.1099, allocations: 250.5 kB / 365.8 MB, free: 5.543 MB / 302.1 MB Notification: Performance of pre-optimization done (n=28): time 2.986e-06/0.1099, allocations: 4 kB / 365.8 MB, free: 5.539 MB / 302.1 MB Notification: Performance of matching and sorting (n=28): time 0.0009947/0.1109, allocations: 375.2 kB / 366.2 MB, free: 5.168 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.774e-05/0.1109, allocations: 55.41 kB / 366.2 MB, free: 5.102 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003898/0.1113, allocations: 320.5 kB / 366.6 MB, free: 4.777 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.348e-05/0.1114, allocations: 37.7 kB / 366.6 MB, free: 4.734 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001275/0.1115, allocations: 192.5 kB / 366.8 MB, free: 4.543 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.526e-05/0.1116, allocations: 82.8 kB / 366.9 MB, free: 4.461 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001171/0.1117, allocations: 74.06 kB / 366.9 MB, free: 4.379 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001177/0.1119, allocations: 346.8 kB / 367.3 MB, free: 4.031 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002814/0.1121, allocations: 96.69 kB / 367.4 MB, free: 3.938 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003389/0.1125, allocations: 234.6 kB / 367.6 MB, free: 3.648 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000611/0.1131, allocations: 378.5 kB / 368 MB, free: 3.211 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.32e-06/0.1131, allocations: 0 / 368 MB, free: 3.211 MB / 302.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0008981/0.114, allocations: 425.1 kB / 368.4 MB, free: 2.785 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.268e-05/0.1141, allocations: 37.69 kB / 368.4 MB, free: 2.742 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.232e-05/0.1141, allocations: 4 kB / 368.4 MB, free: 2.738 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.21e-05/0.1141, allocations: 12.47 kB / 368.4 MB, free: 2.727 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000302/0.1145, allocations: 79.83 kB / 368.5 MB, free: 2.648 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.244e-05/0.1145, allocations: 4 kB / 368.5 MB, free: 2.645 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003209/0.1148, allocations: 47.67 kB / 368.6 MB, free: 2.598 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.086e-05/0.1148, allocations: 15.98 kB / 368.6 MB, free: 2.582 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 (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.0002378/0.1151, allocations: 180.4 kB / 368.8 MB, free: 2.395 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.276e-05/0.1152, allocations: 31.62 kB / 368.8 MB, free: 2.363 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007505/0.1159, allocations: 309.3 kB / 369.1 MB, free: 2.055 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.206e-06/0.116, allocations: 11.92 kB / 369.1 MB, free: 2.043 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.165e-06/0.116, allocations: 4.062 kB / 369.1 MB, free: 2.039 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.742e-06/0.116, allocations: 3.984 kB / 369.1 MB, free: 2.035 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003786/0.1164, allocations: 365.2 kB / 369.5 MB, free: 1.629 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.599e-06/0.1164, allocations: 4 kB / 369.5 MB, free: 1.625 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002362/0.1166, allocations: 35.97 kB / 369.5 MB, free: 1.59 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.521e-06/0.1166, allocations: 4 kB / 369.5 MB, free: 1.586 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.849e-05/0.1167, allocations: 7.984 kB / 369.5 MB, free: 1.578 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.63e-06/0.1167, allocations: 7.984 kB / 369.5 MB, free: 1.57 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.1167, allocations: 0 / 369.5 MB, free: 1.57 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001013/0.1177, allocations: 454.1 kB / 370 MB, free: 1.105 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.19e-05/0.1178, allocations: 112.7 kB / 370.1 MB, free: 0.9766 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.97e-05/0.1179, allocations: 8 kB / 370.1 MB, free: 0.9688 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002559/0.1181, allocations: 23.97 kB / 370.1 MB, free: 0.9453 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.974e-05/0.1182, allocations: 23.97 kB / 370.1 MB, free: 0.9219 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.719e-05/0.1183, allocations: 15.98 kB / 370.1 MB, free: 0.9062 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002622/0.1185, allocations: 231.1 kB / 370.4 MB, free: 0.6836 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1185, allocations: 0 / 370.4 MB, free: 0.6836 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003683/0.1189, allocations: 71.83 kB / 370.4 MB, free: 0.6133 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 (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.1582/0.2771, allocations: 0.9932 MB / 371.4 MB, free: 19.71 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008022/0.278, allocations: 338.2 kB / 371.8 MB, free: 19.65 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.507e-06/0.278, allocations: 0.5312 kB / 371.8 MB, free: 19.65 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002945/0.2783, allocations: 129.6 kB / 371.9 MB, free: 19.65 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003973/0.2787, allocations: 49.48 kB / 371.9 MB, free: 19.65 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004569/0.2833, allocations: 3.539 MB / 375.5 MB, free: 17.77 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002145/0.2835, allocations: 0.7865 MB / 376.3 MB, free: 17.07 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002099/0.2837, allocations: 51.61 kB / 376.3 MB, free: 17.06 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001629/0.2839, allocations: 126.3 kB / 376.4 MB, free: 16.97 MB / 302.1 MB Notification: Performance of SimCode: time 6.21e-07/0.2839, allocations: 0 / 376.4 MB, free: 16.97 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02762/0.3115, allocations: 6.78 MB / 383.2 MB, free: 15.8 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.589/7.9, allocations: 5.562 kB / 383.2 MB, free: 15.79 MB / 302.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)