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.004879/0.004879, allocations: 99.34 kB / 15.73 MB, free: 6.008 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.001286/0.001286, allocations: 198.8 kB / 16.67 MB, free: 5.934 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.351/1.351, allocations: 205.1 MB / 222.6 MB, free: 4.531 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenHydraulics 1.0.0-master/package.mo): time 0.05904/0.05904, allocations: 11.85 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.002169/0.002169, allocations: 71.89 kB / 391.8 MB, free: 3.988 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2295/0.2316, allocations: 49.22 MB / 441.1 MB, free: 4.168 MB / 318.1 MB Notification: Performance of NFInst.instantiate(OpenHydraulics.DevelopmentTests.GenericRestrictionTestOpenTank): time 0.003129/0.2348, allocations: 2.631 MB / 443.7 MB, free: 2.332 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001049/0.2359, allocations: 0.6994 MB / 444.4 MB, free: 1.832 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001085/0.236, allocations: 2.469 kB / 444.4 MB, free: 1.832 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001095/0.2361, allocations: 27.33 kB / 444.4 MB, free: 1.816 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003222/0.2365, allocations: 113.9 kB / 444.5 MB, free: 1.738 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001437/0.2366, allocations: 50.64 kB / 444.6 MB, free: 1.711 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002475/0.2369, allocations: 251.4 kB / 444.8 MB, free: 1.582 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001339/0.237, allocations: 68.83 kB / 444.9 MB, free: 1.543 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001274/0.2371, allocations: 95 kB / 445 MB, free: 1.5 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001586/0.2373, allocations: 95.41 kB / 445.1 MB, free: 1.457 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.863e-05/0.2373, allocations: 18.41 kB / 445.1 MB, free: 1.453 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.905e-05/0.2375, allocations: 33.98 kB / 445.1 MB, free: 1.445 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.476e-05/0.2375, allocations: 39 kB / 445.2 MB, free: 1.418 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.209e-05/0.2376, allocations: 105.3 kB / 445.3 MB, free: 1.359 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002702/0.2379, allocations: 205 kB / 445.5 MB, free: 1.281 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.287e-06/0.2379, allocations: 0 / 445.5 MB, free: 1.281 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.2379, allocations: 0 / 445.5 MB, free: 1.281 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.139e-06/0.2379, allocations: 0 / 445.5 MB, free: 1.281 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.0005369/0.2384, allocations: 0.5059 MB / 446 MB, free: 0.8047 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.667e-05/0.2385, allocations: 14.11 kB / 446 MB, free: 0.8008 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.903e-05/0.2385, allocations: 48.16 kB / 446 MB, free: 0.7539 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.486e-05/0.2386, allocations: 25.75 kB / 446.1 MB, free: 0.7422 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002285/0.2389, allocations: 230.6 kB / 446.3 MB, free: 0.5078 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.693e-05/0.2389, allocations: 15.16 kB / 446.3 MB, free: 0.5 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.079e-05/0.2389, allocations: 23 kB / 446.3 MB, free: 500 kB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003072/0.2392, allocations: 189.6 kB / 446.5 MB, free: 392 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.238e-05/0.2393, allocations: 4 kB / 446.5 MB, free: 388 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.736e-05/0.2393, allocations: 6 kB / 446.5 MB, free: 384 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.084e-06/0.2393, allocations: 8.219 kB / 446.5 MB, free: 380 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002587/0.2396, allocations: 119.8 kB / 446.7 MB, free: 344 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.001128/0.2407, allocations: 0.9263 MB / 447.6 MB, free: 15.52 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002919/0.241, allocations: 153.2 kB / 447.7 MB, free: 15.44 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001255/0.2411, allocations: 61.97 kB / 447.8 MB, free: 15.41 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.239e-05/0.2412, allocations: 5.297 kB / 447.8 MB, free: 15.41 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.087e-05/0.2412, allocations: 37.61 kB / 447.8 MB, free: 15.37 MB / 334.1 MB Notification: Performance of pre-optimization done (n=17): time 1.833e-06/0.2412, allocations: 4 kB / 447.8 MB, free: 15.36 MB / 334.1 MB Notification: Performance of matching and sorting (n=20): time 0.001834/0.2431, allocations: 0.7513 MB / 448.6 MB, free: 14.85 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.947e-05/0.2431, allocations: 81.3 kB / 448.7 MB, free: 14.76 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001594/0.2433, allocations: 172.6 kB / 448.8 MB, free: 14.64 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.042e-05/0.2433, allocations: 30.67 kB / 448.9 MB, free: 14.6 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.525e-05/0.2434, allocations: 127.6 kB / 449 MB, free: 14.49 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.899e-05/0.2435, allocations: 69.05 kB / 449.1 MB, free: 14.43 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.074e-05/0.2436, allocations: 40.02 kB / 449.1 MB, free: 14.41 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000148/0.2437, allocations: 331.2 kB / 449.4 MB, free: 14.08 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001424/0.2439, allocations: 67.12 kB / 449.5 MB, free: 14.05 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001539/0.244, allocations: 91.27 kB / 449.6 MB, free: 14 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000351/0.2444, allocations: 227.8 kB / 449.8 MB, free: 13.83 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.243e-06/0.2444, allocations: 0 / 449.8 MB, free: 13.83 MB / 334.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004229/0.2448, allocations: 231.6 kB / 450 MB, free: 13.7 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.259e-05/0.2449, allocations: 40.34 kB / 450.1 MB, free: 13.66 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.741e-06/0.2449, allocations: 2.219 kB / 450.1 MB, free: 13.66 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.287e-05/0.2449, allocations: 6.25 kB / 450.1 MB, free: 13.66 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002702/0.2452, allocations: 53.48 kB / 450.1 MB, free: 13.66 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.109e-05/0.2452, allocations: 6.844 kB / 450.1 MB, free: 13.66 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001229/0.2454, allocations: 10.09 kB / 450.1 MB, free: 13.65 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.726e-05/0.2454, allocations: 7.406 kB / 450.1 MB, free: 13.65 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.0001854/0.2456, allocations: 158.9 kB / 450.3 MB, free: 13.49 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.469e-05/0.2456, allocations: 25.5 kB / 450.3 MB, free: 13.48 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004944/0.2461, allocations: 257.9 kB / 450.6 MB, free: 13.3 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.488e-06/0.2461, allocations: 3.469 kB / 450.6 MB, free: 13.3 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.017e-06/0.2462, allocations: 0 / 450.6 MB, free: 13.3 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.232e-06/0.2462, allocations: 0 / 450.6 MB, free: 13.3 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008004/0.247, allocations: 0.5889 MB / 451.2 MB, free: 12.79 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.265e-06/0.247, allocations: 0 / 451.2 MB, free: 12.79 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002481/0.2472, allocations: 57.75 kB / 451.2 MB, free: 12.77 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.206e-06/0.2473, allocations: 1.125 kB / 451.2 MB, free: 12.77 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.869e-05/0.2473, allocations: 13.5 kB / 451.2 MB, free: 12.76 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.953e-06/0.2473, allocations: 1.719 kB / 451.2 MB, free: 12.76 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.2473, allocations: 0 / 451.2 MB, free: 12.76 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006282/0.2479, allocations: 410.8 kB / 451.6 MB, free: 12.47 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001018/0.248, allocations: 107.8 kB / 451.7 MB, free: 12.35 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.421e-05/0.2481, allocations: 6.75 kB / 451.8 MB, free: 12.35 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001388/0.2482, allocations: 12.11 kB / 451.8 MB, free: 12.34 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.124e-05/0.2483, allocations: 10.86 kB / 451.8 MB, free: 12.34 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.515e-05/0.2483, allocations: 8.125 kB / 451.8 MB, free: 12.33 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001141/0.2484, allocations: 134.9 kB / 451.9 MB, free: 12.23 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.2484, allocations: 0 / 451.9 MB, free: 12.23 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002984/0.2487, allocations: 52.53 kB / 452 MB, free: 12.22 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.001012/0.2498, allocations: 0.9506 MB / 452.9 MB, free: 11.4 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004138/0.2502, allocations: 214.8 kB / 453.1 MB, free: 11.27 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.2502, allocations: 4 kB / 453.1 MB, free: 11.26 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001937/0.2504, allocations: 136.8 kB / 453.3 MB, free: 11.17 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003611/0.2508, allocations: 49.66 kB / 453.3 MB, free: 11.14 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002927/0.2537, allocations: 2.297 MB / 455.6 MB, free: 9.305 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000369/0.2541, allocations: 0.7326 MB / 456.3 MB, free: 8.582 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001248/0.2542, allocations: 27.78 kB / 456.4 MB, free: 8.566 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001135/0.2543, allocations: 63.06 kB / 456.4 MB, free: 8.516 MB / 334.1 MB Notification: Performance of SimCode: time 4.71e-07/0.2543, allocations: 1.469 kB / 456.4 MB, free: 8.516 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02801/0.2824, allocations: 4.818 MB / 461.3 MB, free: 5.98 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.995/8.278, allocations: 12.95 kB / 461.3 MB, free: 5.969 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)