Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.Media.Examples.WaterDerivativeCheck.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.Media.Examples.WaterDerivativeCheck,fileNamePrefix="IDEAS_IDEAS_Media_Examples_WaterDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Media.Examples.WaterDerivativeCheck,fileNamePrefix="IDEAS_IDEAS_Media_Examples_WaterDerivativeCheck",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.004828/0.004828, allocations: 100.3 kB / 15.73 MB, free: 6.484 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.001296/0.001296, allocations: 193.2 kB / 16.68 MB, free: 6.363 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.404/1.404, allocations: 222.9 MB / 240.4 MB, free: 4.289 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.8023/0.8023, allocations: 132.2 MB / 422.7 MB, free: 1.672 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001834/0.001834, allocations: 63.91 kB / 0.5808 GB, free: 8.059 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3616/0.3635, allocations: 80.21 MB / 0.6592 GB, free: 9.816 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Media.Examples.WaterDerivativeCheck): time 0.001907/0.3654, allocations: 1.256 MB / 0.6604 GB, free: 8.93 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.002974/0.3684, allocations: 3.275 MB / 0.6636 GB, free: 6.535 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.988e-05/0.3685, allocations: 1.562 kB / 0.6636 GB, free: 6.535 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 1.469e-05/0.3685, allocations: 4.641 kB / 0.6636 GB, free: 6.531 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 4.358e-05/0.3685, allocations: 0.6562 kB / 0.6636 GB, free: 6.531 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004704/0.369, allocations: 112.6 kB / 0.6637 GB, free: 6.469 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 8.113e-05/0.3691, allocations: 35.67 kB / 0.6637 GB, free: 6.457 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 3.776e-05/0.3692, allocations: 2.891 kB / 0.6637 GB, free: 6.457 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 4.517e-05/0.3692, allocations: 20.56 kB / 0.6638 GB, free: 6.449 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 6.519e-05/0.3693, allocations: 17.55 kB / 0.6638 GB, free: 6.441 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.244e-05/0.3693, allocations: 2.094 kB / 0.6638 GB, free: 6.441 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002312/0.3695, allocations: 76.48 kB / 0.6638 GB, free: 6.41 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 1.53e-05/0.3696, allocations: 12.06 kB / 0.6639 GB, free: 6.402 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 3.064e-05/0.3696, allocations: 16.06 kB / 0.6639 GB, free: 6.395 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001846/0.3698, allocations: 64 kB / 0.6639 GB, free: 6.379 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.929e-06/0.3698, allocations: 4.609 kB / 0.6639 GB, free: 6.375 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.094e-06/0.3698, allocations: 0 / 0.6639 GB, free: 6.375 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 4.959e-06/0.3698, allocations: 1.281 kB / 0.6639 GB, free: 6.375 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0003485/0.3702, allocations: 355.1 kB / 0.6643 GB, free: 6.004 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 5.271e-05/0.3702, allocations: 9.844 kB / 0.6643 GB, free: 6.004 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.766e-05/0.3703, allocations: 33 kB / 0.6643 GB, free: 5.965 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.043e-05/0.3704, allocations: 9.828 kB / 0.6643 GB, free: 5.961 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.402e-05/0.3704, allocations: 162.4 kB / 0.6645 GB, free: 5.766 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.523e-05/0.3705, allocations: 10.12 kB / 0.6645 GB, free: 5.758 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.275e-05/0.3705, allocations: 9.109 kB / 0.6645 GB, free: 5.754 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001372/0.3706, allocations: 56.97 kB / 0.6646 GB, free: 5.711 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.018e-05/0.3707, allocations: 0 / 0.6646 GB, free: 5.711 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.205e-05/0.3707, allocations: 1.312 kB / 0.6646 GB, free: 5.711 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.462e-06/0.3707, allocations: 0.5156 kB / 0.6646 GB, free: 5.711 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.157e-05/0.3708, allocations: 19.94 kB / 0.6646 GB, free: 5.707 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001508/0.3709, allocations: 169.8 kB / 0.6647 GB, free: 5.504 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 9.219e-05/0.371, allocations: 55.62 kB / 0.6648 GB, free: 5.461 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.998e-05/0.371, allocations: 20.44 kB / 0.6648 GB, free: 5.445 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005814/0.3716, allocations: 0.5907 MB / 0.6654 GB, free: 4.789 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.264e-05/0.3717, allocations: 35.94 kB / 0.6654 GB, free: 4.746 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=5): time 1.292e-06/0.3717, allocations: 0 / 0.6654 GB, free: 4.746 MB / 0.4981 GB Notification: Performance of matching and sorting (n=7): time 0.0005122/0.3722, allocations: 303.7 kB / 0.6657 GB, free: 4.449 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.579e-05/0.3722, allocations: 52.81 kB / 0.6658 GB, free: 4.387 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.031e-05/0.3723, allocations: 109.3 kB / 0.6659 GB, free: 4.273 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 8.856e-06/0.3723, allocations: 27.08 kB / 0.6659 GB, free: 4.242 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 2.538e-05/0.3723, allocations: 89.41 kB / 0.666 GB, free: 4.152 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 1.512e-05/0.3723, allocations: 26.27 kB / 0.666 GB, free: 4.129 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.507e-05/0.3724, allocations: 25.5 kB / 0.666 GB, free: 4.105 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 4.247e-05/0.3724, allocations: 327.9 kB / 0.6663 GB, free: 3.777 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.576e-05/0.3725, allocations: 12 kB / 0.6664 GB, free: 3.773 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.208e-05/0.3725, allocations: 56.92 kB / 0.6664 GB, free: 3.715 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.42e-05/0.3726, allocations: 82.25 kB / 0.6665 GB, free: 3.637 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.52e-07/0.3726, allocations: 1.281 kB / 0.6665 GB, free: 3.637 MB / 0.4981 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001154/0.3727, allocations: 90.38 kB / 0.6666 GB, free: 3.578 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.59e-05/0.3727, allocations: 10.11 kB / 0.6666 GB, free: 3.574 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.669e-06/0.3728, allocations: 1.375 kB / 0.6666 GB, free: 3.574 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.58e-05/0.3728, allocations: 2.531 kB / 0.6666 GB, free: 3.574 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.379e-05/0.3729, allocations: 19.84 kB / 0.6666 GB, free: 3.57 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.832e-06/0.3729, allocations: 6.75 kB / 0.6666 GB, free: 3.566 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.541e-05/0.3729, allocations: 5.25 kB / 0.6666 GB, free: 3.562 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.853e-06/0.3729, allocations: 3.781 kB / 0.6666 GB, free: 3.562 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (12): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * 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 5.204e-05/0.373, allocations: 118 kB / 0.6667 GB, free: 3.441 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.637e-05/0.373, allocations: 6.359 kB / 0.6667 GB, free: 3.438 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.697e-05/0.373, allocations: 9 kB / 0.6667 GB, free: 3.43 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.344e-06/0.373, allocations: 1.344 kB / 0.6667 GB, free: 3.43 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.737e-06/0.373, allocations: 0 / 0.6667 GB, free: 3.43 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.089e-06/0.3731, allocations: 5.188 kB / 0.6668 GB, free: 3.426 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001854/0.3733, allocations: 184.8 kB / 0.6669 GB, free: 3.211 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-06/0.3733, allocations: 0 / 0.6669 GB, free: 3.211 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.266e-05/0.3733, allocations: 17.55 kB / 0.6669 GB, free: 3.207 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.663e-06/0.3734, allocations: 0 / 0.6669 GB, free: 3.207 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.983e-06/0.3734, allocations: 1 kB / 0.6669 GB, free: 3.207 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.443e-06/0.3734, allocations: 1.641 kB / 0.6669 GB, free: 3.207 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.353e-06/0.3734, allocations: 3.984 kB / 0.667 GB, free: 3.203 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001405/0.3735, allocations: 169.8 kB / 0.6671 GB, free: 3.051 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 3.163e-05/0.3736, allocations: 91.5 kB / 0.6672 GB, free: 2.945 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.511e-05/0.3736, allocations: 9.188 kB / 0.6672 GB, free: 2.938 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000102/0.3737, allocations: 1.344 kB / 0.6672 GB, free: 2.938 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.635e-05/0.3737, allocations: 14.42 kB / 0.6672 GB, free: 2.926 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.354e-06/0.3737, allocations: 6.625 kB / 0.6672 GB, free: 2.922 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 1.882e-05/0.3737, allocations: 81.91 kB / 0.6673 GB, free: 2.844 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3738, allocations: 0 / 0.6673 GB, free: 2.844 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002351/0.374, allocations: 9.844 kB / 0.6673 GB, free: 2.844 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (hLiqSym,cpSym,cvSym) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * 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 Backend phase and start with SimCode phase: time 0.0002829/0.3743, allocations: 0.7036 MB / 0.668 GB, free: 2.156 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0001068/0.3744, allocations: 49.61 kB / 0.6681 GB, free: 2.133 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.574e-06/0.3744, allocations: 0.7812 kB / 0.6681 GB, free: 2.133 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 3.112e-05/0.3744, allocations: 14.61 kB / 0.6681 GB, free: 2.129 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003091/0.3748, allocations: 16.12 kB / 0.6681 GB, free: 2.117 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009954/0.3758, allocations: 1.52 MB / 0.6696 GB, free: 0.6406 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001448/0.3759, allocations: 0.6857 MB / 0.6702 GB, free: 15.94 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 4.363e-05/0.376, allocations: 12.16 kB / 0.6702 GB, free: 15.93 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.668e-05/0.376, allocations: 10.66 kB / 0.6703 GB, free: 15.93 MB / 0.5137 GB Notification: Performance of SimCode: time 2.7e-07/0.376, allocations: 0 / 0.6703 GB, free: 15.93 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02348/0.3995, allocations: 1.643 MB / 0.6719 GB, free: 15.04 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.816/8.215, allocations: 5.406 kB / 0.6719 GB, free: 15.04 MB / 0.5137 GB (rm -f IDEAS_IDEAS.Media.Examples.WaterDerivativeCheck.pipe ; mkfifo IDEAS_IDEAS.Media.Examples.WaterDerivativeCheck.pipe ; head -c 1048576 < IDEAS_IDEAS.Media.Examples.WaterDerivativeCheck.pipe >> ../files/IDEAS_IDEAS.Media.Examples.WaterDerivativeCheck.sim & python3 -m fmpy simulate --output-file IDEAS_IDEAS.Media.Examples.WaterDerivativeCheck_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-08 --interface-type ModelExchange --solver CVode --output-interval 0.0004 IDEAS_IDEAS_Media_Examples_WaterDerivativeCheck.fmu > IDEAS_IDEAS.Media.Examples.WaterDerivativeCheck.pipe 2>&1)