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.00614/0.00614, allocations: 104.1 kB / 15.74 MB, free: 5.984 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.001389/0.001389, allocations: 197.8 kB / 16.68 MB, free: 5.91 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.366/1.366, allocations: 205.1 MB / 222.5 MB, free: 4.5 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenHydraulics 1.0.0-master/package.mo): time 0.05394/0.05394, allocations: 11.85 MB / 281.8 MB, free: 9.309 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.001478/0.001478, allocations: 71.91 kB / 391.8 MB, free: 3.977 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3042/0.3056, allocations: 49.22 MB / 441.1 MB, free: 4.168 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.004018/0.3097, allocations: 2.815 MB / 443.9 MB, free: 2.184 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003115/0.3129, allocations: 2.276 MB / 446.2 MB, free: 0.582 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001997/0.3131, allocations: 3.656 kB / 446.2 MB, free: 0.582 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003974/0.3135, allocations: 96.14 kB / 446.3 MB, free: 0.5352 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.0004968/0.314, allocations: 182.5 kB / 446.4 MB, free: 428 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001097/0.3151, allocations: 443.4 kB / 446.9 MB, free: 212 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004964/0.3156, allocations: 376.3 kB / 447.2 MB, free: 20 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002007/0.3158, allocations: 72.5 kB / 447.3 MB, free: 15.98 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002405/0.3161, allocations: 141.3 kB / 447.4 MB, free: 15.91 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000262/0.3163, allocations: 154.5 kB / 447.6 MB, free: 15.84 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.394e-05/0.3164, allocations: 24.91 kB / 447.6 MB, free: 15.83 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006387/0.317, allocations: 278.3 kB / 447.9 MB, free: 15.76 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001084/0.3172, allocations: 68.39 kB / 448 MB, free: 15.72 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000164/0.3173, allocations: 157.6 kB / 448.1 MB, free: 15.62 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007958/0.3181, allocations: 0.4939 MB / 448.6 MB, free: 15.37 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.992e-06/0.3182, allocations: 7.922 kB / 448.6 MB, free: 15.36 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.3182, allocations: 0 / 448.6 MB, free: 15.36 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.682e-06/0.3182, allocations: 0 / 448.6 MB, free: 15.36 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.0009261/0.3191, allocations: 0.6315 MB / 449.2 MB, free: 14.78 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.49e-05/0.3192, allocations: 17.55 kB / 449.3 MB, free: 14.77 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.592e-05/0.3192, allocations: 57.47 kB / 449.3 MB, free: 14.71 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.642e-05/0.3193, allocations: 33.47 kB / 449.3 MB, free: 14.7 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003968/0.3197, allocations: 295 kB / 449.6 MB, free: 14.41 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.231e-05/0.3197, allocations: 16.69 kB / 449.6 MB, free: 14.4 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.24e-05/0.3198, allocations: 16.69 kB / 449.7 MB, free: 14.4 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004276/0.3202, allocations: 225.5 kB / 449.9 MB, free: 14.26 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.059e-05/0.3202, allocations: 5.344 kB / 449.9 MB, free: 14.25 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.339e-05/0.3203, allocations: 9.281 kB / 449.9 MB, free: 14.25 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.658e-06/0.3203, allocations: 5.688 kB / 449.9 MB, free: 14.25 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004467/0.3207, allocations: 247.6 kB / 450.1 MB, free: 14.12 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001643/0.3224, allocations: 1.335 MB / 451.5 MB, free: 12.78 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003923/0.3228, allocations: 162.6 kB / 451.6 MB, free: 12.69 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001614/0.323, allocations: 80.7 kB / 451.7 MB, free: 12.65 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002083/0.3232, allocations: 173.2 kB / 451.9 MB, free: 12.45 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.082e-05/0.3232, allocations: 39.88 kB / 451.9 MB, free: 12.41 MB / 334.1 MB Notification: Performance of pre-optimization done (n=18): time 1.603e-06/0.3232, allocations: 0 / 451.9 MB, free: 12.41 MB / 334.1 MB Notification: Performance of matching and sorting (n=31): time 0.02716/0.3504, allocations: 2.727 MB / 454.7 MB, free: 11.02 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.375e-05/0.3505, allocations: 59.16 kB / 454.7 MB, free: 10.95 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004549/0.351, allocations: 350.7 kB / 455.1 MB, free: 10.73 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.917e-05/0.351, allocations: 30.92 kB / 455.1 MB, free: 10.7 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001334/0.3512, allocations: 179.3 kB / 455.3 MB, free: 10.53 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001143/0.3513, allocations: 102.8 kB / 455.4 MB, free: 10.44 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001982/0.3515, allocations: 77.81 kB / 455.4 MB, free: 10.39 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001583/0.3517, allocations: 343.6 kB / 455.8 MB, free: 10.05 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000873/0.3525, allocations: 287.1 kB / 456.1 MB, free: 9.91 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009155/0.3535, allocations: 327.1 kB / 456.4 MB, free: 9.727 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002533/0.356, allocations: 0.5765 MB / 456.9 MB, free: 9.414 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.894e-06/0.356, allocations: 4.938 kB / 457 MB, free: 9.41 MB / 334.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.004404/0.3605, allocations: 0.8969 MB / 457.9 MB, free: 8.926 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.653e-05/0.3605, allocations: 5.375 kB / 457.9 MB, free: 8.926 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.769e-06/0.3605, allocations: 5.375 kB / 457.9 MB, free: 8.922 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003459/0.364, allocations: 1.028 MB / 458.9 MB, free: 8.414 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003975/0.3644, allocations: 55.58 kB / 458.9 MB, free: 8.398 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008396/0.3728, allocations: 1.819 MB / 460.8 MB, free: 6.969 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001065/0.3739, allocations: 44.3 kB / 460.8 MB, free: 6.949 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001053/0.3741, allocations: 23.83 kB / 460.8 MB, free: 6.938 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.0004048/0.3745, allocations: 156.3 kB / 461 MB, free: 6.793 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001848/0.3747, allocations: 36 kB / 461 MB, free: 6.773 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005912/0.3806, allocations: 0.9986 MB / 462 MB, free: 5.906 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.646e-06/0.3806, allocations: 3.938 kB / 462 MB, free: 5.902 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.146e-05/0.3807, allocations: 4 kB / 462 MB, free: 5.898 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.376e-06/0.3807, allocations: 0 / 462 MB, free: 5.898 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008841/0.3895, allocations: 1.838 MB / 463.9 MB, free: 3.984 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.402e-06/0.3896, allocations: 0 / 463.9 MB, free: 3.984 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003784/0.39, allocations: 60.09 kB / 463.9 MB, free: 3.926 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002921/0.3929, allocations: 0.8641 MB / 464.8 MB, free: 3.055 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.847e-05/0.393, allocations: 15.98 kB / 464.8 MB, free: 3.039 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005647/0.3986, allocations: 1.757 MB / 466.6 MB, free: 1.23 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.487e-06/0.3987, allocations: 4.062 kB / 466.6 MB, free: 1.227 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002569/0.4012, allocations: 0.8665 MB / 467.4 MB, free: 340 kB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002871/0.4015, allocations: 172.6 kB / 467.6 MB, free: 148 kB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.173e-05/0.4016, allocations: 8 kB / 467.6 MB, free: 140 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005356/0.4022, allocations: 39.95 kB / 467.6 MB, free: 100 kB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.978e-05/0.4023, allocations: 23.97 kB / 467.7 MB, free: 76 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.863e-05/0.4023, allocations: 15.98 kB / 467.7 MB, free: 60 kB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002897/0.4026, allocations: 255.2 kB / 467.9 MB, free: 15.82 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4026, allocations: 0 / 467.9 MB, free: 15.82 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007862/0.4034, allocations: 235.9 kB / 468.2 MB, free: 15.59 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.004057/0.4075, allocations: 1.838 MB / 470 MB, free: 13.79 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.004715/0.4122, allocations: 0.7617 MB / 470.8 MB, free: 13.03 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.287e-06/0.4122, allocations: 0 / 470.8 MB, free: 13.03 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003384/0.4156, allocations: 479.8 kB / 471.2 MB, free: 12.56 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006834/0.4163, allocations: 89.31 kB / 471.3 MB, free: 12.47 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01003/0.4264, allocations: 4.751 MB / 476.1 MB, free: 7.602 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003649/0.4268, allocations: 0.7879 MB / 476.9 MB, free: 6.789 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002347/0.427, allocations: 46.94 kB / 476.9 MB, free: 6.742 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001736/0.4272, allocations: 107.4 kB / 477 MB, free: 6.637 MB / 350.1 MB Notification: Performance of SimCode: time 9.52e-07/0.4272, allocations: 4 kB / 477 MB, free: 6.633 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4506/0.8778, allocations: 18.95 MB / 496 MB, free: 3.586 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.82/12.7, allocations: 12.72 kB / 496 MB, free: 3.574 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 & /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)