Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenHydraulics_OpenHydraulics.DevelopmentTests.ServoValveMeteringTest.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.ServoValveMeteringTest,fileNamePrefix="OpenHydraulics_OpenHydraulics_DevelopmentTests_ServoValveMeteringTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenHydraulics.DevelopmentTests.ServoValveMeteringTest,fileNamePrefix="OpenHydraulics_OpenHydraulics_DevelopmentTests_ServoValveMeteringTest",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.001254/0.001254, 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.001346/0.001346, allocations: 194.6 kB / 16.53 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.316/1.316, allocations: 205.1 MB / 222.4 MB, free: 4.602 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenHydraulics 1.0.0-master/package.mo): time 0.05166/0.05166, allocations: 11.85 MB / 281.6 MB, free: 9.422 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.001497/0.001497, allocations: 71.28 kB / 341.9 MB, free: 21.88 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07829/0.0798, allocations: 49.21 MB / 391.2 MB, free: 4.613 MB / 286.1 MB Notification: Performance of NFInst.instantiate(OpenHydraulics.DevelopmentTests.ServoValveMeteringTest): time 0.004621/0.08445, allocations: 3.609 MB / 394.8 MB, free: 0.9766 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003504/0.08799, allocations: 2.556 MB / 397.3 MB, free: 14.41 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002413/0.08826, allocations: 11.94 kB / 397.3 MB, free: 14.4 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006363/0.08893, allocations: 434.5 kB / 397.8 MB, free: 13.98 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.000675/0.08962, allocations: 429.8 kB / 398.2 MB, free: 13.55 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00121/0.09084, allocations: 0.5918 MB / 398.8 MB, free: 12.96 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007311/0.09158, allocations: 0.8519 MB / 399.6 MB, free: 12.11 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002737/0.09186, allocations: 181.5 kB / 399.8 MB, free: 11.93 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003361/0.0922, allocations: 338.7 kB / 400.1 MB, free: 11.6 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004495/0.09266, allocations: 470.3 kB / 400.6 MB, free: 11.14 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.794e-05/0.09275, allocations: 44 kB / 400.6 MB, free: 11.09 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004213/0.09318, allocations: 239.8 kB / 400.9 MB, free: 10.86 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001945/0.09339, allocations: 243.1 kB / 401.1 MB, free: 10.62 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003164/0.09371, allocations: 413.4 kB / 401.5 MB, free: 10.21 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009262/0.09464, allocations: 1.016 MB / 402.5 MB, free: 9.195 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.11e-06/0.09466, allocations: 0 / 402.5 MB, free: 9.195 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.09467, allocations: 3.938 kB / 402.5 MB, free: 9.191 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.398e-05/0.09468, allocations: 0 / 402.5 MB, free: 9.191 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: 104 * Number of variables: 104 Notification: Performance of Generate backend data structure: time 0.001639/0.09633, allocations: 1.217 MB / 403.7 MB, free: 7.918 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.886e-05/0.09638, allocations: 15.89 kB / 403.8 MB, free: 7.902 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.976e-05/0.09646, allocations: 78.72 kB / 403.8 MB, free: 7.816 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001409/0.09661, allocations: 107.6 kB / 403.9 MB, free: 7.711 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007207/0.09733, allocations: 0.6437 MB / 404.6 MB, free: 7.023 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.561e-05/0.09737, allocations: 29 kB / 404.6 MB, free: 6.996 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.98e-05/0.09743, allocations: 40 kB / 404.6 MB, free: 6.957 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007008/0.09814, allocations: 446.4 kB / 405.1 MB, free: 6.512 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.117e-05/0.09816, allocations: 0 / 405.1 MB, free: 6.512 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.551e-05/0.0982, allocations: 16 kB / 405.1 MB, free: 6.496 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.018e-05/0.09822, allocations: 12 kB / 405.1 MB, free: 6.484 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000741/0.09896, allocations: 447.7 kB / 405.5 MB, free: 6.047 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002584/0.1016, allocations: 2.493 MB / 408 MB, free: 3.273 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006829/0.1023, allocations: 314.3 kB / 408.3 MB, free: 2.957 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002393/0.1025, allocations: 121.5 kB / 408.5 MB, free: 2.836 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.898e-05/0.1026, allocations: 11.97 kB / 408.5 MB, free: 2.824 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.142e-05/0.1026, allocations: 34.56 kB / 408.5 MB, free: 2.781 MB / 302.1 MB Notification: Performance of pre-optimization done (n=26): time 1.583e-06/0.1026, allocations: 0 / 408.5 MB, free: 2.781 MB / 302.1 MB Notification: Performance of matching and sorting (n=26): time 0.0008993/0.1035, allocations: 452.2 kB / 409 MB, free: 2.332 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.615e-05/0.1035, allocations: 55.34 kB / 409 MB, free: 2.266 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001412/0.105, allocations: 1.361 MB / 410.4 MB, free: 0.8867 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.565e-05/0.105, allocations: 29.7 kB / 410.4 MB, free: 0.8516 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003644/0.1054, allocations: 468.1 kB / 410.9 MB, free: 400 kB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.766e-05/0.1055, allocations: 90.73 kB / 410.9 MB, free: 308 kB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001197/0.1056, allocations: 77.59 kB / 411 MB, free: 224 kB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001242/0.1057, allocations: 317.9 kB / 411.3 MB, free: 15.9 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002565/0.106, allocations: 123.9 kB / 411.4 MB, free: 15.78 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002922/0.1063, allocations: 183.6 kB / 411.6 MB, free: 15.57 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005413/0.1068, allocations: 323.5 kB / 411.9 MB, free: 15.23 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.347e-06/0.1068, allocations: 0 / 411.9 MB, free: 15.23 MB / 318.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.00078/0.1076, allocations: 459.7 kB / 412.4 MB, free: 14.77 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.803e-05/0.1077, allocations: 11.98 kB / 412.4 MB, free: 14.76 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.082e-06/0.1077, allocations: 0 / 412.4 MB, free: 14.76 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.458e-05/0.1077, allocations: 4.25 kB / 412.4 MB, free: 14.75 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000386/0.1081, allocations: 91.89 kB / 412.5 MB, free: 14.66 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.148e-05/0.1081, allocations: 11.92 kB / 412.5 MB, free: 14.65 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003092/0.1084, allocations: 47.44 kB / 412.6 MB, free: 14.61 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.231e-05/0.1085, allocations: 19.98 kB / 412.6 MB, free: 14.59 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 3 (VR100.data.zetaLaminarKnown,VR10.data.zetaLaminarKnown,VR30.data.zetaLaminarKnown) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (43): * Single equations (assignments): 43 * 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.0003619/0.1088, allocations: 301.6 kB / 412.9 MB, free: 14.28 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001267/0.109, allocations: 94.78 kB / 413 MB, free: 14.19 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008407/0.1098, allocations: 450.5 kB / 413.4 MB, free: 13.74 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.162e-06/0.1098, allocations: 8 kB / 413.4 MB, free: 13.73 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.27e-06/0.1098, allocations: 0 / 413.4 MB, free: 13.73 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.02e-06/0.1098, allocations: 0 / 413.4 MB, free: 13.73 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006426/0.1105, allocations: 0.6358 MB / 414 MB, free: 13.05 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.006e-06/0.1105, allocations: 0 / 414 MB, free: 13.05 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003177/0.1108, allocations: 71.89 kB / 414.1 MB, free: 12.98 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.921e-06/0.1108, allocations: 4 kB / 414.1 MB, free: 12.98 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.43e-05/0.1109, allocations: 19.92 kB / 414.1 MB, free: 12.96 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.014e-06/0.1109, allocations: 0 / 414.1 MB, free: 12.96 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.1109, allocations: 0 / 414.1 MB, free: 12.96 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006625/0.1115, allocations: 486.9 kB / 414.6 MB, free: 12.46 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002556/0.1118, allocations: 219.8 kB / 414.8 MB, free: 12.23 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.926e-05/0.1119, allocations: 7.984 kB / 414.8 MB, free: 12.22 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002413/0.1122, allocations: 12 kB / 414.9 MB, free: 12.21 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.478e-05/0.1122, allocations: 15.97 kB / 414.9 MB, free: 12.2 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.191e-05/0.1122, allocations: 19.98 kB / 414.9 MB, free: 12.18 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001003/0.1133, allocations: 0.9716 MB / 415.9 MB, free: 11.2 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1133, allocations: 0 / 415.9 MB, free: 11.2 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0005179/0.1138, allocations: 175.8 kB / 416 MB, free: 11.02 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (32): * Single equations (assignments): 32 * 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.001659/0.1155, allocations: 1.338 MB / 417.4 MB, free: 9.762 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0006742/0.1161, allocations: 327.6 kB / 417.7 MB, free: 9.441 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.1162, allocations: 3.938 kB / 417.7 MB, free: 9.438 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002552/0.1164, allocations: 143.9 kB / 417.8 MB, free: 9.297 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008586/0.1173, allocations: 208.7 kB / 418 MB, free: 9.094 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008565/0.1259, allocations: 8.091 MB / 426.1 MB, free: 0.7188 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1232/0.2491, allocations: 1.013 MB / 427.1 MB, free: 41.17 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.000514/0.2497, allocations: 153.3 kB / 427.3 MB, free: 41.16 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003638/0.2501, allocations: 318.3 kB / 427.6 MB, free: 41.15 MB / 318.1 MB Notification: Performance of SimCode: time 9.52e-07/0.2501, allocations: 1.375 kB / 427.6 MB, free: 41.15 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03993/0.29, allocations: 19.41 MB / 447 MB, free: 32.53 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.349/7.639, allocations: 0 / 447 MB, free: 32.53 MB / 318.1 MB (rm -f OpenHydraulics_OpenHydraulics.DevelopmentTests.ServoValveMeteringTest.pipe ; mkfifo OpenHydraulics_OpenHydraulics.DevelopmentTests.ServoValveMeteringTest.pipe ; head -c 1048576 < OpenHydraulics_OpenHydraulics.DevelopmentTests.ServoValveMeteringTest.pipe >> ../files/OpenHydraulics_OpenHydraulics.DevelopmentTests.ServoValveMeteringTest.sim & python3 -m fmpy simulate --output-file OpenHydraulics_OpenHydraulics.DevelopmentTests.ServoValveMeteringTest_res.csv --start-time 0 --stop-time 100 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.04 OpenHydraulics_OpenHydraulics_DevelopmentTests_ServoValveMeteringTest.fmu > OpenHydraulics_OpenHydraulics.DevelopmentTests.ServoValveMeteringTest.pipe 2>&1)