Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_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-master/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/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_dev_IDEAS_Fluid_Movers_Examples_PumpWithPulseControl",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.Movers.Examples.PumpWithPulseControl,fileNamePrefix="IDEAS_dev_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.001124/0.001124, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001154/0.001155, allocations: 193.8 kB / 16.53 MB, free: 6.391 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.334/1.334, allocations: 222.9 MB / 240.2 MB, free: 4.43 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9188/0.9188, allocations: 135.1 MB / 425.5 MB, free: 11.96 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001339/0.001339, allocations: 65.41 kB / 0.5054 GB, free: 5.25 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.143/0.1444, allocations: 80.92 MB / 0.5845 GB, free: 4.48 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Movers.Examples.PumpWithPulseControl): time 0.2659/0.4103, allocations: 30.56 MB / 0.6143 GB, free: 35.67 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.01059/0.4209, allocations: 10.22 MB / 0.6243 GB, free: 31.59 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001035/0.422, allocations: 50.34 kB / 0.6243 GB, free: 31.57 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.001506/0.4235, allocations: 0.6876 MB / 0.625 GB, free: 31.18 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.002713/0.4263, allocations: 1.455 MB / 0.6264 GB, free: 30.36 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.002456/0.4287, allocations: 1.302 MB / 0.6277 GB, free: 29.69 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.002888/0.4316, allocations: 2.892 MB / 0.6305 GB, free: 28.35 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001095/0.4327, allocations: 0.9253 MB / 0.6314 GB, free: 27.92 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001849/0.4346, allocations: 1.13 MB / 0.6325 GB, free: 27.41 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007816/0.4354, allocations: 0.7756 MB / 0.6333 GB, free: 27.04 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0001394/0.4355, allocations: 97.12 kB / 0.6334 GB, free: 27.04 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00143/0.437, allocations: 0.7922 MB / 0.6342 GB, free: 26.82 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0002447/0.4372, allocations: 325 kB / 0.6345 GB, free: 26.66 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0004735/0.4377, allocations: 0.5847 MB / 0.635 GB, free: 26.29 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.001856/0.4396, allocations: 1.868 MB / 0.6369 GB, free: 25.59 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.791e-06/0.4396, allocations: 0 / 0.6369 GB, free: 25.59 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.443e-06/0.4396, allocations: 3.938 kB / 0.6369 GB, free: 25.58 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.353e-05/0.4396, allocations: 0 / 0.6369 GB, free: 25.58 MB / 0.4981 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.001982/0.4416, allocations: 1.49 MB / 0.6383 GB, free: 24.55 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.482e-05/0.4417, allocations: 8.406 kB / 0.6383 GB, free: 24.55 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.427e-05/0.4418, allocations: 105.3 kB / 0.6384 GB, free: 24.47 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009304/0.4427, allocations: 200.4 kB / 0.6386 GB, free: 24.41 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001407/0.4441, allocations: 0.9681 MB / 0.6396 GB, free: 23.8 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.772e-05/0.4442, allocations: 47.34 kB / 0.6396 GB, free: 23.79 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.495e-05/0.4443, allocations: 69.33 kB / 0.6397 GB, free: 23.76 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001118/0.4454, allocations: 0.7033 MB / 0.6404 GB, free: 23.44 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.934e-05/0.4454, allocations: 3.906 kB / 0.6404 GB, free: 23.43 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.576e-05/0.4455, allocations: 27.94 kB / 0.6404 GB, free: 23.41 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.152e-05/0.4455, allocations: 13.69 kB / 0.6404 GB, free: 23.41 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001042/0.4466, allocations: 0.5197 MB / 0.6409 GB, free: 23.24 MB / 0.4981 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.003123/0.4497, allocations: 3.089 MB / 0.6439 GB, free: 21.1 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008297/0.4505, allocations: 388.8 kB / 0.6443 GB, free: 20.94 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003761/0.4509, allocations: 188.4 kB / 0.6445 GB, free: 20.87 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001376/0.4523, allocations: 1.495 MB / 0.6459 GB, free: 19.58 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004886/0.4528, allocations: 238.6 kB / 0.6462 GB, free: 19.47 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=31): time 2.144e-06/0.4528, allocations: 0 / 0.6462 GB, free: 19.47 MB / 0.4981 GB Notification: Performance of matching and sorting (n=31): time 0.001338/0.4542, allocations: 0.5475 MB / 0.6467 GB, free: 19.26 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.295e-05/0.4542, allocations: 58.25 kB / 0.6468 GB, free: 19.19 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009985/0.4552, allocations: 0.8987 MB / 0.6476 GB, free: 18.81 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 4.307e-05/0.4553, allocations: 32.33 kB / 0.6477 GB, free: 18.77 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.000325/0.4556, allocations: 491.9 kB / 0.6481 GB, free: 18.39 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 8.845e-05/0.4557, allocations: 106.3 kB / 0.6482 GB, free: 18.31 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002126/0.4559, allocations: 127.7 kB / 0.6484 GB, free: 18.25 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 6.867e-05/0.456, allocations: 325.1 kB / 0.6487 GB, free: 17.93 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004556/0.4564, allocations: 194.9 kB / 0.6489 GB, free: 17.87 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005772/0.457, allocations: 404 kB / 0.6492 GB, free: 17.55 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001047/0.4581, allocations: 0.5941 MB / 0.6498 GB, free: 17.14 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.379e-06/0.4581, allocations: 1.312 kB / 0.6498 GB, free: 17.14 MB / 0.4981 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.00137/0.4595, allocations: 0.6969 MB / 0.6505 GB, free: 16.84 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 3.347e-05/0.4595, allocations: 37.02 kB / 0.6505 GB, free: 16.81 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.258e-05/0.4595, allocations: 12.94 kB / 0.6505 GB, free: 16.8 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.298e-05/0.4596, allocations: 8.469 kB / 0.6506 GB, free: 16.8 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005414/0.4601, allocations: 125 kB / 0.6507 GB, free: 16.79 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.333e-05/0.4602, allocations: 20.2 kB / 0.6507 GB, free: 16.79 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000607/0.4608, allocations: 85.72 kB / 0.6508 GB, free: 16.73 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.885e-05/0.4608, allocations: 30.94 kB / 0.6508 GB, free: 16.73 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000652/0.4615, allocations: 396.8 kB / 0.6512 GB, free: 16.52 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004595/0.462, allocations: 379.8 kB / 0.6515 GB, free: 16.22 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007737/0.4628, allocations: 0.5474 MB / 0.6521 GB, free: 15.81 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.837e-06/0.4628, allocations: 1.688 kB / 0.6521 GB, free: 15.81 MB / 0.4981 GB Notification: Performance of matching and sorting (n=65) (initialization_lambda0): time 0.001154/0.4639, allocations: 0.6522 MB / 0.6527 GB, free: 15.52 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 2.453e-05/0.464, allocations: 42.14 kB / 0.6528 GB, free: 15.49 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.115e-06/0.464, allocations: 5.938 kB / 0.6528 GB, free: 15.49 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.037e-05/0.464, allocations: 9.125 kB / 0.6528 GB, free: 15.49 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004411/0.4644, allocations: 119.3 kB / 0.6529 GB, free: 15.48 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.222e-05/0.4645, allocations: 16.72 kB / 0.6529 GB, free: 15.47 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000502/0.465, allocations: 59.75 kB / 0.653 GB, free: 15.44 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.295e-05/0.465, allocations: 29.89 kB / 0.653 GB, free: 15.44 MB / 0.4981 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.0001407/0.4652, allocations: 219.5 kB / 0.6532 GB, free: 15.23 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001169/0.4653, allocations: 89.06 kB / 0.6533 GB, free: 15.18 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001339/0.4667, allocations: 0.5902 MB / 0.6539 GB, free: 14.94 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.26e-05/0.4667, allocations: 4.562 kB / 0.6539 GB, free: 14.94 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.32e-06/0.4667, allocations: 4.969 kB / 0.6539 GB, free: 14.94 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0009577/0.4677, allocations: 0.6403 MB / 0.6545 GB, free: 14.48 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002141/0.4698, allocations: 1.345 MB / 0.6558 GB, free: 13.77 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.039e-06/0.4698, allocations: 7.656 kB / 0.6558 GB, free: 13.76 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003873/0.4702, allocations: 78.19 kB / 0.6559 GB, free: 13.75 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.26e-06/0.4702, allocations: 2.562 kB / 0.6559 GB, free: 13.75 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.231e-05/0.4703, allocations: 12.06 kB / 0.6559 GB, free: 13.75 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.859e-06/0.4703, allocations: 2.625 kB / 0.6559 GB, free: 13.75 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.145e-06/0.4703, allocations: 2.781 kB / 0.6559 GB, free: 13.75 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001545/0.4718, allocations: 0.8401 MB / 0.6567 GB, free: 13.31 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002486/0.4721, allocations: 220.6 kB / 0.6569 GB, free: 13.13 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001145/0.4722, allocations: 12.5 kB / 0.657 GB, free: 13.12 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004292/0.4727, allocations: 20.33 kB / 0.657 GB, free: 13.12 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.273e-05/0.4727, allocations: 31.16 kB / 0.657 GB, free: 13.12 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.25e-05/0.4728, allocations: 19.36 kB / 0.657 GB, free: 13.11 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0007897/0.4736, allocations: 0.6272 MB / 0.6576 GB, free: 12.83 MB / 0.4981 GB Notification: Performance of sort global known variables: time 5.61e-07/0.4736, allocations: 0 / 0.6576 GB, free: 12.83 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.001406/0.475, allocations: 0.5044 MB / 0.6581 GB, free: 12.73 MB / 0.4981 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.00239/0.4774, allocations: 1.651 MB / 0.6597 GB, free: 11.68 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.001802/0.4792, allocations: 0.8796 MB / 0.6606 GB, free: 11.3 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.975e-06/0.4792, allocations: 1.094 kB / 0.6606 GB, free: 11.3 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0005013/0.4797, allocations: 221.8 kB / 0.6608 GB, free: 11.23 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002073/0.4818, allocations: 495.1 kB / 0.6613 GB, free: 11.1 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009536/0.4914, allocations: 7.003 MB / 0.6681 GB, free: 6.988 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005096/0.4919, allocations: 1.048 MB / 0.6691 GB, free: 6.242 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.001064/0.493, allocations: 236.9 kB / 0.6694 GB, free: 6.172 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004368/0.4934, allocations: 366.5 kB / 0.6697 GB, free: 5.91 MB / 0.4981 GB Notification: Performance of SimCode: time 5.71e-07/0.4934, allocations: 0 / 0.6697 GB, free: 5.91 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0555/0.5489, allocations: 27.3 MB / 0.6964 GB, free: 9.348 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.823/8.372, allocations: 0 / 0.6964 GB, free: 9.348 MB / 0.5137 GB (rm -f IDEAS_dev_IDEAS.Fluid.Movers.Examples.PumpWithPulseControl.pipe ; mkfifo IDEAS_dev_IDEAS.Fluid.Movers.Examples.PumpWithPulseControl.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Fluid.Movers.Examples.PumpWithPulseControl.pipe >> ../files/IDEAS_dev_IDEAS.Fluid.Movers.Examples.PumpWithPulseControl.sim & python3 -m fmpy simulate --output-file IDEAS_dev_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_dev_IDEAS_Fluid_Movers_Examples_PumpWithPulseControl.fmu > IDEAS_dev_IDEAS.Fluid.Movers.Examples.PumpWithPulseControl.pipe 2>&1)