Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenHydraulics_OpenHydraulics.DevelopmentTests.GenericRestrictionTest.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.GenericRestrictionTest,fileNamePrefix="OpenHydraulics_OpenHydraulics_DevelopmentTests_GenericRestrictionTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenHydraulics.DevelopmentTests.GenericRestrictionTest,fileNamePrefix="OpenHydraulics_OpenHydraulics_DevelopmentTests_GenericRestrictionTest",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.001148/0.001148, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001179/0.001179, allocations: 193.8 kB / 16.25 MB, free: 6.621 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.201/1.201, allocations: 205.1 MB / 222.1 MB, free: 4.719 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenHydraulics 1.0.0-master/package.mo): time 0.05069/0.05069, allocations: 11.84 MB / 281.3 MB, free: 9.574 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.001335/0.001335, allocations: 67.84 kB / 341.4 MB, free: 22.21 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06547/0.06681, allocations: 49.22 MB / 390.6 MB, free: 4.934 MB / 286.1 MB Notification: Performance of NFInst.instantiate(OpenHydraulics.DevelopmentTests.GenericRestrictionTest): time 0.003762/0.0706, allocations: 3.347 MB / 394 MB, free: 1.562 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002268/0.07289, allocations: 2.041 MB / 396 MB, free: 15.51 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001091/0.07301, allocations: 7.938 kB / 396 MB, free: 15.5 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002012/0.07323, allocations: 47.67 kB / 396.1 MB, free: 15.46 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002991/0.07354, allocations: 139.1 kB / 396.2 MB, free: 15.32 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006474/0.07419, allocations: 335.4 kB / 396.5 MB, free: 14.99 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003273/0.07453, allocations: 370.2 kB / 396.9 MB, free: 14.63 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001609/0.0747, allocations: 81.5 kB / 397 MB, free: 14.55 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001457/0.07485, allocations: 127.5 kB / 397.1 MB, free: 14.42 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001756/0.07504, allocations: 159.3 kB / 397.3 MB, free: 14.27 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.445e-05/0.07508, allocations: 27.98 kB / 397.3 MB, free: 14.24 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003414/0.07542, allocations: 243.7 kB / 397.5 MB, free: 14 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.737e-05/0.07549, allocations: 59.83 kB / 397.6 MB, free: 13.94 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001315/0.07563, allocations: 159.2 kB / 397.7 MB, free: 13.79 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004587/0.07609, allocations: 446.7 kB / 398.2 MB, free: 13.35 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.096e-06/0.0761, allocations: 0 / 398.2 MB, free: 13.35 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.07611, allocations: 0 / 398.2 MB, free: 13.35 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.08e-06/0.07612, allocations: 0 / 398.2 MB, free: 13.35 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 57 * Number of variables: 57 Notification: Performance of Generate backend data structure: time 0.0007381/0.07686, allocations: 0.5964 MB / 398.8 MB, free: 12.7 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.11e-05/0.0769, allocations: 11.89 kB / 398.8 MB, free: 12.69 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.751e-05/0.07696, allocations: 58.73 kB / 398.9 MB, free: 12.62 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.684e-05/0.07706, allocations: 28.66 kB / 398.9 MB, free: 12.6 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002507/0.07732, allocations: 275.6 kB / 399.1 MB, free: 12.29 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.511e-05/0.07734, allocations: 16.88 kB / 399.2 MB, free: 12.27 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.803e-05/0.07739, allocations: 27.94 kB / 399.2 MB, free: 12.25 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004194/0.07781, allocations: 279.7 kB / 399.5 MB, free: 11.96 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.193e-05/0.07783, allocations: 3.938 kB / 399.5 MB, free: 11.96 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.063e-05/0.07786, allocations: 8 kB / 399.5 MB, free: 11.95 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.863e-06/0.07787, allocations: 8 kB / 399.5 MB, free: 11.95 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003659/0.07824, allocations: 222.1 kB / 399.7 MB, free: 11.73 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.001646/0.0799, allocations: 1.441 MB / 401.1 MB, free: 10.11 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002497/0.08016, allocations: 146.8 kB / 401.3 MB, free: 9.953 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000128/0.08029, allocations: 75.69 kB / 401.4 MB, free: 9.879 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000167/0.08047, allocations: 174.2 kB / 401.5 MB, free: 9.672 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.214e-05/0.0805, allocations: 34.56 kB / 401.6 MB, free: 9.629 MB / 302.1 MB Notification: Performance of pre-optimization done (n=18): time 1.232e-06/0.08051, allocations: 0 / 401.6 MB, free: 9.629 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.001621/0.08213, allocations: 0.7311 MB / 402.3 MB, free: 8.844 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.804e-05/0.08218, allocations: 63.34 kB / 402.4 MB, free: 8.77 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000231/0.08242, allocations: 262.7 kB / 402.6 MB, free: 8.496 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.071e-05/0.08245, allocations: 29.7 kB / 402.6 MB, free: 8.461 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.01e-05/0.08254, allocations: 160.2 kB / 402.8 MB, free: 8.301 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.729e-05/0.0826, allocations: 70.92 kB / 402.9 MB, free: 8.23 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.317e-05/0.08267, allocations: 49.92 kB / 402.9 MB, free: 8.176 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001039/0.08278, allocations: 334.8 kB / 403.2 MB, free: 7.84 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001606/0.08295, allocations: 85.52 kB / 403.3 MB, free: 7.754 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001816/0.08314, allocations: 126.9 kB / 403.5 MB, free: 7.609 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003279/0.08348, allocations: 217.6 kB / 403.7 MB, free: 7.379 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.435e-06/0.08349, allocations: 7.875 kB / 403.7 MB, free: 7.371 MB / 302.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004322/0.08392, allocations: 257.3 kB / 403.9 MB, free: 7.113 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.356e-05/0.08395, allocations: 8 kB / 403.9 MB, free: 7.105 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.917e-06/0.08396, allocations: 0 / 403.9 MB, free: 7.105 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.095e-05/0.08397, allocations: 4 kB / 403.9 MB, free: 7.102 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002578/0.08423, allocations: 71.89 kB / 404 MB, free: 7.031 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.246e-06/0.08425, allocations: 7.984 kB / 404 MB, free: 7.023 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001381/0.08439, allocations: 11.98 kB / 404 MB, free: 7.012 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.909e-05/0.08442, allocations: 8 kB / 404 MB, free: 7.004 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: 7 * 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 (28): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * 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.0001493/0.08458, allocations: 149.7 kB / 404.2 MB, free: 6.848 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.061e-05/0.08463, allocations: 31.7 kB / 404.2 MB, free: 6.816 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004559/0.08509, allocations: 243.4 kB / 404.4 MB, free: 6.574 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.761e-06/0.08511, allocations: 8.031 kB / 404.5 MB, free: 6.566 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.337e-06/0.08512, allocations: 0 / 404.5 MB, free: 6.566 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.43e-06/0.08513, allocations: 7.984 kB / 404.5 MB, free: 6.559 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008272/0.08596, allocations: 0.6243 MB / 405.1 MB, free: 5.875 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.724e-06/0.08597, allocations: 0 / 405.1 MB, free: 5.875 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002657/0.08625, allocations: 67.89 kB / 405.2 MB, free: 5.809 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.254e-06/0.08626, allocations: 0 / 405.2 MB, free: 5.809 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.869e-05/0.08628, allocations: 8 kB / 405.2 MB, free: 5.801 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.693e-06/0.08629, allocations: 4.031 kB / 405.2 MB, free: 5.797 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.08629, allocations: 4 kB / 405.2 MB, free: 5.793 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000555/0.08685, allocations: 399.8 kB / 405.6 MB, free: 5.383 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001004/0.08696, allocations: 124.8 kB / 405.7 MB, free: 5.242 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.775e-05/0.08701, allocations: 0 / 405.7 MB, free: 5.242 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001605/0.08718, allocations: 16.06 kB / 405.7 MB, free: 5.227 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.162e-05/0.08723, allocations: 19.91 kB / 405.7 MB, free: 5.207 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.34e-05/0.08724, allocations: 8 kB / 405.7 MB, free: 5.199 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001668/0.08742, allocations: 198 kB / 405.9 MB, free: 5.008 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.08742, allocations: 0 / 405.9 MB, free: 5.008 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000366/0.08779, allocations: 115.9 kB / 406 MB, free: 4.895 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (idealPump.phi,circuitTank.volumeOpen.m) * 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 (22): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * 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.0009385/0.08874, allocations: 1.006 MB / 407 MB, free: 3.859 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004046/0.08915, allocations: 203.7 kB / 407.2 MB, free: 3.66 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.08916, allocations: 0 / 407.2 MB, free: 3.66 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001539/0.08932, allocations: 84.47 kB / 407.3 MB, free: 3.578 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000396/0.08973, allocations: 76.7 kB / 407.4 MB, free: 3.504 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003173/0.09291, allocations: 2.97 MB / 410.4 MB, free: 424 kB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002832/0.0932, allocations: 0.7638 MB / 411.1 MB, free: 15.62 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001435/0.09336, allocations: 38.91 kB / 411.2 MB, free: 15.59 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000131/0.09349, allocations: 91.39 kB / 411.3 MB, free: 15.5 MB / 318.1 MB Notification: Performance of SimCode: time 2.31e-07/0.0935, allocations: 0 / 411.3 MB, free: 15.5 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02403/0.1175, allocations: 7.575 MB / 418.8 MB, free: 7.984 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001513/0.1177, allocations: 208.2 kB / 419 MB, free: 7.727 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.732/1.85, allocations: 8.062 kB / 419 MB, free: 7.719 MB / 318.1 MB (rm -f OpenHydraulics_OpenHydraulics.DevelopmentTests.GenericRestrictionTest.pipe ; mkfifo OpenHydraulics_OpenHydraulics.DevelopmentTests.GenericRestrictionTest.pipe ; head -c 1048576 < OpenHydraulics_OpenHydraulics.DevelopmentTests.GenericRestrictionTest.pipe >> ../files/OpenHydraulics_OpenHydraulics.DevelopmentTests.GenericRestrictionTest.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_OpenHydraulics_OpenHydraulics_DevelopmentTests_GenericRestrictionTest_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 OpenHydraulics_OpenHydraulics_DevelopmentTests_GenericRestrictionTest.fmu > OpenHydraulics_OpenHydraulics.DevelopmentTests.GenericRestrictionTest.pipe 2>&1)