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.001108/0.001108, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001078/0.001078, allocations: 195.9 kB / 16.14 MB, free: 6.664 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.105/1.105, allocations: 205.1 MB / 222 MB, free: 4.977 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenHydraulics 1.0.0-master/package.mo): time 0.04872/0.04872, allocations: 11.84 MB / 281.2 MB, free: 9.879 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.001281/0.001281, allocations: 67.91 kB / 341.2 MB, free: 22.36 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06417/0.06546, allocations: 49.21 MB / 390.5 MB, free: 5.09 MB / 286.1 MB Notification: Performance of NFInst.instantiate(OpenHydraulics.DevelopmentTests.GenericRestrictionTestOpenTank): time 0.003433/0.06893, allocations: 3.043 MB / 393.5 MB, free: 2.023 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009622/0.0699, allocations: 0.7407 MB / 394.2 MB, free: 1.277 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.692e-05/0.07, allocations: 4 kB / 394.2 MB, free: 1.273 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001/0.07011, allocations: 27.78 kB / 394.3 MB, free: 1.246 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002507/0.07037, allocations: 99.36 kB / 394.4 MB, free: 1.148 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001188/0.07049, allocations: 39.95 kB / 394.4 MB, free: 1.109 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002288/0.07073, allocations: 242.7 kB / 394.6 MB, free: 0.8711 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001131/0.07085, allocations: 53.03 kB / 394.7 MB, free: 0.8203 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001176/0.07097, allocations: 87.64 kB / 394.8 MB, free: 0.7344 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001243/0.07111, allocations: 99.55 kB / 394.9 MB, free: 0.6367 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.293e-05/0.07113, allocations: 12 kB / 394.9 MB, free: 0.625 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.247e-05/0.07122, allocations: 20 kB / 394.9 MB, free: 0.6055 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.148e-05/0.07126, allocations: 39.83 kB / 395 MB, free: 0.5664 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 9.208e-05/0.07136, allocations: 95.48 kB / 395 MB, free: 484 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001998/0.07156, allocations: 199.6 kB / 395.2 MB, free: 284 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.306e-06/0.07157, allocations: 0 / 395.2 MB, free: 284 kB / 286.1 MB Notification: Performance of FrontEnd: time 7.01e-07/0.07158, allocations: 0 / 395.2 MB, free: 284 kB / 286.1 MB Notification: Performance of Transformations before backend: time 3.727e-06/0.07159, allocations: 4 kB / 395.2 MB, free: 280 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.0005518/0.07215, allocations: 0.5043 MB / 395.7 MB, free: 15.71 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.142e-05/0.07218, allocations: 8.031 kB / 395.8 MB, free: 15.71 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.412e-05/0.07223, allocations: 54.67 kB / 395.8 MB, free: 15.64 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001333/0.07237, allocations: 20.75 kB / 395.8 MB, free: 15.62 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000239/0.07262, allocations: 228 kB / 396.1 MB, free: 15.36 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.167e-05/0.07264, allocations: 8.375 kB / 396.1 MB, free: 15.36 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.658e-05/0.07267, allocations: 19.94 kB / 396.1 MB, free: 15.34 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003033/0.07298, allocations: 191.7 kB / 396.3 MB, free: 15.14 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.447e-06/0.07299, allocations: 0 / 396.3 MB, free: 15.14 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.667e-05/0.07302, allocations: 4 kB / 396.3 MB, free: 15.13 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.651e-06/0.07303, allocations: 4 kB / 396.3 MB, free: 15.13 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002319/0.07326, allocations: 128.8 kB / 396.4 MB, free: 15 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.0009673/0.07424, allocations: 0.9334 MB / 397.3 MB, free: 13.96 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002459/0.07449, allocations: 154.6 kB / 397.5 MB, free: 13.8 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001168/0.07462, allocations: 68.83 kB / 397.6 MB, free: 13.73 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.562e-05/0.07464, allocations: 4 kB / 397.6 MB, free: 13.72 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.22e-05/0.07467, allocations: 38.56 kB / 397.6 MB, free: 13.68 MB / 302.1 MB Notification: Performance of pre-optimization done (n=17): time 1.283e-06/0.07467, allocations: 0 / 397.6 MB, free: 13.68 MB / 302.1 MB Notification: Performance of matching and sorting (n=20): time 0.001551/0.07623, allocations: 0.7468 MB / 398.3 MB, free: 12.86 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.232e-05/0.07628, allocations: 85.05 kB / 398.4 MB, free: 12.76 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001301/0.07642, allocations: 174.7 kB / 398.6 MB, free: 12.58 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.858e-05/0.07644, allocations: 33.7 kB / 398.6 MB, free: 12.54 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.008e-05/0.07651, allocations: 128.3 kB / 398.8 MB, free: 12.41 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.362e-05/0.07658, allocations: 67 kB / 398.8 MB, free: 12.34 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.925e-05/0.07664, allocations: 37.7 kB / 398.9 MB, free: 12.3 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.54e-05/0.07674, allocations: 330.8 kB / 399.2 MB, free: 11.97 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001274/0.07688, allocations: 60.83 kB / 399.2 MB, free: 11.91 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001427/0.07702, allocations: 96.25 kB / 399.3 MB, free: 11.8 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002851/0.07732, allocations: 210.9 kB / 399.5 MB, free: 11.57 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.122e-06/0.07733, allocations: 0 / 399.5 MB, free: 11.57 MB / 302.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0003554/0.07769, allocations: 234.9 kB / 399.8 MB, free: 11.32 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.579e-05/0.07772, allocations: 37.64 kB / 399.8 MB, free: 11.28 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.36e-06/0.07773, allocations: 3.984 kB / 399.8 MB, free: 11.28 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.678e-06/0.07775, allocations: 0 / 399.8 MB, free: 11.28 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002504/0.078, allocations: 59.91 kB / 399.9 MB, free: 11.22 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.664e-06/0.07802, allocations: 4 kB / 399.9 MB, free: 11.21 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000123/0.07815, allocations: 12.08 kB / 399.9 MB, free: 11.2 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.566e-05/0.07817, allocations: 12 kB / 399.9 MB, free: 11.19 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.0001515/0.07833, allocations: 164.3 kB / 400.1 MB, free: 11.02 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.238e-05/0.07837, allocations: 19.75 kB / 400.1 MB, free: 11 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004965/0.07888, allocations: 257.1 kB / 400.3 MB, free: 10.73 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.208e-06/0.07889, allocations: 8 kB / 400.3 MB, free: 10.72 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/0.0789, allocations: 7.938 kB / 400.3 MB, free: 10.71 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.426e-06/0.07891, allocations: 0 / 400.3 MB, free: 10.71 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006573/0.07957, allocations: 0.5779 MB / 400.9 MB, free: 10.07 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.07958, allocations: 0 / 400.9 MB, free: 10.07 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002415/0.07983, allocations: 51.97 kB / 401 MB, free: 10.02 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.933e-06/0.07984, allocations: 3.938 kB / 401 MB, free: 10.02 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.571e-05/0.07986, allocations: 8 kB / 401 MB, free: 10.01 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.533e-06/0.07987, allocations: 4 kB / 401 MB, free: 10.01 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.51e-07/0.07987, allocations: 0 / 401 MB, free: 10.01 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005158/0.08039, allocations: 408.8 kB / 401.4 MB, free: 9.586 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.532e-05/0.08048, allocations: 108.8 kB / 401.5 MB, free: 9.461 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.049e-05/0.08052, allocations: 8 kB / 401.5 MB, free: 9.453 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001373/0.08066, allocations: 16.05 kB / 401.5 MB, free: 9.438 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.107e-05/0.08071, allocations: 11.98 kB / 401.5 MB, free: 9.426 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.237e-05/0.08072, allocations: 8 kB / 401.5 MB, free: 9.418 MB / 302.1 MB Notification: Performance of sorting global known variables: time 9.683e-05/0.08083, allocations: 135.2 kB / 401.7 MB, free: 9.285 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.08083, allocations: 0 / 401.7 MB, free: 9.285 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002624/0.0811, allocations: 48 kB / 401.7 MB, free: 9.238 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.0008284/0.08193, allocations: 0.9561 MB / 402.7 MB, free: 8.25 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003272/0.08227, allocations: 203.3 kB / 402.9 MB, free: 8.039 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.363e-06/0.08228, allocations: 0 / 402.9 MB, free: 8.039 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001651/0.08245, allocations: 143.2 kB / 403 MB, free: 7.887 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003091/0.08277, allocations: 40.22 kB / 403 MB, free: 7.848 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002351/0.08513, allocations: 2.389 MB / 405.4 MB, free: 5.352 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003139/0.08546, allocations: 0.7324 MB / 406.2 MB, free: 4.594 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001129/0.08558, allocations: 29.92 kB / 406.2 MB, free: 4.559 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.438e-05/0.08567, allocations: 63.41 kB / 406.3 MB, free: 4.496 MB / 302.1 MB Notification: Performance of SimCode: time 2.3e-07/0.08568, allocations: 0 / 406.3 MB, free: 4.496 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01287/0.09855, allocations: 4.464 MB / 410.7 MB, free: 96 kB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002248/0.09879, allocations: 229.7 kB / 410.9 MB, free: 15.83 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.565/1.664, allocations: 0 / 410.9 MB, free: 15.83 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 & /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)