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.001145/0.001145, 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.001631/0.001631, allocations: 193.5 kB / 16.14 MB, free: 6.707 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.165/1.165, allocations: 205.1 MB / 222 MB, free: 4.98 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenHydraulics 1.0.0-master/package.mo): time 0.04934/0.04934, allocations: 11.84 MB / 281.2 MB, free: 9.887 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.001335/0.001335, allocations: 60.38 kB / 341.2 MB, free: 13.75 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07136/0.07271, allocations: 49.24 MB / 390.5 MB, free: 12.47 MB / 334.1 MB Notification: Performance of NFInst.instantiate(OpenHydraulics.DevelopmentTests.ThrottleValveTest2): time 0.003601/0.07634, allocations: 3.199 MB / 393.7 MB, free: 9.234 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002638/0.07899, allocations: 2.384 MB / 396.1 MB, free: 6.844 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000108/0.07912, allocations: 4 kB / 396.1 MB, free: 6.84 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002899/0.07942, allocations: 83.61 kB / 396.1 MB, free: 6.758 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002989/0.07973, allocations: 163 kB / 396.3 MB, free: 6.598 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000622/0.08036, allocations: 359 kB / 396.7 MB, free: 6.246 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002941/0.08066, allocations: 354.2 kB / 397 MB, free: 5.898 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001127/0.08078, allocations: 60.91 kB / 397.1 MB, free: 5.84 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001436/0.08093, allocations: 123.4 kB / 397.2 MB, free: 5.719 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001611/0.0811, allocations: 155.2 kB / 397.3 MB, free: 5.566 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.16e-05/0.08114, allocations: 12 kB / 397.3 MB, free: 5.555 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003952/0.08154, allocations: 275.7 kB / 397.6 MB, free: 5.285 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.732e-05/0.08163, allocations: 55.75 kB / 397.7 MB, free: 5.23 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001187/0.08175, allocations: 143.1 kB / 397.8 MB, free: 5.09 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004913/0.08225, allocations: 494.5 kB / 398.3 MB, free: 4.605 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.126e-06/0.08226, allocations: 0 / 398.3 MB, free: 4.605 MB / 334.1 MB Notification: Performance of FrontEnd: time 6.51e-07/0.08227, allocations: 0 / 398.3 MB, free: 4.605 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.468e-06/0.08228, allocations: 4 kB / 398.3 MB, free: 4.602 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.0007339/0.08302, allocations: 0.6388 MB / 398.9 MB, free: 3.914 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.238e-05/0.08306, allocations: 8.031 kB / 398.9 MB, free: 3.906 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.866e-05/0.08312, allocations: 66.66 kB / 399 MB, free: 3.832 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.072e-05/0.08319, allocations: 32.56 kB / 399 MB, free: 3.801 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002813/0.08348, allocations: 303.1 kB / 399.3 MB, free: 3.469 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.47e-05/0.0835, allocations: 12.44 kB / 399.3 MB, free: 3.453 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.709e-05/0.08353, allocations: 20 kB / 399.4 MB, free: 3.434 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003658/0.0839, allocations: 227.2 kB / 399.6 MB, free: 3.211 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.614e-06/0.08392, allocations: 0 / 399.6 MB, free: 3.211 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.867e-05/0.08394, allocations: 4 kB / 399.6 MB, free: 3.207 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.022e-06/0.08395, allocations: 8 kB / 399.6 MB, free: 3.199 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003961/0.08435, allocations: 249.5 kB / 399.8 MB, free: 2.949 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001328/0.08569, allocations: 1.325 MB / 401.2 MB, free: 1.434 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003544/0.08606, allocations: 166.7 kB / 401.3 MB, free: 1.266 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001506/0.08622, allocations: 80.83 kB / 401.4 MB, free: 1.184 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001645/0.08639, allocations: 170.2 kB / 401.6 MB, free: 0.9805 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.97e-05/0.08642, allocations: 46.5 kB / 401.6 MB, free: 0.9258 MB / 334.1 MB Notification: Performance of pre-optimization done (n=18): time 1.242e-06/0.08643, allocations: 0 / 401.6 MB, free: 0.9258 MB / 334.1 MB Notification: Performance of matching and sorting (n=31): time 0.02631/0.1127, allocations: 2.731 MB / 404.3 MB, free: 14.16 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.186e-05/0.1128, allocations: 51.41 kB / 404.4 MB, free: 14.09 MB / 350.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.0004134/0.1132, allocations: 362.8 kB / 404.8 MB, free: 13.73 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.388e-05/0.1133, allocations: 29.7 kB / 404.8 MB, free: 13.7 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001081/0.1134, allocations: 180.6 kB / 405 MB, free: 13.52 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.851e-05/0.1135, allocations: 102.4 kB / 405.1 MB, free: 13.41 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001754/0.1137, allocations: 73.67 kB / 405.1 MB, free: 13.34 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001018/0.1138, allocations: 346.8 kB / 405.5 MB, free: 12.99 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008286/0.1146, allocations: 287.8 kB / 405.8 MB, free: 12.71 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008256/0.1155, allocations: 322.4 kB / 406.1 MB, free: 12.38 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001651/0.1171, allocations: 0.5803 MB / 406.6 MB, free: 11.79 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.292e-06/0.1171, allocations: 0 / 406.6 MB, free: 11.79 MB / 350.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.002653/0.1198, allocations: 0.8927 MB / 407.5 MB, free: 10.89 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.488e-05/0.1198, allocations: 8 kB / 407.5 MB, free: 10.88 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.03e-06/0.1198, allocations: 0 / 407.5 MB, free: 10.88 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002125/0.122, allocations: 1.036 MB / 408.6 MB, free: 9.836 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002594/0.1222, allocations: 59.89 kB / 408.6 MB, free: 9.777 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00529/0.1275, allocations: 1.819 MB / 410.5 MB, free: 7.906 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005975/0.1281, allocations: 43.92 kB / 410.5 MB, free: 7.863 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.441e-05/0.1282, allocations: 19.98 kB / 410.5 MB, free: 7.844 MB / 350.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.0001925/0.1284, allocations: 161.8 kB / 410.7 MB, free: 7.676 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.964e-05/0.1285, allocations: 35.53 kB / 410.7 MB, free: 7.641 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002939/0.1315, allocations: 0.9466 MB / 411.7 MB, free: 6.684 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.272e-06/0.1315, allocations: 7.938 kB / 411.7 MB, free: 6.676 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.558e-06/0.1315, allocations: 0 / 411.7 MB, free: 6.676 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.075e-06/0.1315, allocations: 3.984 kB / 411.7 MB, free: 6.672 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004777/0.1363, allocations: 1.834 MB / 413.5 MB, free: 4.77 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.475e-06/0.1363, allocations: 0 / 413.5 MB, free: 4.77 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002386/0.1365, allocations: 59.89 kB / 413.6 MB, free: 4.711 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001849/0.1384, allocations: 0.8798 MB / 414.4 MB, free: 3.824 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.808e-05/0.1384, allocations: 11.98 kB / 414.5 MB, free: 3.812 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002862/0.1413, allocations: 1.64 MB / 416.1 MB, free: 2.121 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.1413, allocations: 0 / 416.1 MB, free: 2.121 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002328/0.1437, allocations: 0.8652 MB / 417 MB, free: 1.227 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00019/0.1439, allocations: 180.5 kB / 417.1 MB, free: 1.031 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.246e-05/0.144, allocations: 8 kB / 417.1 MB, free: 1.023 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005769/0.1445, allocations: 39.95 kB / 417.2 MB, free: 0.9844 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.859e-05/0.1446, allocations: 19.97 kB / 417.2 MB, free: 0.9648 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.647e-05/0.1447, allocations: 15.98 kB / 417.2 MB, free: 0.9492 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002281/0.1449, allocations: 259.2 kB / 417.5 MB, free: 0.6953 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1449, allocations: 0 / 417.5 MB, free: 0.6953 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006421/0.1455, allocations: 235.9 kB / 417.7 MB, free: 476 kB / 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.003784/0.1493, allocations: 1.825 MB / 419.5 MB, free: 14.68 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.004736/0.1541, allocations: 0.7698 MB / 420.3 MB, free: 13.91 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.1541, allocations: 0 / 420.3 MB, free: 13.91 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001445/0.1556, allocations: 351.9 kB / 420.6 MB, free: 13.56 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005593/0.1561, allocations: 85.27 kB / 420.7 MB, free: 13.48 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009236/0.1654, allocations: 4.895 MB / 425.6 MB, free: 8.469 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002798/0.1657, allocations: 0.784 MB / 426.4 MB, free: 7.66 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002016/0.1659, allocations: 58.92 kB / 426.5 MB, free: 7.602 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001596/0.166, allocations: 111.4 kB / 426.6 MB, free: 7.492 MB / 366.1 MB Notification: Performance of SimCode: time 4.71e-07/0.1661, allocations: 4 kB / 426.6 MB, free: 7.488 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08287/0.2489, allocations: 18.57 MB / 445.1 MB, free: 4.805 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002468/0.2492, allocations: 275.5 kB / 445.4 MB, free: 4.438 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.969/2.218, allocations: 0 / 445.4 MB, free: 4.438 MB / 382.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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_OpenHydraulics_OpenHydraulics_DevelopmentTests_ThrottleValveTest2_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 OpenHydraulics_OpenHydraulics_DevelopmentTests_ThrottleValveTest2.fmu > OpenHydraulics_OpenHydraulics.DevelopmentTests.ThrottleValveTest2.pipe 2>&1)