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.005593/0.005593, allocations: 100.9 kB / 15.73 MB, free: 6.062 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.001329/0.00133, allocations: 195.3 kB / 16.67 MB, free: 5.973 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.338/1.338, allocations: 205.1 MB / 222.6 MB, free: 4.508 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenHydraulics 1.0.0-master/package.mo): time 0.05671/0.05671, allocations: 11.85 MB / 281.8 MB, free: 9.32 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.002116/0.002116, allocations: 68.11 kB / 391.8 MB, free: 3.969 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2406/0.2427, allocations: 49.23 MB / 441.1 MB, free: 4.145 MB / 318.1 MB Notification: Performance of NFInst.instantiate(OpenHydraulics.DevelopmentTests.GenericRestrictionTestOpenTank): time 0.003497/0.2462, allocations: 2.622 MB / 443.7 MB, free: 2.316 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001079/0.2473, allocations: 0.6969 MB / 444.4 MB, free: 1.82 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001055/0.2475, allocations: 2.438 kB / 444.4 MB, free: 1.82 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001163/0.2476, allocations: 34.83 kB / 444.4 MB, free: 1.797 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003112/0.2479, allocations: 113.9 kB / 444.5 MB, free: 1.719 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001445/0.2481, allocations: 45.41 kB / 444.6 MB, free: 1.695 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002549/0.2483, allocations: 256.5 kB / 444.8 MB, free: 1.562 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001367/0.2485, allocations: 61.28 kB / 444.9 MB, free: 1.535 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000123/0.2486, allocations: 97.92 kB / 445 MB, free: 1.488 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001586/0.2488, allocations: 104.5 kB / 445.1 MB, free: 1.438 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.842e-05/0.2488, allocations: 14.38 kB / 445.1 MB, free: 1.438 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.704e-05/0.2489, allocations: 33.09 kB / 445.1 MB, free: 1.43 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.575e-05/0.2489, allocations: 39.48 kB / 445.2 MB, free: 1.402 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.493e-05/0.249, allocations: 105.2 kB / 445.3 MB, free: 1.344 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002706/0.2493, allocations: 197.5 kB / 445.5 MB, free: 1.27 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.2493, allocations: 1.219 kB / 445.5 MB, free: 1.27 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.824e-06/0.2493, allocations: 0.6562 kB / 445.5 MB, free: 1.27 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.681e-06/0.2493, allocations: 0 / 445.5 MB, free: 1.27 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.0005541/0.2499, allocations: 0.5047 MB / 446 MB, free: 0.793 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.995e-05/0.25, allocations: 14.42 kB / 446 MB, free: 0.7891 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.386e-05/0.25, allocations: 52.67 kB / 446 MB, free: 0.7383 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.669e-05/0.2501, allocations: 24.33 kB / 446.1 MB, free: 0.7266 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002562/0.2504, allocations: 231.8 kB / 446.3 MB, free: 0.4922 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.654e-05/0.2504, allocations: 11.03 kB / 446.3 MB, free: 500 kB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.386e-05/0.2504, allocations: 23.56 kB / 446.3 MB, free: 488 kB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003263/0.2508, allocations: 195.8 kB / 446.5 MB, free: 372 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.346e-05/0.2508, allocations: 1.375 kB / 446.5 MB, free: 372 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.61e-05/0.2508, allocations: 5.062 kB / 446.5 MB, free: 368 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.085e-06/0.2508, allocations: 4.906 kB / 446.5 MB, free: 368 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002494/0.2511, allocations: 120.4 kB / 446.6 MB, free: 332 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.001144/0.2522, allocations: 0.9219 MB / 447.6 MB, free: 15.51 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002959/0.2525, allocations: 148.7 kB / 447.7 MB, free: 15.44 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001297/0.2527, allocations: 66.58 kB / 447.8 MB, free: 15.41 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.964e-05/0.2527, allocations: 5.359 kB / 447.8 MB, free: 15.4 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.313e-05/0.2527, allocations: 36.81 kB / 447.8 MB, free: 15.36 MB / 334.1 MB Notification: Performance of pre-optimization done (n=17): time 1.413e-06/0.2527, allocations: 0 / 447.8 MB, free: 15.36 MB / 334.1 MB Notification: Performance of matching and sorting (n=20): time 0.001844/0.2546, allocations: 0.7531 MB / 448.6 MB, free: 14.85 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.663e-05/0.2547, allocations: 79.95 kB / 448.7 MB, free: 14.75 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001703/0.2548, allocations: 179.2 kB / 448.8 MB, free: 14.63 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.305e-05/0.2549, allocations: 29.7 kB / 448.9 MB, free: 14.59 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.171e-05/0.255, allocations: 122.3 kB / 449 MB, free: 14.48 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.08e-05/0.255, allocations: 75.95 kB / 449.1 MB, free: 14.42 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.195e-05/0.2551, allocations: 41.58 kB / 449.1 MB, free: 14.39 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001381/0.2552, allocations: 327.6 kB / 449.4 MB, free: 14.07 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001483/0.2554, allocations: 65.75 kB / 449.5 MB, free: 14.05 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001557/0.2556, allocations: 93.58 kB / 449.6 MB, free: 13.98 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003445/0.2559, allocations: 224.7 kB / 449.8 MB, free: 13.82 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.223e-06/0.2559, allocations: 1.406 kB / 449.8 MB, free: 13.82 MB / 334.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004305/0.2564, allocations: 234.7 kB / 450 MB, free: 13.69 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.474e-05/0.2564, allocations: 35.27 kB / 450.1 MB, free: 13.65 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.18e-06/0.2564, allocations: 1.094 kB / 450.1 MB, free: 13.65 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.526e-05/0.2564, allocations: 2.531 kB / 450.1 MB, free: 13.65 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000266/0.2567, allocations: 59.2 kB / 450.1 MB, free: 13.64 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.923e-06/0.2567, allocations: 1.75 kB / 450.1 MB, free: 13.64 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001119/0.2568, allocations: 12.91 kB / 450.1 MB, free: 13.63 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.36e-05/0.2569, allocations: 13.8 kB / 450.1 MB, free: 13.62 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.0001832/0.2571, allocations: 169 kB / 450.3 MB, free: 13.45 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.453e-05/0.2571, allocations: 21.44 kB / 450.3 MB, free: 13.44 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000485/0.2576, allocations: 255.3 kB / 450.6 MB, free: 13.26 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.927e-06/0.2576, allocations: 2.25 kB / 450.6 MB, free: 13.26 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.967e-06/0.2576, allocations: 1.219 kB / 450.6 MB, free: 13.26 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.948e-06/0.2576, allocations: 0 / 450.6 MB, free: 13.26 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007932/0.2584, allocations: 0.5838 MB / 451.2 MB, free: 12.75 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.854e-06/0.2584, allocations: 3.938 kB / 451.2 MB, free: 12.75 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002462/0.2587, allocations: 64.02 kB / 451.2 MB, free: 12.73 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.154e-06/0.2587, allocations: 0 / 451.2 MB, free: 12.73 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.521e-05/0.2587, allocations: 2.25 kB / 451.2 MB, free: 12.73 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.375e-06/0.2587, allocations: 1.844 kB / 451.2 MB, free: 12.73 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.2587, allocations: 0 / 451.2 MB, free: 12.73 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005951/0.2593, allocations: 405.9 kB / 451.6 MB, free: 12.44 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.837e-05/0.2595, allocations: 107.8 kB / 451.7 MB, free: 12.32 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.541e-05/0.2595, allocations: 10.73 kB / 451.7 MB, free: 12.32 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000131/0.2596, allocations: 4.125 kB / 451.7 MB, free: 12.32 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.446e-05/0.2597, allocations: 18.8 kB / 451.8 MB, free: 12.3 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.771e-05/0.2597, allocations: 8.109 kB / 451.8 MB, free: 12.3 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000107/0.2598, allocations: 130.7 kB / 451.9 MB, free: 12.2 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2598, allocations: 4.062 kB / 451.9 MB, free: 12.2 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002909/0.2601, allocations: 55.97 kB / 452 MB, free: 12.19 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.0009341/0.2611, allocations: 0.9475 MB / 452.9 MB, free: 11.37 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004084/0.2615, allocations: 219.5 kB / 453.1 MB, free: 11.23 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.844e-06/0.2615, allocations: 0 / 453.1 MB, free: 11.23 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001897/0.2617, allocations: 139 kB / 453.3 MB, free: 11.13 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003436/0.2621, allocations: 55.47 kB / 453.3 MB, free: 11.1 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002813/0.2649, allocations: 2.293 MB / 455.6 MB, free: 9.27 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003433/0.2652, allocations: 0.7286 MB / 456.3 MB, free: 8.551 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001116/0.2654, allocations: 33.48 kB / 456.4 MB, free: 8.527 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001147/0.2655, allocations: 65.31 kB / 456.4 MB, free: 8.477 MB / 334.1 MB Notification: Performance of SimCode: time 1.864e-06/0.2655, allocations: 0 / 456.4 MB, free: 8.477 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02707/0.2926, allocations: 4.827 MB / 461.3 MB, free: 5.934 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.837/8.129, allocations: 13.03 kB / 461.3 MB, free: 5.922 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_OpenHydraulics_OpenHydraulics_DevelopmentTests_GenericRestrictionTestOpenTank_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 OpenHydraulics_OpenHydraulics_DevelopmentTests_GenericRestrictionTestOpenTank.fmu > OpenHydraulics_OpenHydraulics.DevelopmentTests.GenericRestrictionTestOpenTank.pipe 2>&1)