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.008034/0.008034, allocations: 99.75 kB / 15.73 MB, free: 6.039 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.001958/0.001958, allocations: 192.1 kB / 16.67 MB, free: 5.949 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.269/1.269, allocations: 205.1 MB / 222.6 MB, free: 4.5 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenHydraulics 1.0.0-master/package.mo): time 0.0533/0.0533, allocations: 11.84 MB / 281.8 MB, free: 9.34 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.002853/0.002853, allocations: 75.89 kB / 391.8 MB, free: 3.98 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3046/0.3074, allocations: 49.22 MB / 441.1 MB, free: 4.164 MB / 318.1 MB Notification: Performance of NFInst.instantiate(OpenHydraulics.DevelopmentTests.GenericRestrictionTestOpenTank): time 0.003238/0.3107, allocations: 2.633 MB / 443.7 MB, free: 2.328 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001046/0.3118, allocations: 0.6989 MB / 444.4 MB, free: 1.828 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001073/0.3119, allocations: 3.469 kB / 444.4 MB, free: 1.828 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001131/0.3121, allocations: 29.83 kB / 444.4 MB, free: 1.809 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000324/0.3124, allocations: 111.7 kB / 444.5 MB, free: 1.734 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001399/0.3125, allocations: 53.72 kB / 444.6 MB, free: 1.703 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002388/0.3128, allocations: 251.8 kB / 444.8 MB, free: 1.574 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001351/0.3129, allocations: 70.34 kB / 444.9 MB, free: 1.535 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001263/0.3131, allocations: 93.86 kB / 445 MB, free: 1.492 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001528/0.3132, allocations: 100 kB / 445.1 MB, free: 1.445 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.593e-05/0.3133, allocations: 15.53 kB / 445.1 MB, free: 1.445 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.195e-05/0.3134, allocations: 33.45 kB / 445.1 MB, free: 1.438 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.382e-05/0.3134, allocations: 38.58 kB / 445.2 MB, free: 1.41 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 8.897e-05/0.3135, allocations: 100.2 kB / 445.3 MB, free: 1.355 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002707/0.3138, allocations: 206.1 kB / 445.5 MB, free: 1.277 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.3138, allocations: 4 kB / 445.5 MB, free: 1.273 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.402e-06/0.3138, allocations: 0 / 445.5 MB, free: 1.273 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.017e-05/0.3138, allocations: 1.438 kB / 445.5 MB, free: 1.273 MB / 318.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.0005542/0.3144, allocations: 0.5011 MB / 446 MB, free: 0.8008 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.508e-05/0.3144, allocations: 13.55 kB / 446 MB, free: 0.7969 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.913e-05/0.3144, allocations: 56.38 kB / 446.1 MB, free: 0.7422 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001118/0.3146, allocations: 25.11 kB / 446.1 MB, free: 0.7305 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002354/0.3148, allocations: 226.9 kB / 446.3 MB, free: 0.5 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.582e-05/0.3148, allocations: 15.41 kB / 446.3 MB, free: 0.4922 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.652e-05/0.3149, allocations: 23.19 kB / 446.3 MB, free: 492 kB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003151/0.3152, allocations: 184.6 kB / 446.5 MB, free: 388 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.431e-05/0.3152, allocations: 0 / 446.5 MB, free: 388 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.878e-05/0.3152, allocations: 10.83 kB / 446.5 MB, free: 380 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.043e-06/0.3153, allocations: 8.25 kB / 446.5 MB, free: 376 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002412/0.3155, allocations: 123.7 kB / 446.7 MB, free: 336 kB / 318.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.001045/0.3166, allocations: 0.9186 MB / 447.6 MB, free: 15.52 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002912/0.3169, allocations: 152.4 kB / 447.7 MB, free: 15.44 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001255/0.317, allocations: 66.77 kB / 447.8 MB, free: 15.41 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.22e-05/0.317, allocations: 5.422 kB / 447.8 MB, free: 15.41 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.618e-05/0.3171, allocations: 37.94 kB / 447.8 MB, free: 15.36 MB / 334.1 MB Notification: Performance of pre-optimization done (n=17): time 1.513e-06/0.3171, allocations: 0 / 447.8 MB, free: 15.36 MB / 334.1 MB Notification: Performance of matching and sorting (n=20): time 0.001832/0.3189, allocations: 0.7465 MB / 448.6 MB, free: 14.86 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.421e-05/0.319, allocations: 84.11 kB / 448.7 MB, free: 14.76 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001561/0.3191, allocations: 176.6 kB / 448.8 MB, free: 14.63 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.845e-05/0.3192, allocations: 30.83 kB / 448.9 MB, free: 14.6 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.464e-05/0.3192, allocations: 126.5 kB / 449 MB, free: 14.48 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.472e-05/0.3193, allocations: 73.03 kB / 449.1 MB, free: 14.43 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.829e-05/0.3194, allocations: 40.73 kB / 449.1 MB, free: 14.4 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001111/0.3195, allocations: 330.8 kB / 449.4 MB, free: 14.08 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001435/0.3196, allocations: 62.94 kB / 449.5 MB, free: 14.05 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001505/0.3198, allocations: 95.92 kB / 449.6 MB, free: 13.99 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003121/0.3201, allocations: 220 kB / 449.8 MB, free: 13.83 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.443e-06/0.3201, allocations: 0 / 449.8 MB, free: 13.83 MB / 334.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004077/0.3205, allocations: 237.3 kB / 450 MB, free: 13.7 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.057e-05/0.3206, allocations: 36.61 kB / 450.1 MB, free: 13.66 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.571e-06/0.3206, allocations: 1.531 kB / 450.1 MB, free: 13.66 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.335e-05/0.3206, allocations: 1.531 kB / 450.1 MB, free: 13.66 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000279/0.3209, allocations: 58.8 kB / 450.1 MB, free: 13.64 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.194e-06/0.3209, allocations: 2.406 kB / 450.1 MB, free: 13.64 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001266/0.321, allocations: 8.531 kB / 450.1 MB, free: 13.64 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.871e-05/0.3211, allocations: 14.36 kB / 450.1 MB, free: 13.63 MB / 334.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.0001601/0.3212, allocations: 156.7 kB / 450.3 MB, free: 13.47 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.599e-05/0.3213, allocations: 25 kB / 450.3 MB, free: 13.46 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004562/0.3218, allocations: 252.8 kB / 450.6 MB, free: 13.29 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.298e-06/0.3218, allocations: 2.438 kB / 450.6 MB, free: 13.29 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.877e-06/0.3218, allocations: 4 kB / 450.6 MB, free: 13.28 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.231e-06/0.3218, allocations: 3.984 kB / 450.6 MB, free: 13.28 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007131/0.3225, allocations: 0.597 MB / 451.2 MB, free: 12.75 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.555e-06/0.3225, allocations: 0 / 451.2 MB, free: 12.75 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002515/0.3228, allocations: 54.64 kB / 451.2 MB, free: 12.74 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.206e-06/0.3228, allocations: 0 / 451.2 MB, free: 12.74 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.867e-05/0.3228, allocations: 6 kB / 451.2 MB, free: 12.74 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.076e-06/0.3228, allocations: 2.125 kB / 451.2 MB, free: 12.74 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.3229, allocations: 4 kB / 451.2 MB, free: 12.73 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005687/0.3234, allocations: 406.4 kB / 451.6 MB, free: 12.45 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.292e-05/0.3235, allocations: 111.8 kB / 451.7 MB, free: 12.33 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.442e-05/0.3236, allocations: 2.75 kB / 451.7 MB, free: 12.33 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001405/0.3237, allocations: 6.75 kB / 451.8 MB, free: 12.32 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.51e-05/0.3238, allocations: 22.95 kB / 451.8 MB, free: 12.31 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.36e-05/0.3238, allocations: 9.484 kB / 451.8 MB, free: 12.3 MB / 334.1 MB Notification: Performance of sorting global known variables: time 9.485e-05/0.3239, allocations: 129.5 kB / 451.9 MB, free: 12.21 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3239, allocations: 1.375 kB / 451.9 MB, free: 12.21 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000297/0.3242, allocations: 55.94 kB / 452 MB, free: 12.2 MB / 334.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.0007949/0.325, allocations: 0.9473 MB / 452.9 MB, free: 11.38 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003836/0.3254, allocations: 218.4 kB / 453.1 MB, free: 11.24 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.3254, allocations: 0 / 453.1 MB, free: 11.24 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001808/0.3256, allocations: 144.5 kB / 453.3 MB, free: 11.14 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003468/0.326, allocations: 49.53 kB / 453.3 MB, free: 11.11 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002552/0.3285, allocations: 2.294 MB / 455.6 MB, free: 9.277 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002455/0.3288, allocations: 0.7325 MB / 456.3 MB, free: 8.555 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001178/0.3289, allocations: 26.44 kB / 456.4 MB, free: 8.539 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001026/0.329, allocations: 69.41 kB / 456.4 MB, free: 8.484 MB / 334.1 MB Notification: Performance of SimCode: time 5.21e-07/0.329, allocations: 0 / 456.4 MB, free: 8.484 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02361/0.3526, allocations: 4.82 MB / 461.3 MB, free: 5.945 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.645/7.998, allocations: 10.08 kB / 461.3 MB, free: 5.938 MB / 334.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)