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.005999/0.005999, allocations: 102.4 kB / 15.73 MB, free: 6.023 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.001482/0.001482, allocations: 196.1 kB / 16.67 MB, free: 5.938 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.391/1.391, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7935/0.7935, allocations: 132.2 MB / 422.7 MB, free: 6.605 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00178/0.00178, allocations: 65.89 kB / 0.5808 GB, free: 24.07 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1483/0.1501, allocations: 80.21 MB / 0.6592 GB, free: 10.79 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Movers.Examples.PumpWithPulseControl): time 0.03291/0.1831, allocations: 30.57 MB / 0.689 GB, free: 12.1 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.01549/0.1986, allocations: 10.21 MB / 0.699 GB, free: 1.859 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001684/0.2003, allocations: 47.75 kB / 0.6991 GB, free: 1.812 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.002175/0.2025, allocations: 0.6913 MB / 0.6997 GB, free: 1.117 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.003883/0.2065, allocations: 1.459 MB / 0.7012 GB, free: 15.65 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.003152/0.2096, allocations: 1.294 MB / 0.7024 GB, free: 14.37 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.004025/0.2137, allocations: 2.896 MB / 0.7052 GB, free: 11.46 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001326/0.215, allocations: 0.9254 MB / 0.7062 GB, free: 10.53 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002514/0.2175, allocations: 1.144 MB / 0.7073 GB, free: 9.383 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001053/0.2186, allocations: 0.7622 MB / 0.708 GB, free: 8.617 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.0001527/0.2187, allocations: 99.98 kB / 0.7081 GB, free: 8.52 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00174/0.2205, allocations: 0.7919 MB / 0.7089 GB, free: 7.727 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0003794/0.2209, allocations: 335 kB / 0.7092 GB, free: 7.398 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0006658/0.2216, allocations: 0.5909 MB / 0.7098 GB, free: 6.805 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.002728/0.2243, allocations: 1.892 MB / 0.7116 GB, free: 4.906 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 6.883e-06/0.2243, allocations: 11.94 kB / 0.7116 GB, free: 4.895 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.973e-06/0.2243, allocations: 0 / 0.7116 GB, free: 4.895 MB / 0.545 GB Notification: Performance of Transformations before backend: time 1.562e-05/0.2243, allocations: 0 / 0.7116 GB, free: 4.895 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.002529/0.2269, allocations: 1.53 MB / 0.7131 GB, free: 3.305 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.04e-05/0.2269, allocations: 12.03 kB / 0.7131 GB, free: 3.293 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001279/0.2271, allocations: 106.7 kB / 0.7132 GB, free: 3.18 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009419/0.228, allocations: 204 kB / 0.7134 GB, free: 2.98 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001785/0.2298, allocations: 1.018 MB / 0.7144 GB, free: 1.922 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.658e-05/0.2299, allocations: 49.31 kB / 0.7145 GB, free: 1.871 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001073/0.23, allocations: 67.95 kB / 0.7145 GB, free: 1.805 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001291/0.2313, allocations: 0.702 MB / 0.7152 GB, free: 1.074 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.131e-05/0.2313, allocations: 0 / 0.7152 GB, free: 1.074 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.21e-05/0.2314, allocations: 28 kB / 0.7153 GB, free: 1.047 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.755e-05/0.2314, allocations: 16 kB / 0.7153 GB, free: 1.031 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001169/0.2326, allocations: 0.5126 MB / 0.7158 GB, free: 0.5195 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.004079/0.2367, allocations: 3.098 MB / 0.7188 GB, free: 13.24 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000941/0.2376, allocations: 378.6 kB / 0.7192 GB, free: 12.86 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004221/0.2381, allocations: 180.8 kB / 0.7193 GB, free: 12.68 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001827/0.2399, allocations: 1.489 MB / 0.7208 GB, free: 11.02 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005759/0.2405, allocations: 236.5 kB / 0.721 GB, free: 10.78 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=31): time 2.024e-06/0.2405, allocations: 0 / 0.721 GB, free: 10.78 MB / 0.5606 GB Notification: Performance of matching and sorting (n=31): time 0.001441/0.2419, allocations: 0.5556 MB / 0.7216 GB, free: 10.21 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.115e-05/0.242, allocations: 55.41 kB / 0.7216 GB, free: 10.15 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001127/0.2431, allocations: 0.8995 MB / 0.7225 GB, free: 9.227 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 4.355e-05/0.2432, allocations: 33.7 kB / 0.7225 GB, free: 9.188 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004499/0.2436, allocations: 0.4927 MB / 0.723 GB, free: 8.691 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001052/0.2438, allocations: 111.1 kB / 0.7231 GB, free: 8.582 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001994/0.244, allocations: 122.1 kB / 0.7232 GB, free: 8.457 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001482/0.2441, allocations: 329.9 kB / 0.7235 GB, free: 8.129 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004809/0.2446, allocations: 195 kB / 0.7237 GB, free: 7.934 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006471/0.2453, allocations: 402.9 kB / 0.7241 GB, free: 7.457 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001117/0.2464, allocations: 0.5906 MB / 0.7247 GB, free: 6.781 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.757e-06/0.2464, allocations: 4 kB / 0.7247 GB, free: 6.777 MB / 0.5606 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001437/0.2479, allocations: 0.7149 MB / 0.7254 GB, free: 6.051 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 4.289e-05/0.2479, allocations: 37.64 kB / 0.7254 GB, free: 6.008 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.224e-05/0.2479, allocations: 8 kB / 0.7254 GB, free: 6 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.483e-05/0.248, allocations: 15.92 kB / 0.7254 GB, free: 5.984 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004903/0.2484, allocations: 123.8 kB / 0.7256 GB, free: 5.863 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.527e-05/0.2485, allocations: 11.94 kB / 0.7256 GB, free: 5.852 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005289/0.249, allocations: 92.36 kB / 0.7257 GB, free: 5.762 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.75e-05/0.2491, allocations: 31.98 kB / 0.7257 GB, free: 5.73 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006755/0.2498, allocations: 394 kB / 0.7261 GB, free: 5.34 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005748/0.2504, allocations: 374.4 kB / 0.7264 GB, free: 4.887 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0009166/0.2513, allocations: 0.5424 MB / 0.727 GB, free: 4.258 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.539e-06/0.2513, allocations: 4 kB / 0.727 GB, free: 4.254 MB / 0.5606 GB Notification: Performance of matching and sorting (n=65) (initialization_lambda0): time 0.001236/0.2525, allocations: 0.6625 MB / 0.7276 GB, free: 3.578 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 3.415e-05/0.2526, allocations: 37.69 kB / 0.7276 GB, free: 3.535 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.222e-06/0.2526, allocations: 4 kB / 0.7276 GB, free: 3.531 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.124e-05/0.2526, allocations: 8 kB / 0.7277 GB, free: 3.523 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004204/0.253, allocations: 119.8 kB / 0.7278 GB, free: 3.406 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.568e-05/0.2531, allocations: 15.88 kB / 0.7278 GB, free: 3.391 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004718/0.2535, allocations: 64.64 kB / 0.7278 GB, free: 3.328 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.826e-05/0.2536, allocations: 27.98 kB / 0.7279 GB, free: 3.301 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.0001919/0.2538, allocations: 216.1 kB / 0.7281 GB, free: 3.082 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001249/0.2539, allocations: 95.39 kB / 0.7282 GB, free: 2.988 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001375/0.2553, allocations: 0.577 MB / 0.7287 GB, free: 2.398 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.468e-05/0.2553, allocations: 7.938 kB / 0.7287 GB, free: 2.391 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.556e-06/0.2553, allocations: 8 kB / 0.7287 GB, free: 2.383 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001045/0.2564, allocations: 0.6426 MB / 0.7294 GB, free: 1.672 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002235/0.2586, allocations: 1.368 MB / 0.7307 GB, free: 244 kB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.907e-06/0.2587, allocations: 0 / 0.7307 GB, free: 244 kB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000376/0.259, allocations: 83.81 kB / 0.7308 GB, free: 160 kB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.38e-06/0.2591, allocations: 0 / 0.7308 GB, free: 160 kB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.267e-05/0.2591, allocations: 11.98 kB / 0.7308 GB, free: 148 kB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.792e-06/0.2591, allocations: 4 kB / 0.7308 GB, free: 144 kB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.2591, allocations: 0 / 0.7308 GB, free: 144 kB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001625/0.2607, allocations: 0.8409 MB / 0.7316 GB, free: 15.27 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002881/0.261, allocations: 236.1 kB / 0.7319 GB, free: 15.02 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001019/0.2612, allocations: 8 kB / 0.7319 GB, free: 15.02 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003893/0.2615, allocations: 19.98 kB / 0.7319 GB, free: 15 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.079e-05/0.2616, allocations: 32.23 kB / 0.7319 GB, free: 14.96 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.396e-05/0.2617, allocations: 24.05 kB / 0.7319 GB, free: 14.94 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0008762/0.2626, allocations: 0.618 MB / 0.7325 GB, free: 14.31 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.7e-07/0.2626, allocations: 0 / 0.7325 GB, free: 14.31 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.001403/0.264, allocations: 0.5067 MB / 0.733 GB, free: 13.8 MB / 0.5762 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.002765/0.2668, allocations: 1.659 MB / 0.7346 GB, free: 12.12 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.00181/0.2686, allocations: 0.8469 MB / 0.7355 GB, free: 11.25 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 5.169e-06/0.2686, allocations: 1.5 kB / 0.7355 GB, free: 11.25 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0005165/0.2691, allocations: 227.9 kB / 0.7357 GB, free: 11.02 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001989/0.2711, allocations: 494.1 kB / 0.7362 GB, free: 10.56 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01025/0.2814, allocations: 6.733 MB / 0.7427 GB, free: 3.504 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007092/0.2821, allocations: 1.052 MB / 0.7438 GB, free: 2.422 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.000867/0.283, allocations: 230.8 kB / 0.744 GB, free: 2.195 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005166/0.2835, allocations: 367.3 kB / 0.7443 GB, free: 1.836 MB / 0.5762 GB Notification: Performance of SimCode: time 2.524e-06/0.2835, allocations: 0 / 0.7443 GB, free: 1.836 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3569/0.6405, allocations: 27.43 MB / 0.7711 GB, free: 74.95 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.492/10.13, allocations: 14.16 kB / 0.7711 GB, free: 74.94 MB / 0.5762 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)