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.001328/0.001328, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001463/0.001463, allocations: 194.4 kB / 16.53 MB, free: 6.699 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.303/1.303, allocations: 205.1 MB / 222.4 MB, free: 4.613 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenHydraulics 1.0.0-master/package.mo): time 0.05218/0.05218, allocations: 11.84 MB / 281.6 MB, free: 9.441 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.001485/0.001485, allocations: 75.27 kB / 341.9 MB, free: 21.89 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07051/0.072, allocations: 49.22 MB / 391.2 MB, free: 4.621 MB / 286.1 MB Notification: Performance of NFInst.instantiate(OpenHydraulics.DevelopmentTests.ThrottleValveTest2): time 0.004192/0.07623, allocations: 2.811 MB / 394 MB, free: 1.785 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003172/0.07943, allocations: 2.279 MB / 396.2 MB, free: 15.5 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002439/0.0797, allocations: 7.938 kB / 396.3 MB, free: 15.49 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003972/0.08013, allocations: 99.31 kB / 396.4 MB, free: 15.39 MB / 302.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.0006406/0.08079, allocations: 178.8 kB / 396.5 MB, free: 15.22 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001071/0.08187, allocations: 438.7 kB / 397 MB, free: 14.79 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004345/0.08232, allocations: 382.2 kB / 397.3 MB, free: 14.41 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001561/0.08248, allocations: 56.7 kB / 397.4 MB, free: 14.36 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002067/0.08269, allocations: 131.4 kB / 397.5 MB, free: 14.23 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002236/0.08293, allocations: 155.3 kB / 397.7 MB, free: 14.08 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.428e-05/0.08298, allocations: 20 kB / 397.7 MB, free: 14.06 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004888/0.08348, allocations: 275.8 kB / 398 MB, free: 13.79 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001/0.08359, allocations: 67.69 kB / 398 MB, free: 13.72 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001714/0.08377, allocations: 159.1 kB / 398.2 MB, free: 13.57 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007175/0.08449, allocations: 0.4947 MB / 398.7 MB, free: 13.07 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.08451, allocations: 0 / 398.7 MB, free: 13.07 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.08452, allocations: 0 / 398.7 MB, free: 13.07 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.251e-05/0.08453, allocations: 0 / 398.7 MB, free: 13.07 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: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.0009041/0.08544, allocations: 0.6349 MB / 399.3 MB, free: 12.39 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.959e-05/0.08549, allocations: 15.89 kB / 399.3 MB, free: 12.37 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.539e-05/0.08556, allocations: 54.73 kB / 399.4 MB, free: 12.31 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.195e-05/0.08565, allocations: 40.47 kB / 399.4 MB, free: 12.27 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003563/0.08601, allocations: 303.2 kB / 399.7 MB, free: 11.93 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.69e-05/0.08604, allocations: 16.38 kB / 399.7 MB, free: 11.92 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.13e-05/0.08608, allocations: 24 kB / 399.7 MB, free: 11.89 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004601/0.08654, allocations: 223.2 kB / 400 MB, free: 11.67 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.265e-05/0.08657, allocations: 3.938 kB / 400 MB, free: 11.67 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.113e-05/0.0866, allocations: 8 kB / 400 MB, free: 11.66 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.564e-06/0.08661, allocations: 4 kB / 400 MB, free: 11.66 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004251/0.08704, allocations: 245.6 kB / 400.2 MB, free: 11.42 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001621/0.08867, allocations: 1.325 MB / 401.5 MB, free: 9.898 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004017/0.08908, allocations: 166.8 kB / 401.7 MB, free: 9.727 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001665/0.08926, allocations: 76.83 kB / 401.8 MB, free: 9.648 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002044/0.08948, allocations: 178.1 kB / 402 MB, free: 9.438 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.567e-05/0.08951, allocations: 38.5 kB / 402 MB, free: 9.391 MB / 302.1 MB Notification: Performance of pre-optimization done (n=18): time 1.573e-06/0.08953, allocations: 7.938 kB / 402 MB, free: 9.383 MB / 302.1 MB Notification: Performance of matching and sorting (n=31): time 0.02663/0.1162, allocations: 2.719 MB / 404.7 MB, free: 6.629 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.095e-05/0.1162, allocations: 55.41 kB / 404.8 MB, free: 6.562 MB / 302.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.0) as default value. Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004666/0.1167, allocations: 357.6 kB / 405.1 MB, free: 6.203 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.125e-05/0.1168, allocations: 37.7 kB / 405.2 MB, free: 6.16 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001157/0.1169, allocations: 184.6 kB / 405.3 MB, free: 5.973 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.355e-05/0.117, allocations: 94.56 kB / 405.4 MB, free: 5.879 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001873/0.1172, allocations: 77.58 kB / 405.5 MB, free: 5.797 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001136/0.1173, allocations: 346.8 kB / 405.8 MB, free: 5.449 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008447/0.1182, allocations: 287.8 kB / 406.1 MB, free: 5.168 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000833/0.119, allocations: 326.1 kB / 406.4 MB, free: 4.84 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001652/0.1207, allocations: 0.588 MB / 407 MB, free: 4.242 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.893e-06/0.1207, allocations: 0 / 407 MB, free: 4.242 MB / 302.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.00267/0.1234, allocations: 0.8812 MB / 407.9 MB, free: 3.348 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.516e-05/0.1234, allocations: 4 kB / 407.9 MB, free: 3.344 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.644e-06/0.1234, allocations: 4 kB / 407.9 MB, free: 3.34 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002075/0.1255, allocations: 1.047 MB / 409 MB, free: 2.285 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002709/0.1258, allocations: 55.95 kB / 409 MB, free: 2.23 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005199/0.131, allocations: 1.819 MB / 410.8 MB, free: 368 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005787/0.1316, allocations: 47.95 kB / 410.9 MB, free: 320 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.132e-05/0.1316, allocations: 19.98 kB / 410.9 MB, free: 300 kB / 302.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.0001937/0.1318, allocations: 149.8 kB / 411.1 MB, free: 140 kB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001047/0.1319, allocations: 35.62 kB / 411.1 MB, free: 104 kB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003457/0.1354, allocations: 1.001 MB / 412.1 MB, free: 15.09 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.791e-06/0.1354, allocations: 4 kB / 412.1 MB, free: 15.09 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.238e-06/0.1354, allocations: 0 / 412.1 MB, free: 15.09 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.003e-06/0.1354, allocations: 3.984 kB / 412.1 MB, free: 15.08 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005398/0.1408, allocations: 1.846 MB / 413.9 MB, free: 13.16 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.97e-06/0.1409, allocations: 4 kB / 414 MB, free: 13.16 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002293/0.1411, allocations: 52.02 kB / 414 MB, free: 13.11 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001801/0.1429, allocations: 0.8641 MB / 414.9 MB, free: 12.24 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.067e-05/0.143, allocations: 15.98 kB / 414.9 MB, free: 12.22 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00466/0.1476, allocations: 1.756 MB / 416.6 MB, free: 10.41 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.1476, allocations: 0 / 416.6 MB, free: 10.41 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002361/0.15, allocations: 0.8695 MB / 417.5 MB, free: 9.516 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002345/0.1503, allocations: 180.5 kB / 417.7 MB, free: 9.32 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.38e-05/0.1504, allocations: 8 kB / 417.7 MB, free: 9.312 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005391/0.1509, allocations: 35.97 kB / 417.7 MB, free: 9.277 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.919e-05/0.151, allocations: 15.97 kB / 417.7 MB, free: 9.262 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.983e-05/0.151, allocations: 23.97 kB / 417.8 MB, free: 9.238 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002874/0.1513, allocations: 259.1 kB / 418 MB, free: 8.988 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1513, allocations: 8 kB / 418 MB, free: 8.98 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0007487/0.1521, allocations: 219.9 kB / 418.2 MB, free: 8.766 MB / 318.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.004108/0.1562, allocations: 1.836 MB / 420.1 MB, free: 7.004 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.004653/0.1609, allocations: 0.7849 MB / 420.9 MB, free: 6.219 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.769e-06/0.1609, allocations: 0 / 420.9 MB, free: 6.219 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003301/0.1642, allocations: 475.8 kB / 421.3 MB, free: 5.754 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005598/0.1648, allocations: 90.02 kB / 421.4 MB, free: 5.668 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009479/0.1743, allocations: 4.788 MB / 426.2 MB, free: 0.7656 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1138/0.2881, allocations: 0.781 MB / 427 MB, free: 41.7 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002783/0.2884, allocations: 49.66 kB / 427 MB, free: 41.7 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000164/0.2885, allocations: 108.1 kB / 427.1 MB, free: 41.69 MB / 318.1 MB Notification: Performance of SimCode: time 6.31e-07/0.2885, allocations: 1.094 kB / 427.1 MB, free: 41.69 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03396/0.3225, allocations: 18.38 MB / 445.5 MB, free: 34.59 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.74/11.07, allocations: 11.03 kB / 445.5 MB, free: 34.59 MB / 318.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)