Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenHydraulics_OpenHydraulics.DevelopmentTests.DirectionalValveTestSimple.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.DirectionalValveTestSimple,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenHydraulics_OpenHydraulics.DevelopmentTests.DirectionalValveTestSimple") translateModel(OpenHydraulics.DevelopmentTests.DirectionalValveTestSimple,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenHydraulics_OpenHydraulics.DevelopmentTests.DirectionalValveTestSimple") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001883/0.001883, allocations: 114.4 kB / 16.47 MB, free: 6.512 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.002056/0.002056, allocations: 190.5 kB / 17.4 MB, free: 5.668 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.479/1.479, allocations: 207.6 MB / 225.8 MB, free: 11.54 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenHydraulics 1.0.0-master/package.mo): time 0.06053/0.06053, allocations: 12.01 MB / 287.6 MB, free: 13.18 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.002182/0.002182, allocations: 75.05 kB / 403.5 MB, free: 43.34 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08502/0.0872, allocations: 51.91 MB / 455.4 MB, free: 8.93 MB / 334.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Mechanics/Translational.mo:2342:7-2342:69:writable] Warning: Parameter slidingMass.m has no value, and is fixed during initialization (fixed=true), using available start value (start=1) as default value. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Blocks/Sources.mo:517:5-517:73:writable] Warning: Parameter sine.freqHz has no value, and is fixed during initialization (fixed=true), using available start value (start=1) as default value. Notification: Performance of NFInst.instantiate(OpenHydraulics.DevelopmentTests.DirectionalValveTestSimple): time 0.01238/0.09959, allocations: 9.438 MB / 464.8 MB, free: 15.44 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.009156/0.1087, allocations: 4.572 MB / 469.4 MB, free: 10.86 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001909/0.1107, allocations: 31.88 kB / 469.5 MB, free: 10.83 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001601/0.1123, allocations: 0.6057 MB / 470.1 MB, free: 10.22 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.003552/0.1158, allocations: 1.153 MB / 471.2 MB, free: 9.059 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003838/0.1196, allocations: 1.461 MB / 472.7 MB, free: 7.609 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005343/0.125, allocations: 3.34 MB / 476 MB, free: 4.258 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00111/0.1261, allocations: 0.5493 MB / 476.6 MB, free: 3.672 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002234/0.1283, allocations: 1.16 MB / 477.7 MB, free: 2.508 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002243/0.1306, allocations: 1.319 MB / 479 MB, free: 1.184 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005071/0.1311, allocations: 248 kB / 479.3 MB, free: 0.9414 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001238/0.1323, allocations: 459.8 kB / 479.7 MB, free: 0.4922 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007313/0.133, allocations: 0.6461 MB / 480.4 MB, free: 15.84 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001878/0.1349, allocations: 1.341 MB / 481.7 MB, free: 14.5 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004983/0.1399, allocations: 3.507 MB / 485.2 MB, free: 10.98 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.402e-06/0.1399, allocations: 0 / 485.2 MB, free: 10.98 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.1399, allocations: 0 / 485.2 MB, free: 10.98 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001075/0.14, allocations: 0 / 485.2 MB, free: 10.98 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 397 * Number of variables: 397 Notification: Performance of Generate backend data structure: time 0.005916/0.1459, allocations: 2.964 MB / 488.2 MB, free: 7.898 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.205e-05/0.146, allocations: 11.89 kB / 488.2 MB, free: 7.887 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005662/0.1466, allocations: 283.2 kB / 488.5 MB, free: 7.609 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002676/0.1492, allocations: 1.549 MB / 490 MB, free: 6.012 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000267/0.1495, allocations: 233.9 kB / 490.3 MB, free: 5.758 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002773/0.1498, allocations: 163.9 kB / 490.4 MB, free: 5.598 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003222/0.153, allocations: 1.63 MB / 492 MB, free: 3.949 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.039e-05/0.153, allocations: 0 / 492 MB, free: 3.949 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001716/0.1532, allocations: 64 kB / 492.1 MB, free: 3.887 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.525e-05/0.1532, allocations: 39.98 kB / 492.1 MB, free: 3.848 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003284/0.1565, allocations: 1.664 MB / 493.8 MB, free: 2.18 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01418/0.1707, allocations: 9.051 MB / 0.4911 GB, free: 8.258 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003213/0.1739, allocations: 1.718 MB / 0.4928 GB, free: 6.48 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001542/0.1755, allocations: 0.7158 MB / 0.4935 GB, free: 5.766 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002091/0.1757, allocations: 122.4 kB / 0.4936 GB, free: 5.625 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001684/0.1774, allocations: 0.8365 MB / 0.4944 GB, free: 4.762 MB / 382.1 MB Notification: Performance of pre-optimization done (n=165): time 6.602e-06/0.1774, allocations: 4 kB / 0.4944 GB, free: 4.758 MB / 382.1 MB Notification: Performance of matching and sorting (n=187): time 0.01627/0.1936, allocations: 6.814 MB / 0.501 GB, free: 13.68 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001655/0.1938, allocations: 283 kB / 0.5013 GB, free: 13.34 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003676/0.1975, allocations: 2.054 MB / 0.5033 GB, free: 11.25 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001758/0.1977, allocations: 57.7 kB / 0.5034 GB, free: 11.18 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000962/0.1986, allocations: 0.8893 MB / 0.5042 GB, free: 10.29 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007432/0.1994, allocations: 0.6545 MB / 0.5049 GB, free: 9.625 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000622/0.2, allocations: 315.5 kB / 0.5052 GB, free: 9.309 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001516/0.2001, allocations: 309.1 kB / 0.5055 GB, free: 9.004 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001404/0.2015, allocations: 0.5935 MB / 0.5061 GB, free: 8.41 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001647/0.2032, allocations: 0.8696 MB / 0.5069 GB, free: 7.457 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01331/0.2165, allocations: 4.377 MB / 0.5112 GB, free: 2.801 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.243e-05/0.2165, allocations: 0 / 0.5112 GB, free: 2.801 MB / 398.1 MB Notification: Performance of matching and sorting (n=228) (initialization): time 0.004658/0.2212, allocations: 2.126 MB / 0.5133 GB, free: 0.6172 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001719/0.2213, allocations: 225.6 kB / 0.5135 GB, free: 356 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.866e-05/0.2214, allocations: 4.828 kB / 0.5135 GB, free: 352 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.543e-05/0.2214, allocations: 19.94 kB / 0.5135 GB, free: 332 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001844/0.2232, allocations: 415.4 kB / 0.5139 GB, free: 15.92 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.417e-05/0.2233, allocations: 27.91 kB / 0.5139 GB, free: 15.89 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00128/0.2246, allocations: 75.81 kB / 0.514 GB, free: 15.82 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001688/0.2247, allocations: 71.97 kB / 0.5141 GB, free: 15.75 MB / 414.1 MB Warning: Assuming fixed start value for the following 6 variables: reliefValve.valvePosition:VARIABLE(start = 0.0 fixed = true ) "Normalized valve position (between 0 and 1)" type: Real doubleActingCylinder.cushionHead.reliefValve.valvePosition:VARIABLE(start = 0.0 fixed = true ) "Normalized valve position (between 0 and 1)" type: Real doubleActingCylinder.cushionRod.reliefValve.valvePosition:VARIABLE(start = 0.0 fixed = true ) "Normalized valve position (between 0 and 1)" type: Real j1.volumeClosed.port[2].p:VARIABLE(flow=false min = 0.0 start = j1.p_init unit = "Pa" fixed = true nominal = 1e5 stateSelect=StateSelect.prefer ) "Pressure in the connection point" type: Real [3] doubleActingCylinder.cushionRod.flowFraction:VARIABLE(fixed = true protected = true ) "fraction of flow allowed by cushion" type: Real doubleActingCylinder.cushionHead.flowFraction:VARIABLE(fixed = true protected = true ) "fraction of flow allowed by cushion" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 26 * Number of states: 0 () * Number of discrete variables: 12 (throttleValve.data.zetaLaminarKnown,doubleActingCylinder.cushionRod.reliefValve.variableRestriction.data.zetaLaminarKnown,doubleActingCylinder.cushionRod.cushionRestriction.data.zetaLaminarKnown,doubleActingCylinder.cushionHead.reliefValve.variableRestriction.data.zetaLaminarKnown,doubleActingCylinder.cushionHead.cushionRestriction.data.zetaLaminarKnown,reliefValve.variableRestriction.data.zetaLaminarKnown,doubleActingCylinder.cylinderChamberRod.empty,doubleActingCylinder.cylinderChamberHead.empty,$whenCondition4,$whenCondition3,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (228): * Single equations (assignments): 220 * Array equations: 0 * Algorithm blocks: 8 * 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.001428/0.2262, allocations: 0.8115 MB / 0.5149 GB, free: 14.88 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005715/0.2267, allocations: 234.5 kB / 0.5151 GB, free: 14.65 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004721/0.2314, allocations: 2.265 MB / 0.5173 GB, free: 12.32 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.557e-05/0.2315, allocations: 7.969 kB / 0.5173 GB, free: 12.31 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.979e-06/0.2315, allocations: 0 / 0.5173 GB, free: 12.31 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001127/0.2326, allocations: 0.5032 MB / 0.5178 GB, free: 11.79 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003855/0.233, allocations: 40 kB / 0.5178 GB, free: 11.75 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001023/0.234, allocations: 67.95 kB / 0.5179 GB, free: 11.68 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002855/0.2343, allocations: 137.7 kB / 0.518 GB, free: 11.55 MB / 414.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.005184/0.2395, allocations: 2.597 MB / 0.5206 GB, free: 8.793 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0058/0.2453, allocations: 3.19 MB / 0.5237 GB, free: 5.539 MB / 414.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001547/0.2468, allocations: 0.7769 MB / 0.5244 GB, free: 4.762 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002609/0.2494, allocations: 1.424 MB / 0.5258 GB, free: 3.316 MB / 414.1 MB Notification: Performance of Backend: time 5.31e-07/0.2494, allocations: 0 / 0.5258 GB, free: 3.316 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.005689/0.2551, allocations: 1.933 MB / 0.5277 GB, free: 1.387 MB / 414.1 MB Notification: Invalid unit expression 'N/ (m/s)'. Notification: Performance of SimCode: time 0.1858/0.4409, allocations: 5.267 MB / 0.5329 GB, free: 78.4 MB / 414.1 MB Notification: Performance of Templates: time 0.05716/0.4981, allocations: 37.3 MB / 0.5693 GB, free: 53.81 MB / 414.1 MB make -j1 -f OpenHydraulics_OpenHydraulics.DevelopmentTests.DirectionalValveTestSimple.makefile (rm -f OpenHydraulics_OpenHydraulics.DevelopmentTests.DirectionalValveTestSimple.pipe ; mkfifo OpenHydraulics_OpenHydraulics.DevelopmentTests.DirectionalValveTestSimple.pipe ; head -c 1048576 < OpenHydraulics_OpenHydraulics.DevelopmentTests.DirectionalValveTestSimple.pipe >> ../files/OpenHydraulics_OpenHydraulics.DevelopmentTests.DirectionalValveTestSimple.sim & ./OpenHydraulics_OpenHydraulics.DevelopmentTests.DirectionalValveTestSimple -abortSlowSimulation -alarm=480 -lv LOG_STATS > OpenHydraulics_OpenHydraulics.DevelopmentTests.DirectionalValveTestSimple.pipe 2>&1)