Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenHydraulics_OpenHydraulics.DevelopmentTests.ThrottleValveTest2.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.ThrottleValveTest2,fileNamePrefix="OpenHydraulics_OpenHydraulics_DevelopmentTests_ThrottleValveTest2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenHydraulics.DevelopmentTests.ThrottleValveTest2,fileNamePrefix="OpenHydraulics_OpenHydraulics_DevelopmentTests_ThrottleValveTest2",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.004718/0.004718, allocations: 97.62 kB / 15.73 MB, free: 6.047 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.001098/0.001098, allocations: 200.8 kB / 16.68 MB, free: 5.969 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.299/1.299, allocations: 205.1 MB / 222.6 MB, free: 4.527 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenHydraulics 1.0.0-master/package.mo): time 0.05822/0.05822, allocations: 11.85 MB / 281.8 MB, free: 9.359 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.001481/0.001481, allocations: 71.88 kB / 391.8 MB, free: 3.984 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2415/0.243, allocations: 49.23 MB / 441.1 MB, free: 4.16 MB / 318.1 MB [/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.ThrottleValveTest2): time 0.004044/0.2471, allocations: 2.809 MB / 443.9 MB, free: 2.18 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003227/0.2503, allocations: 2.289 MB / 446.2 MB, free: 0.5664 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001979/0.2506, allocations: 3 kB / 446.2 MB, free: 0.5664 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004433/0.251, allocations: 96.73 kB / 446.3 MB, free: 0.5195 MB / 318.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.0005432/0.2516, allocations: 183.2 kB / 446.4 MB, free: 412 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001035/0.2526, allocations: 445 kB / 446.9 MB, free: 196 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004013/0.253, allocations: 379.6 kB / 447.2 MB, free: 0 / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001897/0.2532, allocations: 69.45 kB / 447.3 MB, free: 15.96 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002091/0.2534, allocations: 137.2 kB / 447.5 MB, free: 15.89 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000241/0.2537, allocations: 151 kB / 447.6 MB, free: 15.82 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.367e-05/0.2537, allocations: 20.5 kB / 447.6 MB, free: 15.82 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005841/0.2543, allocations: 281.6 kB / 447.9 MB, free: 15.75 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001036/0.2544, allocations: 71.33 kB / 448 MB, free: 15.71 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001721/0.2546, allocations: 151 kB / 448.1 MB, free: 15.61 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008329/0.2555, allocations: 0.4977 MB / 448.6 MB, free: 15.38 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.2555, allocations: 0 / 448.6 MB, free: 15.38 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.542e-06/0.2555, allocations: 4 kB / 448.6 MB, free: 15.38 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.905e-06/0.2555, allocations: 1.062 kB / 448.6 MB, free: 15.38 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: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.0009823/0.2565, allocations: 0.6508 MB / 449.3 MB, free: 14.78 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.941e-05/0.2565, allocations: 13.58 kB / 449.3 MB, free: 14.77 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.586e-05/0.2566, allocations: 56.81 kB / 449.3 MB, free: 14.71 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.437e-05/0.2567, allocations: 37.45 kB / 449.4 MB, free: 14.7 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003759/0.2571, allocations: 304.4 kB / 449.7 MB, free: 14.4 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.169e-05/0.2571, allocations: 19.47 kB / 449.7 MB, free: 14.39 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.352e-05/0.2572, allocations: 22.25 kB / 449.7 MB, free: 14.38 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004189/0.2576, allocations: 225.4 kB / 449.9 MB, free: 14.24 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.047e-05/0.2576, allocations: 0 / 449.9 MB, free: 14.24 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.305e-05/0.2576, allocations: 6.031 kB / 449.9 MB, free: 14.24 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.294e-06/0.2576, allocations: 4.188 kB / 449.9 MB, free: 14.24 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004257/0.2581, allocations: 245.3 kB / 450.2 MB, free: 14.12 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001609/0.2597, allocations: 1.334 MB / 451.5 MB, free: 12.77 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004008/0.2601, allocations: 167.5 kB / 451.7 MB, free: 12.68 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001678/0.2603, allocations: 76.77 kB / 451.7 MB, free: 12.64 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001802/0.2605, allocations: 176.9 kB / 451.9 MB, free: 12.45 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.31e-05/0.2605, allocations: 35.94 kB / 452 MB, free: 12.4 MB / 334.1 MB Notification: Performance of pre-optimization done (n=18): time 1.352e-06/0.2605, allocations: 0 / 452 MB, free: 12.4 MB / 334.1 MB Notification: Performance of matching and sorting (n=31): time 0.02741/0.2879, allocations: 2.74 MB / 454.7 MB, free: 11.01 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.014e-05/0.288, allocations: 54.88 kB / 454.8 MB, free: 10.95 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004327/0.2885, allocations: 354.6 kB / 455.1 MB, free: 10.72 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.799e-05/0.2885, allocations: 30.95 kB / 455.1 MB, free: 10.68 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001212/0.2887, allocations: 176.1 kB / 455.3 MB, free: 10.52 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001177/0.2888, allocations: 110.9 kB / 455.4 MB, free: 10.43 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001938/0.289, allocations: 78.25 kB / 455.5 MB, free: 10.38 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001162/0.2891, allocations: 347.5 kB / 455.8 MB, free: 10.04 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008605/0.29, allocations: 286.6 kB / 456.1 MB, free: 9.891 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009058/0.2909, allocations: 323.3 kB / 456.4 MB, free: 9.711 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001727/0.2926, allocations: 0.5736 MB / 457 MB, free: 9.402 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.2926, allocations: 0 / 457 MB, free: 9.402 MB / 334.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.00288/0.2955, allocations: 0.9049 MB / 457.9 MB, free: 8.91 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.074e-05/0.2956, allocations: 5.562 kB / 457.9 MB, free: 8.91 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.893e-06/0.2956, allocations: 0 / 457.9 MB, free: 8.91 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002236/0.2978, allocations: 1.034 MB / 458.9 MB, free: 8.398 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002986/0.2981, allocations: 55.61 kB / 459 MB, free: 8.383 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005582/0.3037, allocations: 1.826 MB / 460.8 MB, free: 6.945 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007212/0.3045, allocations: 43.27 kB / 460.9 MB, free: 6.926 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.119e-05/0.3046, allocations: 21.39 kB / 460.9 MB, free: 6.918 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 1 (throttleValve.data.zetaLaminarKnown) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (27): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,5), (1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0002547/0.3048, allocations: 155.8 kB / 461 MB, free: 6.773 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001176/0.3049, allocations: 44.64 kB / 461.1 MB, free: 6.746 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003608/0.3086, allocations: 0.9869 MB / 462.1 MB, free: 5.875 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.175e-06/0.3086, allocations: 4 kB / 462.1 MB, free: 5.871 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.554e-06/0.3086, allocations: 0 / 462.1 MB, free: 5.871 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.932e-06/0.3086, allocations: 4 kB / 462.1 MB, free: 5.867 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005884/0.3145, allocations: 1.85 MB / 463.9 MB, free: 3.941 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.04e-06/0.3145, allocations: 0 / 463.9 MB, free: 3.941 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002651/0.3148, allocations: 55.91 kB / 464 MB, free: 3.887 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001922/0.3168, allocations: 0.8603 MB / 464.8 MB, free: 3.02 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.553e-05/0.3168, allocations: 11.98 kB / 464.8 MB, free: 3.008 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005121/0.322, allocations: 1.753 MB / 466.6 MB, free: 1.203 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.36e-06/0.322, allocations: 4.031 kB / 466.6 MB, free: 1.199 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002659/0.3247, allocations: 0.8707 MB / 467.5 MB, free: 308 kB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003129/0.325, allocations: 172.8 kB / 467.6 MB, free: 116 kB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.567e-05/0.3251, allocations: 8 kB / 467.7 MB, free: 108 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005746/0.3257, allocations: 35.95 kB / 467.7 MB, free: 72 kB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.019e-05/0.3258, allocations: 35.83 kB / 467.7 MB, free: 36 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.674e-05/0.3258, allocations: 15.98 kB / 467.7 MB, free: 20 kB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002785/0.3261, allocations: 259.2 kB / 468 MB, free: 15.77 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3261, allocations: 0 / 468 MB, free: 15.77 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007981/0.3269, allocations: 239.5 kB / 468.2 MB, free: 15.54 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 simulation (26): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,3), (1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.004162/0.3311, allocations: 1.841 MB / 470.1 MB, free: 13.73 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00481/0.3359, allocations: 0.7694 MB / 470.8 MB, free: 12.96 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.496e-06/0.3359, allocations: 0 / 470.8 MB, free: 12.96 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003472/0.3394, allocations: 471.8 kB / 471.3 MB, free: 12.5 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007097/0.3401, allocations: 85.31 kB / 471.4 MB, free: 12.42 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0104/0.3506, allocations: 4.766 MB / 476.1 MB, free: 7.531 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003397/0.3509, allocations: 0.784 MB / 476.9 MB, free: 6.723 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002397/0.3512, allocations: 58.88 kB / 477 MB, free: 6.664 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001871/0.3514, allocations: 107.4 kB / 477.1 MB, free: 6.559 MB / 350.1 MB Notification: Performance of SimCode: time 8.42e-07/0.3514, allocations: 0 / 477.1 MB, free: 6.559 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04205/0.3935, allocations: 18.56 MB / 495.7 MB, free: 3.902 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.73/12.12, allocations: 8.656 kB / 495.7 MB, free: 3.895 MB / 366.1 MB (rm -f OpenHydraulics_OpenHydraulics.DevelopmentTests.ThrottleValveTest2.pipe ; mkfifo OpenHydraulics_OpenHydraulics.DevelopmentTests.ThrottleValveTest2.pipe ; head -c 1048576 < OpenHydraulics_OpenHydraulics.DevelopmentTests.ThrottleValveTest2.pipe >> ../files/OpenHydraulics_OpenHydraulics.DevelopmentTests.ThrottleValveTest2.sim & python3 -m fmpy simulate --output-file OpenHydraulics_OpenHydraulics.DevelopmentTests.ThrottleValveTest2_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 OpenHydraulics_OpenHydraulics_DevelopmentTests_ThrottleValveTest2.fmu > OpenHydraulics_OpenHydraulics.DevelopmentTests.ThrottleValveTest2.pipe 2>&1)