Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenHydraulics_OpenHydraulics.DevelopmentTests.DirectionalValveTest.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.DirectionalValveTest,fileNamePrefix="OpenHydraulics_OpenHydraulics_DevelopmentTests_DirectionalValveTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenHydraulics.DevelopmentTests.DirectionalValveTest,fileNamePrefix="OpenHydraulics_OpenHydraulics_DevelopmentTests_DirectionalValveTest",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.001101/0.001101, 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.001136/0.001136, allocations: 199.3 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.13/1.13, allocations: 205.1 MB / 222 MB, free: 4.75 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenHydraulics 1.0.0-master/package.mo): time 0.04931/0.04931, allocations: 11.84 MB / 281.2 MB, free: 9.648 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.001294/0.001294, allocations: 67.34 kB / 341.2 MB, free: 22.32 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06377/0.06508, allocations: 49.22 MB / 390.5 MB, free: 5.051 MB / 286.1 MB Notification: Performance of NFInst.instantiate(OpenHydraulics.DevelopmentTests.DirectionalValveTest): time 0.007251/0.07236, allocations: 7.863 MB / 398.3 MB, free: 13.14 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004035/0.07641, allocations: 3.534 MB / 401.9 MB, free: 9.602 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003104/0.07673, allocations: 15.94 kB / 401.9 MB, free: 9.586 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004843/0.07723, allocations: 238.8 kB / 402.1 MB, free: 9.352 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008176/0.07805, allocations: 0.536 MB / 402.6 MB, free: 8.812 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001154/0.07922, allocations: 0.7165 MB / 403.4 MB, free: 8.102 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001322/0.08055, allocations: 1.833 MB / 405.2 MB, free: 6.262 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000524/0.08109, allocations: 0.4916 MB / 405.7 MB, free: 5.75 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004683/0.08156, allocations: 0.5445 MB / 406.2 MB, free: 5.203 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006009/0.08217, allocations: 0.7039 MB / 406.9 MB, free: 4.496 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000117/0.0823, allocations: 64 kB / 407 MB, free: 4.434 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005276/0.08283, allocations: 331.7 kB / 407.3 MB, free: 4.109 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002243/0.08306, allocations: 278.8 kB / 407.6 MB, free: 3.836 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005166/0.08359, allocations: 0.6604 MB / 408.3 MB, free: 3.172 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001457/0.08505, allocations: 1.9 MB / 410.2 MB, free: 1.266 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.086e-06/0.08506, allocations: 0 / 410.2 MB, free: 1.266 MB / 302.1 MB Notification: Performance of FrontEnd: time 7.01e-07/0.08507, allocations: 0 / 410.2 MB, free: 1.266 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.108e-05/0.08509, allocations: 3.938 kB / 410.2 MB, free: 1.262 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: 241 * Number of variables: 241 Notification: Performance of Generate backend data structure: time 0.00245/0.08754, allocations: 1.608 MB / 411.8 MB, free: 15.6 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.784e-05/0.08759, allocations: 12.03 kB / 411.8 MB, free: 15.59 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001826/0.08778, allocations: 152.2 kB / 411.9 MB, free: 15.43 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002542/0.08804, allocations: 151.2 kB / 412.1 MB, free: 15.28 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009153/0.08896, allocations: 0.8266 MB / 412.9 MB, free: 14.41 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.484e-05/0.08903, allocations: 74 kB / 413 MB, free: 14.34 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001263/0.08916, allocations: 96 kB / 413.1 MB, free: 14.25 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001623/0.09079, allocations: 1.114 MB / 414.2 MB, free: 13.12 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.935e-05/0.09082, allocations: 3.938 kB / 414.2 MB, free: 13.11 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.643e-05/0.0909, allocations: 36 kB / 414.2 MB, free: 13.08 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.464e-05/0.09092, allocations: 24 kB / 414.2 MB, free: 13.05 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001577/0.0925, allocations: 1.019 MB / 415.3 MB, free: 12.04 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005494/0.09801, allocations: 6.007 MB / 421.3 MB, free: 5.316 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00108/0.0991, allocations: 0.7382 MB / 422 MB, free: 4.57 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000604/0.09971, allocations: 390.6 kB / 422.4 MB, free: 4.188 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002166/0.09994, allocations: 198.8 kB / 422.6 MB, free: 3.957 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.399e-05/0.09997, allocations: 39.22 kB / 422.6 MB, free: 3.91 MB / 318.1 MB Notification: Performance of pre-optimization done (n=72): time 1.774e-06/0.09998, allocations: 0 / 422.6 MB, free: 3.91 MB / 318.1 MB Notification: Performance of matching and sorting (n=76): time 0.004155/0.1041, allocations: 2.269 MB / 424.9 MB, free: 1.59 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.398e-05/0.1042, allocations: 60.06 kB / 424.9 MB, free: 1.516 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001102/0.1053, allocations: 1.066 MB / 426 MB, free: 440 kB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.529e-05/0.1053, allocations: 33.7 kB / 426 MB, free: 400 kB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.1167/0.2221, allocations: 0.5337 MB / 426.6 MB, free: 40.98 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002459/0.2224, allocations: 270.2 kB / 426.8 MB, free: 40.94 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002331/0.2226, allocations: 168.4 kB / 427 MB, free: 40.92 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.124e-05/0.2227, allocations: 336.6 kB / 427.3 MB, free: 40.61 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000537/0.2232, allocations: 349.1 kB / 427.7 MB, free: 40.6 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005706/0.2238, allocations: 0.4964 MB / 428.2 MB, free: 40.39 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005199/0.229, allocations: 1.802 MB / 430 MB, free: 39.89 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.659e-06/0.229, allocations: 2.219 kB / 430 MB, free: 39.89 MB / 318.1 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.001544/0.2306, allocations: 1.012 MB / 431 MB, free: 39.45 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.702e-05/0.2306, allocations: 7.125 kB / 431 MB, free: 39.45 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.055e-05/0.2306, allocations: 9.5 kB / 431 MB, free: 39.45 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.887e-05/0.2306, allocations: 9.906 kB / 431 MB, free: 39.45 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008158/0.2315, allocations: 225.4 kB / 431.2 MB, free: 39.43 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.52e-05/0.2315, allocations: 16.86 kB / 431.3 MB, free: 39.43 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005741/0.2321, allocations: 54.3 kB / 431.3 MB, free: 39.42 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.815e-05/0.2321, allocations: 46.09 kB / 431.4 MB, free: 39.41 MB / 318.1 MB Warning: Assuming fixed start value for the following 3 variables: idealPump.phi:VARIABLE(unit = "rad" fixed = true ) "Angle of rotation of pump" type: Real valve4_3pos.j2.volumeClosed.port[2].p:VARIABLE(flow=false min = max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, 0.0)))))))))))))))) start = valve4_3pos.P2A.p_init unit = "Pa" fixed = true nominal = 100000.0 stateSelect=StateSelect.prefer ) "Pressure in the connection point" type: Real [3] valve4_3pos.j3.volumeClosed.port[2].p:VARIABLE(flow=false min = max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, 0.0)))))))))))))))) start = valve4_3pos.P2B.p_init unit = "Pa" fixed = true nominal = 100000.0 stateSelect=StateSelect.prefer ) "Pressure in the connection point" type: Real [3] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * Number of states: 0 () * Number of discrete variables: 5 (valve4_3pos.A2T.data.zetaLaminarKnown,valve4_3pos.P2B.data.zetaLaminarKnown,valve4_3pos.B2T.data.zetaLaminarKnown,valve4_3pos.P2A.data.zetaLaminarKnown,restriction.data.zetaLaminarKnown) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (108): * Single equations (assignments): 108 * 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.0005251/0.2327, allocations: 432.8 kB / 431.8 MB, free: 39.16 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001406/0.2328, allocations: 110.4 kB / 431.9 MB, free: 39.1 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001493/0.2343, allocations: 0.9513 MB / 432.8 MB, free: 38.7 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.907e-06/0.2343, allocations: 12.94 kB / 432.8 MB, free: 38.69 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.689e-06/0.2343, allocations: 7.656 kB / 432.9 MB, free: 38.69 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.178e-06/0.2344, allocations: 5.391 kB / 432.9 MB, free: 38.69 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002802/0.2372, allocations: 2.312 MB / 435.2 MB, free: 37.45 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.887e-06/0.2372, allocations: 1.312 kB / 435.2 MB, free: 37.45 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007431/0.2379, allocations: 190.2 kB / 435.4 MB, free: 37.43 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.982e-06/0.2379, allocations: 4.594 kB / 435.4 MB, free: 37.43 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.36e-05/0.238, allocations: 26.92 kB / 435.4 MB, free: 37.42 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.73e-06/0.238, allocations: 5.422 kB / 435.4 MB, free: 37.42 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.395e-06/0.238, allocations: 2.219 kB / 435.4 MB, free: 37.42 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001777/0.2398, allocations: 1.377 MB / 436.8 MB, free: 36.7 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003099/0.2401, allocations: 266.8 kB / 437 MB, free: 36.5 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001326/0.2403, allocations: 19.8 kB / 437.1 MB, free: 36.49 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004524/0.2407, allocations: 39.52 kB / 437.1 MB, free: 36.48 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001179/0.2408, allocations: 63.02 kB / 437.2 MB, free: 36.46 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.776e-05/0.2409, allocations: 28.8 kB / 437.2 MB, free: 36.46 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0007802/0.2417, allocations: 0.7372 MB / 437.9 MB, free: 36.15 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2417, allocations: 0 / 437.9 MB, free: 36.15 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0007358/0.2424, allocations: 314.7 kB / 438.2 MB, free: 36.11 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 6 (idealPump.phi,circuitTank.volumeOpen.m,valve4_3pos.j2.volumeClosed.port[2].p,valve4_3pos.j3.volumeClosed.port[2].p,valve4_3pos.dynamicResponse.y,valve4_3pos.dynamicResponse.yd) * 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 (86): * Single equations (assignments): 86 * 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.00267/0.2451, allocations: 2.279 MB / 440.5 MB, free: 34.79 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001122/0.2462, allocations: 0.7856 MB / 441.3 MB, free: 34.49 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.2463, allocations: 5.25 kB / 441.3 MB, free: 34.49 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004877/0.2468, allocations: 397.7 kB / 441.7 MB, free: 34.36 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001174/0.2479, allocations: 338.5 kB / 442 MB, free: 34.23 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01096/0.2589, allocations: 10.25 MB / 452.3 MB, free: 26.94 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003988/0.2593, allocations: 1.159 MB / 453.4 MB, free: 25.76 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0006357/0.26, allocations: 216.1 kB / 453.6 MB, free: 25.54 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004781/0.2604, allocations: 471.2 kB / 454.1 MB, free: 25.08 MB / 318.1 MB Notification: Performance of SimCode: time 4e-07/0.2605, allocations: 1.531 kB / 454.1 MB, free: 25.08 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02999/0.2905, allocations: 27.46 MB / 481.6 MB, free: 13.56 MB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001584/0.2906, allocations: 243.5 kB / 481.8 MB, free: 13.31 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.205/2.496, allocations: 4 kB / 481.8 MB, free: 13.3 MB / 334.1 MB (rm -f OpenHydraulics_OpenHydraulics.DevelopmentTests.DirectionalValveTest.pipe ; mkfifo OpenHydraulics_OpenHydraulics.DevelopmentTests.DirectionalValveTest.pipe ; head -c 1048576 < OpenHydraulics_OpenHydraulics.DevelopmentTests.DirectionalValveTest.pipe >> ../files/OpenHydraulics_OpenHydraulics.DevelopmentTests.DirectionalValveTest.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_OpenHydraulics_OpenHydraulics_DevelopmentTests_DirectionalValveTest_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-08 OpenHydraulics_OpenHydraulics_DevelopmentTests_DirectionalValveTest.fmu > OpenHydraulics_OpenHydraulics.DevelopmentTests.DirectionalValveTest.pipe 2>&1)