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: translateModel(OpenHydraulics.DevelopmentTests.GenericRestrictionTest,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenHydraulics_OpenHydraulics.DevelopmentTests.GenericRestrictionTest") translateModel(OpenHydraulics.DevelopmentTests.GenericRestrictionTest,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenHydraulics_OpenHydraulics.DevelopmentTests.GenericRestrictionTest") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001297/0.001297, allocations: 107.7 kB / 16.41 MB, free: 6.484 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.001312/0.001312, allocations: 187 kB / 17.34 MB, free: 5.734 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.283/1.283, allocations: 205.1 MB / 223.2 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenHydraulics 1.0.0-master/package.mo): time 0.05462/0.05462, allocations: 11.84 MB / 282.4 MB, free: 216 kB / 222.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.001467/0.001467, allocations: 74.84 kB / 393 MB, free: 45.32 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0776/0.07907, allocations: 49.23 MB / 442.2 MB, free: 2.074 MB / 318.1 MB Notification: Performance of NFInst.instantiate(OpenHydraulics.DevelopmentTests.GenericRestrictionTest): time 0.003186/0.0823, allocations: 2.898 MB / 445.1 MB, free: 15.15 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002548/0.08486, allocations: 2.005 MB / 447.1 MB, free: 13.14 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001286/0.08501, allocations: 4 kB / 447.1 MB, free: 13.13 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002244/0.08525, allocations: 59.48 kB / 447.2 MB, free: 13.07 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003422/0.0856, allocations: 143 kB / 447.3 MB, free: 12.93 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006897/0.0863, allocations: 374.6 kB / 447.7 MB, free: 12.57 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003611/0.08667, allocations: 382.1 kB / 448.1 MB, free: 12.19 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001811/0.08686, allocations: 93.47 kB / 448.2 MB, free: 12.1 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001559/0.08703, allocations: 135.4 kB / 448.3 MB, free: 11.96 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001965/0.08723, allocations: 151.4 kB / 448.4 MB, free: 11.82 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.405e-05/0.08727, allocations: 23.94 kB / 448.5 MB, free: 11.79 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003569/0.08764, allocations: 247.8 kB / 448.7 MB, free: 11.55 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.914e-05/0.08771, allocations: 55.77 kB / 448.8 MB, free: 11.5 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001303/0.08784, allocations: 155.3 kB / 448.9 MB, free: 11.34 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004943/0.08834, allocations: 462.6 kB / 449.4 MB, free: 10.89 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.887e-06/0.08836, allocations: 0 / 449.4 MB, free: 10.89 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.08837, allocations: 0 / 449.4 MB, free: 10.89 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.982e-06/0.08838, allocations: 0 / 449.4 MB, free: 10.89 MB / 334.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.0008181/0.0892, allocations: 0.5886 MB / 450 MB, free: 10.25 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.216e-05/0.08924, allocations: 11.89 kB / 450 MB, free: 10.24 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001126/0.08936, allocations: 32.56 kB / 450 MB, free: 10.21 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002877/0.08965, allocations: 279.7 kB / 450.3 MB, free: 9.898 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.812e-05/0.08968, allocations: 16.94 kB / 450.3 MB, free: 9.883 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.043e-05/0.08972, allocations: 24.12 kB / 450.3 MB, free: 9.859 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004402/0.09017, allocations: 271.7 kB / 450.6 MB, free: 9.582 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.368e-05/0.09019, allocations: 0 / 450.6 MB, free: 9.582 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.232e-05/0.09022, allocations: 12 kB / 450.6 MB, free: 9.57 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.752e-06/0.09023, allocations: 4 kB / 450.6 MB, free: 9.566 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003792/0.09061, allocations: 222.1 kB / 450.8 MB, free: 9.348 MB / 334.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.001747/0.09237, allocations: 1.444 MB / 452.3 MB, free: 7.723 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002711/0.09265, allocations: 153.8 kB / 452.4 MB, free: 7.566 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001354/0.0928, allocations: 72.83 kB / 452.5 MB, free: 7.492 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001732/0.09298, allocations: 170.2 kB / 452.6 MB, free: 7.289 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.276e-05/0.09302, allocations: 34.56 kB / 452.7 MB, free: 7.246 MB / 334.1 MB Notification: Performance of pre-optimization done (n=18): time 1.353e-06/0.09303, allocations: 3.938 kB / 452.7 MB, free: 7.242 MB / 334.1 MB Notification: Performance of matching and sorting (n=21): time 0.001765/0.0948, allocations: 0.7251 MB / 453.4 MB, free: 6.465 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.703e-05/0.09485, allocations: 59.39 kB / 453.5 MB, free: 6.395 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000259/0.09511, allocations: 266.7 kB / 453.7 MB, free: 6.125 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.124e-05/0.09514, allocations: 25.7 kB / 453.8 MB, free: 6.094 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001005/0.09525, allocations: 156.2 kB / 453.9 MB, free: 5.938 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.18e-05/0.09531, allocations: 78.89 kB / 454 MB, free: 5.859 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.508e-05/0.0954, allocations: 45.94 kB / 454 MB, free: 5.809 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001196/0.09552, allocations: 334.8 kB / 454.4 MB, free: 5.473 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001833/0.09571, allocations: 89.72 kB / 454.4 MB, free: 5.383 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001922/0.09591, allocations: 126.9 kB / 454.6 MB, free: 5.238 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003538/0.09628, allocations: 213.1 kB / 454.8 MB, free: 5.012 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.212e-06/0.09629, allocations: 0 / 454.8 MB, free: 5.012 MB / 334.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004693/0.09676, allocations: 269.1 kB / 455 MB, free: 4.742 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.767e-05/0.09679, allocations: 8 kB / 455 MB, free: 4.734 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.922e-06/0.0968, allocations: 0 / 455 MB, free: 4.734 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.666e-05/0.09682, allocations: 4 kB / 455 MB, free: 4.73 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002753/0.0971, allocations: 71.89 kB / 455.1 MB, free: 4.66 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.188e-06/0.09712, allocations: 7.984 kB / 455.1 MB, free: 4.652 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000133/0.09726, allocations: 15.92 kB / 455.1 MB, free: 4.637 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.128e-05/0.09729, allocations: 8 kB / 455.1 MB, free: 4.629 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: 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.0001737/0.09747, allocations: 157.7 kB / 455.3 MB, free: 4.465 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.099e-05/0.09754, allocations: 23.72 kB / 455.3 MB, free: 4.441 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004982/0.09804, allocations: 239.6 kB / 455.6 MB, free: 4.195 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.358e-06/0.09806, allocations: 4 kB / 455.6 MB, free: 4.191 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.957e-06/0.09806, allocations: 0 / 455.6 MB, free: 4.191 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.989e-06/0.09808, allocations: 8 kB / 455.6 MB, free: 4.184 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008954/0.09898, allocations: 0.6284 MB / 456.2 MB, free: 3.492 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.337e-06/0.09899, allocations: 0 / 456.2 MB, free: 3.492 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002584/0.09926, allocations: 67.83 kB / 456.3 MB, free: 3.426 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.735e-06/0.09927, allocations: 0 / 456.3 MB, free: 3.426 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.829e-05/0.09929, allocations: 8 kB / 456.3 MB, free: 3.418 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.864e-06/0.0993, allocations: 0 / 456.3 MB, free: 3.418 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.0993, allocations: 4.031 kB / 456.3 MB, free: 3.414 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000604/0.09991, allocations: 400.5 kB / 456.7 MB, free: 3.004 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001031/0.1, allocations: 120.8 kB / 456.8 MB, free: 2.867 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.62e-05/0.1001, allocations: 4 kB / 456.8 MB, free: 2.863 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001571/0.1002, allocations: 12.05 kB / 456.8 MB, free: 2.852 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.316e-05/0.1003, allocations: 15.98 kB / 456.8 MB, free: 2.836 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.385e-05/0.1003, allocations: 4 kB / 456.8 MB, free: 2.832 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001718/0.1005, allocations: 202 kB / 457 MB, free: 2.637 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.144e-06/0.1005, allocations: 0 / 457 MB, free: 2.637 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004087/0.1009, allocations: 119.9 kB / 457.1 MB, free: 2.52 MB / 334.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.0002978/0.1012, allocations: 187 kB / 457.3 MB, free: 2.328 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004281/0.1017, allocations: 183.8 kB / 457.5 MB, free: 2.148 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.1017, allocations: 0 / 457.5 MB, free: 2.148 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001647/0.1018, allocations: 87.89 kB / 457.6 MB, free: 2.062 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004281/0.1023, allocations: 79.81 kB / 457.7 MB, free: 1.984 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00105/0.1033, allocations: 0.6424 MB / 458.3 MB, free: 1.312 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003048/0.1037, allocations: 0.7636 MB / 459.1 MB, free: 0.5195 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.226e-05/0.1038, allocations: 27.42 kB / 459.1 MB, free: 0.4922 MB / 334.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1038, allocations: 4 kB / 459.1 MB, free: 500 kB / 334.1 MB Notification: Performance of Templates: time 0.00631/0.1101, allocations: 4.614 MB / 463.7 MB, free: 11.89 MB / 350.1 MB make -j1 -f OpenHydraulics_OpenHydraulics.DevelopmentTests.GenericRestrictionTest.makefile (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 & ./OpenHydraulics_OpenHydraulics.DevelopmentTests.GenericRestrictionTest -abortSlowSimulation -alarm=480 -lv LOG_STATS > OpenHydraulics_OpenHydraulics.DevelopmentTests.GenericRestrictionTest.pipe 2>&1)