Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenHydraulics_OpenHydraulics.DevelopmentTests.GenericRestrictionTestOpenTank.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenHydraulics 1.0.0-master/package.mo", uses=false) Using package OpenHydraulics with version 1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenHydraulics 1.0.0-master/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(OpenHydraulics.DevelopmentTests.GenericRestrictionTestOpenTank,fileNamePrefix="OpenHydraulics_OpenHydraulics_DevelopmentTests_GenericRestrictionTestOpenTank",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenHydraulics.DevelopmentTests.GenericRestrictionTestOpenTank,fileNamePrefix="OpenHydraulics_OpenHydraulics_DevelopmentTests_GenericRestrictionTestOpenTank",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.001052/0.001052, 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.001094/0.001094, allocations: 196.7 kB / 16.54 MB, free: 6.672 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.254/1.254, allocations: 205.1 MB / 222.4 MB, free: 4.609 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenHydraulics 1.0.0-master/package.mo): time 0.05263/0.05263, allocations: 11.85 MB / 281.6 MB, free: 9.438 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: OpenHydraulics requested package Modelica of version 3.2. Modelica 3.2.3 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001499/0.001499, allocations: 75.56 kB / 341.9 MB, free: 21.9 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0655/0.06701, allocations: 49.23 MB / 391.2 MB, free: 4.617 MB / 286.1 MB Notification: Performance of NFInst.instantiate(OpenHydraulics.DevelopmentTests.GenericRestrictionTestOpenTank): time 0.003582/0.07062, allocations: 2.628 MB / 393.8 MB, free: 1.969 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001113/0.07176, allocations: 0.698 MB / 394.5 MB, free: 1.266 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001146/0.0719, allocations: 7.875 kB / 394.5 MB, free: 1.258 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001061/0.07201, allocations: 27.72 kB / 394.5 MB, free: 1.23 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003485/0.07237, allocations: 107.2 kB / 394.6 MB, free: 1.125 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001441/0.07252, allocations: 47.86 kB / 394.7 MB, free: 1.078 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002575/0.07279, allocations: 254.7 kB / 394.9 MB, free: 0.8281 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001325/0.07293, allocations: 69.58 kB / 395 MB, free: 0.7578 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001337/0.07307, allocations: 87.7 kB / 395.1 MB, free: 0.6719 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001498/0.07323, allocations: 99.5 kB / 395.2 MB, free: 0.5742 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.798e-05/0.07326, allocations: 16 kB / 395.2 MB, free: 0.5586 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.638e-05/0.07336, allocations: 31.98 kB / 395.2 MB, free: 0.5273 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.355e-05/0.07341, allocations: 35.84 kB / 395.2 MB, free: 0.4922 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 9.711e-05/0.07351, allocations: 107.5 kB / 395.4 MB, free: 396 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000224/0.07374, allocations: 203.6 kB / 395.6 MB, free: 192 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.407e-06/0.07375, allocations: 4 kB / 395.6 MB, free: 188 kB / 286.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.07376, allocations: 0 / 395.6 MB, free: 188 kB / 286.1 MB Notification: Performance of Transformations before backend: time 5.771e-06/0.07377, allocations: 0 / 395.6 MB, free: 188 kB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 41 * Number of variables: 41 Notification: Performance of Generate backend data structure: time 0.0006007/0.07437, allocations: 0.5042 MB / 396.1 MB, free: 15.62 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.41e-05/0.07441, allocations: 11.89 kB / 396.1 MB, free: 15.61 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.441e-05/0.07446, allocations: 50.67 kB / 396.1 MB, free: 15.55 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.945e-05/0.07457, allocations: 20.75 kB / 396.1 MB, free: 15.54 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002212/0.0748, allocations: 232 kB / 396.4 MB, free: 15.27 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.317e-05/0.07482, allocations: 12.38 kB / 396.4 MB, free: 15.26 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.033e-05/0.07485, allocations: 19.94 kB / 396.4 MB, free: 15.24 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003025/0.07516, allocations: 191.7 kB / 396.6 MB, free: 15.04 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.102e-05/0.07518, allocations: 0 / 396.6 MB, free: 15.04 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.628e-05/0.0752, allocations: 4 kB / 396.6 MB, free: 15.04 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.273e-06/0.07522, allocations: 4 kB / 396.6 MB, free: 15.03 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002296/0.07545, allocations: 120.9 kB / 396.7 MB, free: 14.91 MB / 302.1 MB 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.001041/0.0765, allocations: 0.9296 MB / 397.6 MB, free: 13.87 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002593/0.07677, allocations: 154.7 kB / 397.8 MB, free: 13.71 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000118/0.0769, allocations: 60.84 kB / 397.9 MB, free: 13.65 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.601e-05/0.07692, allocations: 3.984 kB / 397.9 MB, free: 13.64 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.365e-05/0.07695, allocations: 42.55 kB / 397.9 MB, free: 13.59 MB / 302.1 MB Notification: Performance of pre-optimization done (n=17): time 1.413e-06/0.07696, allocations: 0 / 397.9 MB, free: 13.59 MB / 302.1 MB Notification: Performance of matching and sorting (n=20): time 0.00165/0.07861, allocations: 0.755 MB / 398.7 MB, free: 12.77 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.406e-05/0.07867, allocations: 85.11 kB / 398.7 MB, free: 12.67 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001384/0.07881, allocations: 174.7 kB / 398.9 MB, free: 12.49 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.89e-05/0.07884, allocations: 29.7 kB / 398.9 MB, free: 12.46 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.081e-05/0.07891, allocations: 124.3 kB / 399.1 MB, free: 12.33 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.198e-05/0.07896, allocations: 67 kB / 399.1 MB, free: 12.27 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.086e-05/0.07903, allocations: 37.7 kB / 399.2 MB, free: 12.22 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.617e-05/0.07913, allocations: 326.8 kB / 399.5 MB, free: 11.89 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001451/0.07928, allocations: 72.75 kB / 399.5 MB, free: 11.82 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001525/0.07944, allocations: 92.25 kB / 399.6 MB, free: 11.71 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003019/0.07976, allocations: 218.2 kB / 399.9 MB, free: 11.48 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.342e-06/0.07977, allocations: 0 / 399.9 MB, free: 11.48 MB / 302.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0003791/0.08015, allocations: 230.9 kB / 400.1 MB, free: 11.24 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.962e-05/0.08019, allocations: 37.64 kB / 400.1 MB, free: 11.2 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.869e-06/0.0802, allocations: 0 / 400.1 MB, free: 11.2 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.187e-05/0.08022, allocations: 0 / 400.1 MB, free: 11.2 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002702/0.08049, allocations: 64.05 kB / 400.2 MB, free: 11.13 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.608e-06/0.08051, allocations: 4 kB / 400.2 MB, free: 11.13 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001203/0.08064, allocations: 15.92 kB / 400.2 MB, free: 11.11 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.494e-05/0.08066, allocations: 4 kB / 400.2 MB, free: 11.11 MB / 302.1 MB Warning: Assuming fixed start value for the following 1 variables: idealPump.phi:VARIABLE(unit = "rad" fixed = true ) "Angle of rotation of pump" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (23): * Single equations (assignments): 22 * 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.0001818/0.08085, allocations: 164.3 kB / 400.4 MB, free: 10.93 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.498e-05/0.0809, allocations: 23.75 kB / 400.4 MB, free: 10.91 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004477/0.08135, allocations: 265.1 kB / 400.6 MB, free: 10.64 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.876e-06/0.08137, allocations: 0 / 400.6 MB, free: 10.64 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.007e-06/0.08138, allocations: 4 kB / 400.6 MB, free: 10.63 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.2e-06/0.08139, allocations: 3.984 kB / 400.7 MB, free: 10.63 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006852/0.08207, allocations: 0.5741 MB / 401.2 MB, free: 9.992 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/0.08209, allocations: 0 / 401.2 MB, free: 9.992 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000253/0.08235, allocations: 59.91 kB / 401.3 MB, free: 9.934 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.866e-06/0.08236, allocations: 0 / 401.3 MB, free: 9.934 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.538e-05/0.08238, allocations: 11.94 kB / 401.3 MB, free: 9.922 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.633e-06/0.08239, allocations: 0 / 401.3 MB, free: 9.922 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.08239, allocations: 0 / 401.3 MB, free: 9.922 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005491/0.08295, allocations: 400.8 kB / 401.7 MB, free: 9.508 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.116e-05/0.08305, allocations: 116.8 kB / 401.8 MB, free: 9.375 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.389e-05/0.08308, allocations: 8 kB / 401.8 MB, free: 9.367 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001468/0.08324, allocations: 8 kB / 401.8 MB, free: 9.359 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.114e-05/0.08331, allocations: 11.97 kB / 401.8 MB, free: 9.348 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.873e-05/0.08334, allocations: 12 kB / 401.8 MB, free: 9.336 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001255/0.08347, allocations: 131.2 kB / 402 MB, free: 9.207 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.08348, allocations: 0 / 402 MB, free: 9.207 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002856/0.08377, allocations: 52 kB / 402 MB, free: 9.156 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (idealPump.phi) * 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 (23): * Single equations (assignments): 22 * 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 Backend phase and start with SimCode phase: time 0.00081/0.08459, allocations: 0.9522 MB / 403 MB, free: 8.172 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000428/0.08503, allocations: 219.2 kB / 403.2 MB, free: 7.945 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.71e-06/0.08505, allocations: 4.25 kB / 403.2 MB, free: 7.941 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002416/0.0853, allocations: 139.3 kB / 403.3 MB, free: 7.793 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003357/0.08565, allocations: 40.11 kB / 403.4 MB, free: 7.754 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002513/0.08817, allocations: 2.302 MB / 405.7 MB, free: 5.348 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000274/0.08846, allocations: 0.7325 MB / 406.4 MB, free: 4.586 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001181/0.08858, allocations: 25.94 kB / 406.4 MB, free: 4.555 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.547e-05/0.08869, allocations: 67.41 kB / 406.5 MB, free: 4.488 MB / 302.1 MB Notification: Performance of SimCode: time 2.3e-07/0.0887, allocations: 0 / 406.5 MB, free: 4.488 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02149/0.1102, allocations: 4.742 MB / 411.2 MB, free: 15.78 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.975/7.085, allocations: 0 / 411.2 MB, free: 15.78 MB / 318.1 MB (rm -f OpenHydraulics_OpenHydraulics.DevelopmentTests.GenericRestrictionTestOpenTank.pipe ; mkfifo OpenHydraulics_OpenHydraulics.DevelopmentTests.GenericRestrictionTestOpenTank.pipe ; head -c 1048576 < OpenHydraulics_OpenHydraulics.DevelopmentTests.GenericRestrictionTestOpenTank.pipe >> ../files/OpenHydraulics_OpenHydraulics.DevelopmentTests.GenericRestrictionTestOpenTank.sim & python3 -m fmpy simulate --output-file OpenHydraulics_OpenHydraulics.DevelopmentTests.GenericRestrictionTestOpenTank_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004 OpenHydraulics_OpenHydraulics_DevelopmentTests_GenericRestrictionTestOpenTank.fmu > OpenHydraulics_OpenHydraulics.DevelopmentTests.GenericRestrictionTestOpenTank.pipe 2>&1)