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.001447/0.001447, allocations: 109.9 kB / 16.41 MB, free: 6.492 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.001367/0.001367, allocations: 185.5 kB / 17.34 MB, free: 5.766 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.317/1.317, allocations: 205.1 MB / 223.2 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenHydraulics 1.0.0-master/package.mo): time 0.05615/0.05615, allocations: 11.84 MB / 282.4 MB, free: 236 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.001478/0.001478, allocations: 72.97 kB / 393 MB, free: 45.25 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0798/0.08129, allocations: 49.23 MB / 442.2 MB, free: 2.078 MB / 318.1 MB Notification: Performance of NFInst.instantiate(OpenHydraulics.DevelopmentTests.GenericRestrictionTest): time 0.003253/0.08458, allocations: 2.897 MB / 445.1 MB, free: 15.16 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002615/0.08722, allocations: 2.002 MB / 447.1 MB, free: 13.14 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001312/0.08736, allocations: 0 / 447.1 MB, free: 13.14 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000243/0.08763, allocations: 63.48 kB / 447.2 MB, free: 13.08 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003606/0.088, allocations: 150.9 kB / 447.3 MB, free: 12.93 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007199/0.08873, allocations: 377.9 kB / 447.7 MB, free: 12.57 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000382/0.08912, allocations: 382.1 kB / 448.1 MB, free: 12.19 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001837/0.08931, allocations: 101.5 kB / 448.2 MB, free: 12.09 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001586/0.08948, allocations: 123.6 kB / 448.3 MB, free: 11.97 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002032/0.08969, allocations: 151.3 kB / 448.5 MB, free: 11.82 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.798e-05/0.08974, allocations: 24 kB / 448.5 MB, free: 11.8 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003852/0.09013, allocations: 247.8 kB / 448.7 MB, free: 11.55 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.114e-05/0.0902, allocations: 67.69 kB / 448.8 MB, free: 11.49 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001365/0.09034, allocations: 155.3 kB / 448.9 MB, free: 11.34 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005233/0.09087, allocations: 454.7 kB / 449.4 MB, free: 10.89 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.09088, allocations: 0 / 449.4 MB, free: 10.89 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.09089, allocations: 0 / 449.4 MB, free: 10.89 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.222e-06/0.0909, 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.0008317/0.09174, allocations: 0.5886 MB / 450 MB, free: 10.25 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.342e-05/0.09178, allocations: 11.89 kB / 450 MB, free: 10.24 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001197/0.0919, allocations: 36.55 kB / 450 MB, free: 10.21 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000292/0.0922, allocations: 267.8 kB / 450.3 MB, free: 9.906 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.532e-05/0.09222, allocations: 16.94 kB / 450.3 MB, free: 9.891 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.699e-05/0.09228, allocations: 32.06 kB / 450.3 MB, free: 9.859 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006164/0.0929, allocations: 267.7 kB / 450.6 MB, free: 9.586 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.969e-05/0.09293, allocations: 0 / 450.6 MB, free: 9.586 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.342e-05/0.09297, allocations: 8 kB / 450.6 MB, free: 9.578 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.249e-05/0.09299, allocations: 8 kB / 450.6 MB, free: 9.57 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004569/0.09346, allocations: 222.1 kB / 450.8 MB, free: 9.352 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.00181/0.09528, allocations: 1.44 MB / 452.3 MB, free: 7.73 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000268/0.09556, allocations: 154.7 kB / 452.4 MB, free: 7.57 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001324/0.0957, allocations: 72.83 kB / 452.5 MB, free: 7.496 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001766/0.09589, allocations: 170.2 kB / 452.6 MB, free: 7.293 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.25e-05/0.09593, allocations: 34.56 kB / 452.7 MB, free: 7.25 MB / 334.1 MB Notification: Performance of pre-optimization done (n=18): time 1.262e-06/0.09593, allocations: 0 / 452.7 MB, free: 7.25 MB / 334.1 MB Notification: Performance of matching and sorting (n=21): time 0.001755/0.09769, allocations: 0.7351 MB / 453.4 MB, free: 6.465 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.403e-05/0.09774, allocations: 55.41 kB / 453.5 MB, free: 6.398 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002513/0.098, allocations: 270.7 kB / 453.7 MB, free: 6.125 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.94e-05/0.09803, allocations: 25.7 kB / 453.8 MB, free: 6.094 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001023/0.09814, allocations: 160.2 kB / 453.9 MB, free: 5.934 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.874e-05/0.09821, allocations: 74.91 kB / 454 MB, free: 5.859 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.715e-05/0.09829, allocations: 53.92 kB / 454 MB, free: 5.801 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001118/0.09841, allocations: 334.8 kB / 454.4 MB, free: 5.465 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001805/0.0986, allocations: 89.66 kB / 454.5 MB, free: 5.375 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000185/0.09879, allocations: 122.9 kB / 454.6 MB, free: 5.234 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003426/0.09914, allocations: 209.1 kB / 454.8 MB, free: 5.012 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.202e-06/0.09915, allocations: 0 / 454.8 MB, free: 5.012 MB / 334.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.000466/0.09962, allocations: 269.1 kB / 455 MB, free: 4.742 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.422e-05/0.09964, allocations: 4 kB / 455 MB, free: 4.738 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.033e-06/0.09966, allocations: 4 kB / 455.1 MB, free: 4.734 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.464e-05/0.09967, allocations: 4 kB / 455.1 MB, free: 4.73 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002713/0.09995, allocations: 75.88 kB / 455.1 MB, free: 4.656 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.622e-06/0.09997, allocations: 0 / 455.1 MB, free: 4.656 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001377/0.1001, allocations: 16 kB / 455.1 MB, free: 4.641 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.031e-05/0.1001, allocations: 11.98 kB / 455.2 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.0001734/0.1003, allocations: 153.8 kB / 455.3 MB, free: 4.469 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.584e-05/0.1004, allocations: 23.72 kB / 455.3 MB, free: 4.445 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004916/0.1009, allocations: 235.6 kB / 455.6 MB, free: 4.203 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.258e-06/0.1009, allocations: 7.938 kB / 455.6 MB, free: 4.195 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.308e-06/0.1009, allocations: 0 / 455.6 MB, free: 4.195 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.338e-06/0.1009, allocations: 4 kB / 455.6 MB, free: 4.191 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008877/0.1018, allocations: 0.6323 MB / 456.2 MB, free: 3.496 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.903e-06/0.1018, allocations: 0 / 456.2 MB, free: 3.496 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002573/0.1021, allocations: 55.97 kB / 456.3 MB, free: 3.441 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.749e-06/0.1021, allocations: 0 / 456.3 MB, free: 3.441 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.926e-05/0.1021, allocations: 15.92 kB / 456.3 MB, free: 3.426 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.994e-06/0.1021, allocations: 4.031 kB / 456.3 MB, free: 3.422 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.1021, allocations: 0 / 456.3 MB, free: 3.422 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006109/0.1027, allocations: 400.5 kB / 456.7 MB, free: 3.012 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.987e-05/0.1029, allocations: 116.8 kB / 456.8 MB, free: 2.879 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.458e-05/0.1029, allocations: 8 kB / 456.8 MB, free: 2.871 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001609/0.1031, allocations: 12.05 kB / 456.8 MB, free: 2.859 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.115e-05/0.1031, allocations: 15.98 kB / 456.8 MB, free: 2.844 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.336e-05/0.1032, allocations: 4 kB / 456.8 MB, free: 2.84 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001716/0.1033, allocations: 198 kB / 457 MB, free: 2.648 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1033, allocations: 0 / 457 MB, free: 2.648 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004108/0.1038, allocations: 115.9 kB / 457.1 MB, free: 2.535 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.0003069/0.1041, allocations: 195 kB / 457.3 MB, free: 2.336 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004099/0.1045, allocations: 183.8 kB / 457.5 MB, free: 2.156 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.325e-06/0.1045, allocations: 0 / 457.5 MB, free: 2.156 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001612/0.1047, allocations: 87.91 kB / 457.6 MB, free: 2.07 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004541/0.1051, allocations: 78.69 kB / 457.7 MB, free: 1.992 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001035/0.1062, allocations: 0.6416 MB / 458.3 MB, free: 1.32 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003042/0.1065, allocations: 0.7558 MB / 459.1 MB, free: 0.5352 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.313e-05/0.1066, allocations: 31.42 kB / 459.1 MB, free: 0.5039 MB / 334.1 MB Notification: Performance of SimCode: time 2.11e-07/0.1066, allocations: 0 / 459.1 MB, free: 0.5039 MB / 334.1 MB Notification: Performance of Templates: time 0.006281/0.1129, allocations: 4.586 MB / 463.7 MB, free: 11.93 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)