Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.Fluid.Movers.Examples.PumpWithPulseControl.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(IDEAS.Fluid.Movers.Examples.PumpWithPulseControl,fileNamePrefix="IDEAS_IDEAS_Fluid_Movers_Examples_PumpWithPulseControl",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.Movers.Examples.PumpWithPulseControl,fileNamePrefix="IDEAS_IDEAS_Fluid_Movers_Examples_PumpWithPulseControl",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007255/0.007255, allocations: 97.3 kB / 15.73 MB, free: 6.035 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001671/0.001671, allocations: 202.1 kB / 16.68 MB, free: 5.961 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.371/1.371, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7514/0.7514, allocations: 132.2 MB / 422.7 MB, free: 1.719 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00122/0.00122, allocations: 71.53 kB / 0.5809 GB, free: 1.113 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1887/0.1899, allocations: 80.21 MB / 0.6592 GB, free: 14.02 MB / 0.4981 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Blocks/Math.mo:543:5-544:48:writable] Warning: Parameter pump.gaiSpe.k has no value, and is fixed during initialization (fixed=true), using available start value (start=1) as default value. Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Movers.Examples.PumpWithPulseControl): time 0.03337/0.2233, allocations: 30.58 MB / 0.689 GB, free: 15.33 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.01446/0.2378, allocations: 10.21 MB / 0.699 GB, free: 5.094 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001856/0.2397, allocations: 47.69 kB / 0.6991 GB, free: 5.047 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.002418/0.2421, allocations: 0.6991 MB / 0.6997 GB, free: 4.344 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.004297/0.2465, allocations: 1.495 MB / 0.7012 GB, free: 2.844 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.003365/0.2498, allocations: 1.303 MB / 0.7025 GB, free: 1.551 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.005357/0.2552, allocations: 2.889 MB / 0.7053 GB, free: 14.65 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002297/0.2575, allocations: 0.9293 MB / 0.7062 GB, free: 13.71 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003251/0.2608, allocations: 1.169 MB / 0.7073 GB, free: 12.54 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001682/0.2625, allocations: 0.7701 MB / 0.7081 GB, free: 11.77 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.0003213/0.2628, allocations: 96 kB / 0.7082 GB, free: 11.67 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0028/0.2657, allocations: 0.7957 MB / 0.709 GB, free: 10.88 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0006689/0.2663, allocations: 331 kB / 0.7093 GB, free: 10.55 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.001482/0.2678, allocations: 0.5869 MB / 0.7099 GB, free: 9.961 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.004467/0.2723, allocations: 1.9 MB / 0.7117 GB, free: 8.055 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 5.55e-06/0.2723, allocations: 0 / 0.7117 GB, free: 8.055 MB / 0.545 GB Notification: Performance of FrontEnd: time 2.254e-06/0.2723, allocations: 0 / 0.7117 GB, free: 8.055 MB / 0.545 GB Notification: Performance of Transformations before backend: time 6.692e-05/0.2724, allocations: 4 kB / 0.7117 GB, free: 8.051 MB / 0.545 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 150 * Number of variables: 150 Notification: Performance of Generate backend data structure: time 0.003631/0.2761, allocations: 1.534 MB / 0.7132 GB, free: 6.457 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.566e-05/0.2761, allocations: 8.031 kB / 0.7132 GB, free: 6.449 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001723/0.2763, allocations: 98.7 kB / 0.7133 GB, free: 6.344 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00113/0.2774, allocations: 223.9 kB / 0.7135 GB, free: 6.125 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002259/0.2797, allocations: 1.016 MB / 0.7145 GB, free: 5.066 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.453e-05/0.2798, allocations: 45.31 kB / 0.7146 GB, free: 5.02 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001335/0.2799, allocations: 64 kB / 0.7146 GB, free: 4.957 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001449/0.2814, allocations: 0.702 MB / 0.7153 GB, free: 4.227 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.711e-05/0.2814, allocations: 4 kB / 0.7153 GB, free: 4.223 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.932e-05/0.2815, allocations: 24 kB / 0.7153 GB, free: 4.199 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.505e-05/0.2815, allocations: 12 kB / 0.7153 GB, free: 4.188 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00126/0.2828, allocations: 0.5204 MB / 0.7159 GB, free: 3.668 MB / 0.545 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004469/0.2873, allocations: 3.083 MB / 0.7189 GB, free: 416 kB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009229/0.2882, allocations: 376.7 kB / 0.7192 GB, free: 32 kB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004224/0.2886, allocations: 188.8 kB / 0.7194 GB, free: 15.84 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001819/0.2905, allocations: 1.489 MB / 0.7209 GB, free: 14.18 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005388/0.291, allocations: 240.5 kB / 0.7211 GB, free: 13.93 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=31): time 1.904e-06/0.291, allocations: 0 / 0.7211 GB, free: 13.93 MB / 0.5606 GB Notification: Performance of matching and sorting (n=31): time 0.001382/0.2924, allocations: 0.5556 MB / 0.7216 GB, free: 13.37 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.078e-05/0.2925, allocations: 55.41 kB / 0.7217 GB, free: 13.3 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001048/0.2935, allocations: 0.8995 MB / 0.7226 GB, free: 12.38 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 4.128e-05/0.2936, allocations: 37.7 kB / 0.7226 GB, free: 12.34 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003713/0.294, allocations: 496.5 kB / 0.7231 GB, free: 11.85 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 9.434e-05/0.2941, allocations: 107.1 kB / 0.7232 GB, free: 11.75 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001697/0.2942, allocations: 130.1 kB / 0.7233 GB, free: 11.61 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001056/0.2943, allocations: 326 kB / 0.7236 GB, free: 11.29 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004411/0.2948, allocations: 202.9 kB / 0.7238 GB, free: 11.09 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005604/0.2954, allocations: 398.4 kB / 0.7242 GB, free: 10.61 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009691/0.2963, allocations: 0.599 MB / 0.7248 GB, free: 9.93 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.889e-06/0.2964, allocations: 7.938 kB / 0.7248 GB, free: 9.922 MB / 0.5606 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001333/0.2977, allocations: 0.7152 MB / 0.7255 GB, free: 9.195 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 3.732e-05/0.2977, allocations: 37.73 kB / 0.7255 GB, free: 9.152 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.1e-05/0.2978, allocations: 8 kB / 0.7255 GB, free: 9.145 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.187e-05/0.2978, allocations: 11.94 kB / 0.7255 GB, free: 9.133 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000481/0.2983, allocations: 123.8 kB / 0.7256 GB, free: 9.012 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.474e-05/0.2983, allocations: 11.98 kB / 0.7257 GB, free: 9 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005648/0.2989, allocations: 76.16 kB / 0.7257 GB, free: 8.926 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.847e-05/0.2989, allocations: 31.98 kB / 0.7258 GB, free: 8.895 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006125/0.2996, allocations: 405.7 kB / 0.7261 GB, free: 8.492 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004763/0.3, allocations: 370.4 kB / 0.7265 GB, free: 8.047 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007844/0.3008, allocations: 0.5464 MB / 0.727 GB, free: 7.414 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.957e-06/0.3008, allocations: 4 kB / 0.727 GB, free: 7.41 MB / 0.5606 GB Notification: Performance of matching and sorting (n=65) (initialization_lambda0): time 0.001128/0.302, allocations: 0.6588 MB / 0.7277 GB, free: 6.738 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 2.851e-05/0.302, allocations: 37.69 kB / 0.7277 GB, free: 6.695 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.742e-06/0.302, allocations: 8 kB / 0.7277 GB, free: 6.688 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.654e-06/0.302, allocations: 8 kB / 0.7277 GB, free: 6.68 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004019/0.3025, allocations: 119.8 kB / 0.7278 GB, free: 6.562 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.376e-05/0.3025, allocations: 11.94 kB / 0.7279 GB, free: 6.551 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005008/0.303, allocations: 52.41 kB / 0.7279 GB, free: 6.5 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.699e-05/0.303, allocations: 28 kB / 0.7279 GB, free: 6.473 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 26 * Number of states: 0 () * Number of discrete variables: 5 (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 (63): * Single equations (assignments): 61 * Array equations: 1 * 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.3032, allocations: 228 kB / 0.7281 GB, free: 6.242 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001151/0.3033, allocations: 95.39 kB / 0.7282 GB, free: 6.148 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001264/0.3046, allocations: 0.5857 MB / 0.7288 GB, free: 5.551 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.145e-05/0.3046, allocations: 11.94 kB / 0.7288 GB, free: 5.539 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/0.3046, allocations: 0 / 0.7288 GB, free: 5.539 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00096/0.3056, allocations: 0.6387 MB / 0.7294 GB, free: 4.832 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002063/0.3077, allocations: 1.367 MB / 0.7308 GB, free: 3.398 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.961e-06/0.3077, allocations: 4 kB / 0.7308 GB, free: 3.395 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003681/0.3081, allocations: 72.06 kB / 0.7309 GB, free: 3.324 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.663e-06/0.3081, allocations: 4 kB / 0.7309 GB, free: 3.32 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.395e-05/0.3081, allocations: 15.98 kB / 0.7309 GB, free: 3.305 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.571e-06/0.3081, allocations: 11.88 kB / 0.7309 GB, free: 3.293 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.226e-06/0.3081, allocations: 4 kB / 0.7309 GB, free: 3.289 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001507/0.3097, allocations: 0.832 MB / 0.7317 GB, free: 2.43 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000303/0.31, allocations: 228.3 kB / 0.7319 GB, free: 2.188 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001073/0.3101, allocations: 7.984 kB / 0.7319 GB, free: 2.18 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004133/0.3105, allocations: 19.98 kB / 0.7319 GB, free: 2.16 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.57e-05/0.3106, allocations: 36.17 kB / 0.732 GB, free: 2.125 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.987e-05/0.3106, allocations: 19.98 kB / 0.732 GB, free: 2.105 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0007505/0.3114, allocations: 0.618 MB / 0.7326 GB, free: 1.477 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.31e-07/0.3114, allocations: 4.062 kB / 0.7326 GB, free: 1.473 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.001401/0.3128, allocations: 0.5067 MB / 0.7331 GB, free: 0.9648 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 1 (pump.vol.dynBal.U) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 2 * 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.002569/0.3154, allocations: 1.657 MB / 0.7347 GB, free: 15.28 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.001719/0.3171, allocations: 0.8474 MB / 0.7355 GB, free: 14.41 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/0.3171, allocations: 4 kB / 0.7356 GB, free: 14.41 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0004855/0.3176, allocations: 220.9 kB / 0.7358 GB, free: 14.19 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001956/0.3196, allocations: 498.9 kB / 0.7362 GB, free: 13.72 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01036/0.33, allocations: 6.734 MB / 0.7428 GB, free: 6.672 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006048/0.3306, allocations: 1.048 MB / 0.7438 GB, free: 5.594 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0008232/0.3315, allocations: 231.3 kB / 0.7441 GB, free: 5.367 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004694/0.3319, allocations: 363.3 kB / 0.7444 GB, free: 5.012 MB / 0.5762 GB Notification: Performance of SimCode: time 5.31e-07/0.3319, allocations: 0 / 0.7444 GB, free: 5.012 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05969/0.3916, allocations: 27.44 MB / 0.7712 GB, free: 9.973 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.271/9.662, allocations: 11.78 kB / 0.7712 GB, free: 9.961 MB / 0.6075 GB (rm -f IDEAS_IDEAS.Fluid.Movers.Examples.PumpWithPulseControl.pipe ; mkfifo IDEAS_IDEAS.Fluid.Movers.Examples.PumpWithPulseControl.pipe ; head -c 1048576 < IDEAS_IDEAS.Fluid.Movers.Examples.PumpWithPulseControl.pipe >> ../files/IDEAS_IDEAS.Fluid.Movers.Examples.PumpWithPulseControl.sim & python3 -m fmpy simulate --output-file IDEAS_IDEAS.Fluid.Movers.Examples.PumpWithPulseControl_res.csv --start-time 0 --stop-time 10000 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 4 IDEAS_IDEAS_Fluid_Movers_Examples_PumpWithPulseControl.fmu > IDEAS_IDEAS.Fluid.Movers.Examples.PumpWithPulseControl.pipe 2>&1)