Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenHydraulics_OpenHydraulics.DevelopmentTests.ReliefValveTest.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.ReliefValveTest,fileNamePrefix="OpenHydraulics_OpenHydraulics_DevelopmentTests_ReliefValveTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenHydraulics.DevelopmentTests.ReliefValveTest,fileNamePrefix="OpenHydraulics_OpenHydraulics_DevelopmentTests_ReliefValveTest",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.005838/0.005839, allocations: 99.64 kB / 15.73 MB, free: 5.547 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.001187/0.001187, allocations: 193.6 kB / 16.67 MB, free: 5.492 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.362/1.362, allocations: 205.1 MB / 222.5 MB, free: 4.383 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenHydraulics 1.0.0-master/package.mo): time 0.05524/0.05524, allocations: 11.85 MB / 281.8 MB, free: 9.199 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.001699/0.001699, allocations: 71.89 kB / 391.8 MB, free: 3.973 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2712/0.273, allocations: 49.23 MB / 441.1 MB, free: 4.137 MB / 318.1 MB Notification: Performance of NFInst.instantiate(OpenHydraulics.DevelopmentTests.ReliefValveTest): time 0.005363/0.2784, allocations: 4.401 MB / 445.5 MB, free: 1.035 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00458/0.283, allocations: 2.703 MB / 448.2 MB, free: 15.11 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000774/0.2838, allocations: 11.72 kB / 448.2 MB, free: 15.11 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007454/0.2846, allocations: 154.4 kB / 448.3 MB, free: 15.02 MB / 334.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.00143/0.2861, allocations: 334.4 kB / 448.7 MB, free: 14.8 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002067/0.2881, allocations: 0.569 MB / 449.2 MB, free: 14.48 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001772/0.2899, allocations: 1.101 MB / 450.3 MB, free: 13.8 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006093/0.2905, allocations: 331.6 kB / 450.7 MB, free: 13.62 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009453/0.2915, allocations: 401.3 kB / 451 MB, free: 13.39 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009723/0.2925, allocations: 450.5 kB / 451.5 MB, free: 13.1 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002452/0.2927, allocations: 85.25 kB / 451.6 MB, free: 13.1 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009825/0.2937, allocations: 304.2 kB / 451.9 MB, free: 13 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002955/0.294, allocations: 197.4 kB / 452.1 MB, free: 12.84 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007917/0.2948, allocations: 444.9 kB / 452.5 MB, free: 12.54 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00184/0.2967, allocations: 1.176 MB / 453.7 MB, free: 11.71 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.887e-06/0.2967, allocations: 0 / 453.7 MB, free: 11.71 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.2967, allocations: 1.156 kB / 453.7 MB, free: 11.71 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.306e-05/0.2968, allocations: 0 / 453.7 MB, free: 11.71 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: 144 * Number of variables: 144 Notification: Performance of Generate backend data structure: time 0.002481/0.2993, allocations: 1.087 MB / 454.8 MB, free: 10.82 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.888e-05/0.2993, allocations: 14.3 kB / 454.8 MB, free: 10.82 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001415/0.2995, allocations: 102.3 kB / 454.9 MB, free: 10.73 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002647/0.2997, allocations: 82.25 kB / 455 MB, free: 10.69 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008385/0.3006, allocations: 0.5093 MB / 455.5 MB, free: 10.23 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.547e-05/0.3006, allocations: 46.06 kB / 455.5 MB, free: 10.21 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001001/0.3008, allocations: 53 kB / 455.6 MB, free: 10.2 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001192/0.302, allocations: 0.6873 MB / 456.2 MB, free: 9.762 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.464e-05/0.302, allocations: 3.906 kB / 456.3 MB, free: 9.758 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.705e-05/0.3021, allocations: 25.69 kB / 456.3 MB, free: 9.738 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.622e-05/0.3021, allocations: 13.81 kB / 456.3 MB, free: 9.738 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001018/0.3031, allocations: 0.5469 MB / 456.8 MB, free: 9.453 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004451/0.3076, allocations: 3.374 MB / 460.2 MB, free: 6.27 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009391/0.3085, allocations: 0.5022 MB / 460.7 MB, free: 5.949 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003494/0.3089, allocations: 194.1 kB / 460.9 MB, free: 5.848 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001232/0.309, allocations: 89.5 kB / 461 MB, free: 5.75 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.944e-05/0.3091, allocations: 45.31 kB / 461 MB, free: 5.699 MB / 334.1 MB Notification: Performance of pre-optimization done (n=42): time 3.366e-06/0.3091, allocations: 0 / 461 MB, free: 5.699 MB / 334.1 MB Notification: Performance of matching and sorting (n=43): time 0.003358/0.3125, allocations: 1.461 MB / 462.5 MB, free: 4.664 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.17e-05/0.3125, allocations: 82.45 kB / 462.6 MB, free: 4.57 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007509/0.3133, allocations: 0.5719 MB / 463.1 MB, free: 4.234 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.525e-05/0.3133, allocations: 37.86 kB / 463.2 MB, free: 4.195 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000246/0.3136, allocations: 302.4 kB / 463.5 MB, free: 3.93 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001294/0.3137, allocations: 156 kB / 463.6 MB, free: 3.793 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001663/0.3139, allocations: 94.47 kB / 463.7 MB, free: 3.73 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001741/0.3141, allocations: 369.2 kB / 464.1 MB, free: 3.375 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000339/0.3144, allocations: 185.4 kB / 464.3 MB, free: 3.273 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004251/0.3149, allocations: 279.5 kB / 464.5 MB, free: 3.043 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002969/0.3178, allocations: 1.036 MB / 465.6 MB, free: 2.098 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.497e-06/0.3179, allocations: 0 / 465.6 MB, free: 2.098 MB / 334.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001144/0.319, allocations: 0.5839 MB / 466.2 MB, free: 1.496 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.277e-05/0.3191, allocations: 29.7 kB / 466.2 MB, free: 1.461 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.044e-05/0.3191, allocations: 4 kB / 466.2 MB, free: 1.457 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002098/0.3193, allocations: 96.81 kB / 466.3 MB, free: 1.359 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004328/0.3198, allocations: 107.8 kB / 466.4 MB, free: 1.254 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001985/0.3218, allocations: 1.779 MB / 468.2 MB, free: 15.34 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005747/0.3223, allocations: 43.89 kB / 468.2 MB, free: 15.29 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.064e-05/0.3224, allocations: 20 kB / 468.2 MB, free: 15.27 MB / 350.1 MB Warning: Assuming fixed start value for the following 3 variables: constantSpeed.phi:VARIABLE(unit = "rad" fixed = true ) "Angle of flange with respect to support (= flange.phi - support.phi)" type: Real reliefValve.variableRestriction.port_a.p:VARIABLE(flow=false min = 0.0 start = idealPump.fluidPower2MechRot.p_init unit = "Pa" fixed = true nominal = 1e5 stateSelect=StateSelect.prefer ) "Pressure in the connection point" type: Real reliefValve.valvePosition:VARIABLE(start = 0.0 fixed = true ) "Normalized valve position (between 0 and 1)" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 9 (reliefValve.variableRestriction.data.zetaLaminarKnown,idealPump.mechanicalPumpLosses.free,idealPump.mechanicalPumpLosses.mode,$PRE.idealPump.mechanicalPumpLosses.mode,idealPump.mechanicalPumpLosses.locked,idealPump.mechanicalPumpLosses.startBackward,$PRE.idealPump.mechanicalPumpLosses.startBackward,idealPump.mechanicalPumpLosses.startForward,$PRE.idealPump.mechanicalPumpLosses.startForward) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (57): * Single equations (assignments): 55 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.000528/0.3229, allocations: 266.5 kB / 468.5 MB, free: 15 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001789/0.3231, allocations: 63.25 kB / 468.6 MB, free: 14.94 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00114/0.3243, allocations: 0.5452 MB / 469.1 MB, free: 14.38 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.628e-06/0.3243, allocations: 11.94 kB / 469.1 MB, free: 14.36 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.695e-06/0.3243, allocations: 4 kB / 469.1 MB, free: 14.36 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.768e-06/0.3243, allocations: 7.984 kB / 469.1 MB, free: 14.35 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002299/0.3266, allocations: 1.285 MB / 470.4 MB, free: 12.99 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.198e-06/0.3266, allocations: 0 / 470.4 MB, free: 12.99 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004134/0.3271, allocations: 83.98 kB / 470.5 MB, free: 12.91 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001667/0.3272, allocations: 80.83 kB / 470.6 MB, free: 12.82 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.476e-05/0.3273, allocations: 15.98 kB / 470.6 MB, free: 12.81 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00158/0.3289, allocations: 1.586 MB / 472.2 MB, free: 11.09 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.278e-06/0.3289, allocations: 4.109 kB / 472.2 MB, free: 11.08 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001318/0.3302, allocations: 0.8231 MB / 473 MB, free: 10.23 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003739/0.3306, allocations: 188.4 kB / 473.2 MB, free: 10.02 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001415/0.3308, allocations: 16 kB / 473.2 MB, free: 10.01 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004161/0.3312, allocations: 39.89 kB / 473.2 MB, free: 9.969 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002628/0.3315, allocations: 123.8 kB / 473.4 MB, free: 9.848 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.974e-05/0.3315, allocations: 27.98 kB / 473.4 MB, free: 9.82 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005268/0.3321, allocations: 410.8 kB / 473.8 MB, free: 9.422 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3321, allocations: 7.938 kB / 473.8 MB, free: 9.414 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008167/0.3329, allocations: 195.9 kB / 474 MB, free: 9.223 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (reliefValve.variableRestriction.port_a.p,reliefValve.valvePosition,circuitTank.volumeOpen.m,constantSpeed.phi) * Number of discrete variables: 4 (idealPump.mechanicalPumpLosses.startForward,idealPump.mechanicalPumpLosses.startBackward,idealPump.mechanicalPumpLosses.locked,idealPump.mechanicalPumpLosses.mode) * Number of discrete states: 3 (idealPump.mechanicalPumpLosses.mode,idealPump.mechanicalPumpLosses.startBackward,idealPump.mechanicalPumpLosses.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.00256/0.3355, allocations: 1.689 MB / 475.7 MB, free: 7.555 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001145/0.3366, allocations: 0.5784 MB / 476.3 MB, free: 6.949 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 6.251e-06/0.3366, allocations: 4 kB / 476.3 MB, free: 6.945 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005505/0.3372, allocations: 390.6 kB / 476.6 MB, free: 6.539 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009666/0.3382, allocations: 182.2 kB / 476.8 MB, free: 6.355 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008569/0.3468, allocations: 5.547 MB / 482.4 MB, free: 0.6211 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005975/0.3474, allocations: 0.9337 MB / 483.3 MB, free: 15.66 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003915/0.3478, allocations: 85.03 kB / 483.4 MB, free: 15.57 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003489/0.3482, allocations: 227.3 kB / 483.6 MB, free: 15.35 MB / 366.1 MB Notification: Performance of SimCode: time 6.82e-07/0.3482, allocations: 0 / 483.6 MB, free: 15.35 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04917/0.3973, allocations: 18.27 MB / 0.4901 GB, free: 13.02 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.15/12.54, allocations: 12.72 kB / 0.4901 GB, free: 13.01 MB / 382.1 MB (rm -f OpenHydraulics_OpenHydraulics.DevelopmentTests.ReliefValveTest.pipe ; mkfifo OpenHydraulics_OpenHydraulics.DevelopmentTests.ReliefValveTest.pipe ; head -c 1048576 < OpenHydraulics_OpenHydraulics.DevelopmentTests.ReliefValveTest.pipe >> ../files/OpenHydraulics_OpenHydraulics.DevelopmentTests.ReliefValveTest.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_OpenHydraulics_OpenHydraulics_DevelopmentTests_ReliefValveTest_fmu --startTime=0 --stopTime=0.05 --timeout=50 --tolerance=1e-06 OpenHydraulics_OpenHydraulics_DevelopmentTests_ReliefValveTest.fmu > OpenHydraulics_OpenHydraulics.DevelopmentTests.ReliefValveTest.pipe 2>&1)