Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenHydraulics_OpenHydraulics.DevelopmentTests.WallFrictionTest.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.WallFrictionTest,fileNamePrefix="OpenHydraulics_OpenHydraulics_DevelopmentTests_WallFrictionTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenHydraulics.DevelopmentTests.WallFrictionTest,fileNamePrefix="OpenHydraulics_OpenHydraulics_DevelopmentTests_WallFrictionTest",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.001111/0.001111, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001151/0.001151, allocations: 189.6 kB / 16.25 MB, free: 6.625 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.188/1.188, allocations: 205.1 MB / 222.1 MB, free: 4.719 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenHydraulics 1.0.0-master/package.mo): time 0.05044/0.05044, allocations: 11.83 MB / 281.3 MB, free: 9.609 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.001287/0.001287, allocations: 71.34 kB / 341.4 MB, free: 22.22 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06636/0.06766, allocations: 49.22 MB / 390.6 MB, free: 4.953 MB / 286.1 MB Notification: Performance of NFInst.instantiate(OpenHydraulics.DevelopmentTests.WallFrictionTest): time 0.003886/0.07157, allocations: 3.18 MB / 393.8 MB, free: 1.75 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001903/0.0735, allocations: 1.543 MB / 395.4 MB, free: 204 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000107/0.07362, allocations: 11.94 kB / 395.4 MB, free: 192 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001199/0.07377, allocations: 23.84 kB / 395.4 MB, free: 168 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002654/0.07404, allocations: 95.28 kB / 395.5 MB, free: 72 kB / 286.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenHydraulics 1.0.0-master/Basic/BaseClasses/massFlowRate_dp_WallFriction.mo:82:9-82:71:writable] Warning: Re was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. Notification: Performance of NFTyping.typeClassSections: time 0.0005485/0.0746, allocations: 287.3 kB / 395.8 MB, free: 15.79 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000279/0.07489, allocations: 310.5 kB / 396.1 MB, free: 15.48 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001651/0.07506, allocations: 81.14 kB / 396.2 MB, free: 15.4 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001246/0.07519, allocations: 103.7 kB / 396.3 MB, free: 15.3 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001607/0.07536, allocations: 139.3 kB / 396.4 MB, free: 15.16 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.468e-05/0.0754, allocations: 20 kB / 396.4 MB, free: 15.14 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002853/0.07569, allocations: 219.6 kB / 396.6 MB, free: 14.93 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.78e-05/0.07574, allocations: 51.83 kB / 396.7 MB, free: 14.88 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 9.869e-05/0.07585, allocations: 127.4 kB / 396.8 MB, free: 14.75 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003917/0.07625, allocations: 391.1 kB / 397.2 MB, free: 14.37 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.106e-06/0.07626, allocations: 0 / 397.2 MB, free: 14.37 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.07626, allocations: 0 / 397.2 MB, free: 14.37 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.945e-06/0.07628, allocations: 0 / 397.2 MB, free: 14.37 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: 46 * Number of variables: 46 Notification: Performance of Generate backend data structure: time 0.0006732/0.07695, allocations: 0.5379 MB / 397.7 MB, free: 13.78 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.097e-05/0.07699, allocations: 15.89 kB / 397.7 MB, free: 13.77 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.717e-05/0.07705, allocations: 50.73 kB / 397.8 MB, free: 13.71 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.922e-05/0.07714, allocations: 28.66 kB / 397.8 MB, free: 13.68 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002285/0.07738, allocations: 247.5 kB / 398.1 MB, free: 13.4 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.133e-05/0.0774, allocations: 12.38 kB / 398.1 MB, free: 13.39 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.421e-05/0.07744, allocations: 20 kB / 398.1 MB, free: 13.37 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003421/0.07778, allocations: 214.6 kB / 398.3 MB, free: 13.14 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.123e-05/0.07781, allocations: 4 kB / 398.3 MB, free: 13.14 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.915e-05/0.07783, allocations: 8 kB / 398.3 MB, free: 13.13 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.113e-06/0.07784, allocations: 8 kB / 398.3 MB, free: 13.12 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002579/0.0781, allocations: 139.3 kB / 398.5 MB, free: 12.99 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001198/0.07931, allocations: 1.118 MB / 399.6 MB, free: 11.73 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002702/0.07959, allocations: 138.6 kB / 399.7 MB, free: 11.59 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001026/0.0797, allocations: 56.83 kB / 399.8 MB, free: 11.53 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002311/0.07994, allocations: 340.6 kB / 400.1 MB, free: 11.12 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.69e-05/0.07997, allocations: 30.56 kB / 400.1 MB, free: 11.09 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.283e-06/0.07998, allocations: 0 / 400.1 MB, free: 11.09 MB / 302.1 MB Notification: Performance of matching and sorting (n=18): time 0.001477/0.08146, allocations: 0.6634 MB / 400.8 MB, free: 10.37 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.729e-05/0.0815, allocations: 63.34 kB / 400.9 MB, free: 10.3 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001763/0.08168, allocations: 211.2 kB / 401.1 MB, free: 10.08 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.574e-05/0.08171, allocations: 37.7 kB / 401.1 MB, free: 10.04 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.95e-05/0.08179, allocations: 140.3 kB / 401.2 MB, free: 9.898 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.94e-05/0.08183, allocations: 59.11 kB / 401.3 MB, free: 9.84 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.253e-05/0.0819, allocations: 37.7 kB / 401.3 MB, free: 9.797 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.655e-05/0.082, allocations: 330.8 kB / 401.7 MB, free: 9.465 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001259/0.08213, allocations: 64.77 kB / 401.7 MB, free: 9.398 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001458/0.08229, allocations: 106 kB / 401.8 MB, free: 9.273 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002667/0.08256, allocations: 177.7 kB / 402 MB, free: 9.082 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.162e-06/0.08257, allocations: 0 / 402 MB, free: 9.082 MB / 302.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003529/0.08293, allocations: 217.2 kB / 402.2 MB, free: 8.863 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.195e-05/0.08295, allocations: 4 kB / 402.2 MB, free: 8.859 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.26e-06/0.08296, allocations: 4 kB / 402.2 MB, free: 8.855 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.252e-05/0.08298, allocations: 4 kB / 402.2 MB, free: 8.852 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002286/0.08321, allocations: 64.06 kB / 402.3 MB, free: 8.789 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.903e-06/0.08323, allocations: 3.984 kB / 402.3 MB, free: 8.785 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001239/0.08336, allocations: 11.94 kB / 402.3 MB, free: 8.773 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.505e-05/0.08338, allocations: 8.047 kB / 402.3 MB, free: 8.766 MB / 302.1 MB Warning: Assuming fixed start value for the following 1 variables: idealPump.phi:VARIABLE(unit = "rad" fixed = true ) "Angle of rotation of pump" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * 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 initialization (22): * Single equations (assignments): 22 * 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.0001404/0.08353, allocations: 141.8 kB / 402.4 MB, free: 8.617 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.424e-05/0.08358, allocations: 19.81 kB / 402.5 MB, free: 8.598 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003999/0.08398, allocations: 219.3 kB / 402.7 MB, free: 8.379 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.355e-06/0.08399, allocations: 0 / 402.7 MB, free: 8.379 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.396e-06/0.084, allocations: 4 kB / 402.7 MB, free: 8.375 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.448e-06/0.08401, allocations: 7.875 kB / 402.7 MB, free: 8.367 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006555/0.08467, allocations: 0.5451 MB / 403.2 MB, free: 7.766 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.08469, allocations: 0 / 403.2 MB, free: 7.766 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000244/0.08494, allocations: 59.91 kB / 403.3 MB, free: 7.707 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.864e-06/0.08495, allocations: 0 / 403.3 MB, free: 7.707 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.637e-05/0.08497, allocations: 11.92 kB / 403.3 MB, free: 7.695 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.825e-06/0.08498, allocations: 4 kB / 403.3 MB, free: 7.691 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.52e-07/0.08498, allocations: 0 / 403.3 MB, free: 7.691 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004731/0.08546, allocations: 354.6 kB / 403.7 MB, free: 7.332 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.996e-05/0.08556, allocations: 112.9 kB / 403.8 MB, free: 7.203 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.58e-05/0.0856, allocations: 4 kB / 403.8 MB, free: 7.199 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001452/0.08575, allocations: 7.984 kB / 403.8 MB, free: 7.191 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.126e-05/0.0858, allocations: 19.92 kB / 403.8 MB, free: 7.172 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.101e-05/0.08582, allocations: 4 kB / 403.8 MB, free: 7.168 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001302/0.08595, allocations: 171.1 kB / 404 MB, free: 7 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.08596, allocations: 0 / 404 MB, free: 7 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003189/0.08628, allocations: 91.94 kB / 404.1 MB, free: 6.91 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (idealPump.phi,circuitTank.volumeOpen.m) * 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 (20): * Single equations (assignments): 20 * 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.000806/0.08709, allocations: 0.9464 MB / 405 MB, free: 5.934 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003358/0.08744, allocations: 160 kB / 405.2 MB, free: 5.777 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.834e-06/0.08745, allocations: 0 / 405.2 MB, free: 5.777 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001315/0.08759, allocations: 75.84 kB / 405.2 MB, free: 5.703 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003663/0.08796, allocations: 60.52 kB / 405.3 MB, free: 5.645 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002739/0.09071, allocations: 2.633 MB / 407.9 MB, free: 2.906 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002693/0.09099, allocations: 0.7519 MB / 408.7 MB, free: 2.129 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001207/0.09112, allocations: 34.2 kB / 408.7 MB, free: 2.098 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001037/0.09123, allocations: 67.41 kB / 408.8 MB, free: 2.031 MB / 302.1 MB Notification: Performance of SimCode: time 2.4e-07/0.09124, allocations: 0 / 408.8 MB, free: 2.031 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01665/0.1079, allocations: 5.931 MB / 414.7 MB, free: 12.14 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002141/0.1081, allocations: 204.7 kB / 414.9 MB, free: 11.88 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.744/1.852, allocations: 4 kB / 414.9 MB, free: 11.88 MB / 318.1 MB (rm -f OpenHydraulics_OpenHydraulics.DevelopmentTests.WallFrictionTest.pipe ; mkfifo OpenHydraulics_OpenHydraulics.DevelopmentTests.WallFrictionTest.pipe ; head -c 1048576 < OpenHydraulics_OpenHydraulics.DevelopmentTests.WallFrictionTest.pipe >> ../files/OpenHydraulics_OpenHydraulics.DevelopmentTests.WallFrictionTest.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_OpenHydraulics_OpenHydraulics_DevelopmentTests_WallFrictionTest_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-08 OpenHydraulics_OpenHydraulics_DevelopmentTests_WallFrictionTest.fmu > OpenHydraulics_OpenHydraulics.DevelopmentTests.WallFrictionTest.pipe 2>&1)