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.001163/0.001163, allocations: 108 kB / 15.6 MB, free: 132 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.001325/0.001325, allocations: 193.9 kB / 16.53 MB, free: 6.391 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.365/1.365, allocations: 205.1 MB / 222.4 MB, free: 4.59 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenHydraulics 1.0.0-master/package.mo): time 0.05106/0.05106, allocations: 11.85 MB / 281.6 MB, free: 9.445 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.001416/0.001416, allocations: 76.25 kB / 341.9 MB, free: 21.91 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06676/0.06819, allocations: 49.23 MB / 391.2 MB, free: 4.621 MB / 286.1 MB Notification: Performance of NFInst.instantiate(OpenHydraulics.DevelopmentTests.ThrottleValveTest2): time 0.00398/0.0722, allocations: 2.815 MB / 394 MB, free: 1.781 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003299/0.07553, allocations: 2.267 MB / 396.2 MB, free: 15.51 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000213/0.07577, allocations: 4 kB / 396.2 MB, free: 15.5 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003948/0.07619, allocations: 95.38 kB / 396.3 MB, free: 15.41 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.0005435/0.07675, allocations: 178.8 kB / 396.5 MB, free: 15.23 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001006/0.07777, allocations: 458 kB / 397 MB, free: 14.79 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004517/0.07823, allocations: 374.2 kB / 397.3 MB, free: 14.42 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001525/0.0784, allocations: 60.66 kB / 397.4 MB, free: 14.36 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000208/0.07861, allocations: 127.5 kB / 397.5 MB, free: 14.24 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002337/0.07886, allocations: 159.2 kB / 397.7 MB, free: 14.08 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.489e-05/0.07891, allocations: 20 kB / 397.7 MB, free: 14.06 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005052/0.07943, allocations: 279.8 kB / 398 MB, free: 13.79 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.593e-05/0.07953, allocations: 63.7 kB / 398 MB, free: 13.73 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001507/0.07969, allocations: 155.1 kB / 398.2 MB, free: 13.57 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006731/0.08037, allocations: 0.4947 MB / 398.7 MB, free: 13.08 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.156e-06/0.08039, allocations: 4 kB / 398.7 MB, free: 13.07 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.113e-06/0.0804, allocations: 0 / 398.7 MB, free: 13.07 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.712e-06/0.08041, 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.000895/0.08131, allocations: 0.6349 MB / 399.3 MB, free: 12.39 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.99e-05/0.08136, allocations: 15.89 kB / 399.3 MB, free: 12.38 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.765e-05/0.08142, allocations: 50.73 kB / 399.4 MB, free: 12.32 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.321e-05/0.08151, allocations: 36.47 kB / 399.4 MB, free: 12.28 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003483/0.08186, allocations: 303.2 kB / 399.7 MB, free: 11.95 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.7e-05/0.0819, allocations: 20.44 kB / 399.7 MB, free: 11.93 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.409e-05/0.08194, allocations: 23.94 kB / 399.7 MB, free: 11.9 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004401/0.08239, allocations: 227.2 kB / 400 MB, free: 11.68 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.079e-05/0.08241, allocations: 0 / 400 MB, free: 11.68 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.548e-05/0.08244, allocations: 12 kB / 400 MB, free: 11.66 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.213e-05/0.08246, allocations: 4 kB / 400 MB, free: 11.66 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000473/0.08294, allocations: 249.6 kB / 400.2 MB, free: 11.42 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001711/0.08466, allocations: 1.321 MB / 401.5 MB, free: 9.902 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004299/0.0851, allocations: 170.8 kB / 401.7 MB, free: 9.727 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001741/0.08529, allocations: 80.83 kB / 401.8 MB, free: 9.645 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001742/0.08548, allocations: 170.2 kB / 402 MB, free: 9.441 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.106e-05/0.08551, allocations: 38.5 kB / 402 MB, free: 9.395 MB / 302.1 MB Notification: Performance of pre-optimization done (n=18): time 1.422e-06/0.08552, allocations: 0 / 402 MB, free: 9.395 MB / 302.1 MB Notification: Performance of matching and sorting (n=31): time 0.03022/0.1157, allocations: 2.726 MB / 404.7 MB, free: 6.633 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.419e-05/0.1158, allocations: 59.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.0005353/0.1164, allocations: 349.6 kB / 405.1 MB, free: 6.211 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.098e-05/0.1164, allocations: 33.7 kB / 405.2 MB, free: 6.172 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001249/0.1166, allocations: 184.6 kB / 405.3 MB, free: 5.984 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001103/0.1167, allocations: 102.5 kB / 405.4 MB, free: 5.883 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001987/0.1169, allocations: 81.56 kB / 405.5 MB, free: 5.797 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001197/0.117, allocations: 346.8 kB / 405.9 MB, free: 5.449 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009784/0.118, allocations: 283.8 kB / 406.1 MB, free: 5.172 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009369/0.119, allocations: 330.2 kB / 406.5 MB, free: 4.84 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001911/0.1209, allocations: 0.5764 MB / 407 MB, free: 4.254 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.176e-06/0.1209, allocations: 0 / 407 MB, free: 4.254 MB / 302.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.003133/0.124, allocations: 0.8967 MB / 407.9 MB, free: 3.344 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.105e-05/0.1241, allocations: 4 kB / 407.9 MB, free: 3.34 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.043e-05/0.1241, allocations: 0 / 407.9 MB, free: 3.34 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002459/0.1266, allocations: 1.04 MB / 409 MB, free: 2.293 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003203/0.1269, allocations: 59.89 kB / 409 MB, free: 2.234 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005976/0.1329, allocations: 1.815 MB / 410.8 MB, free: 376 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00068/0.1336, allocations: 43.97 kB / 410.9 MB, free: 332 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.785e-05/0.1337, allocations: 19.98 kB / 410.9 MB, free: 312 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.0002537/0.1339, allocations: 153.8 kB / 411.1 MB, free: 148 kB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001338/0.1341, allocations: 31.75 kB / 411.1 MB, free: 116 kB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003859/0.138, allocations: 1.005 MB / 412.1 MB, free: 15.1 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.702e-06/0.138, allocations: 4 kB / 412.1 MB, free: 15.09 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.11e-06/0.138, allocations: 0 / 412.1 MB, free: 15.09 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.44e-06/0.138, allocations: 0 / 412.1 MB, free: 15.09 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006052/0.1441, allocations: 1.853 MB / 414 MB, free: 13.17 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.807e-06/0.1441, allocations: 0 / 414 MB, free: 13.17 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002546/0.1443, allocations: 51.97 kB / 414 MB, free: 13.12 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001977/0.1463, allocations: 0.8641 MB / 414.9 MB, free: 12.25 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.364e-05/0.1464, allocations: 19.98 kB / 414.9 MB, free: 12.23 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005275/0.1517, allocations: 1.753 MB / 416.6 MB, free: 10.42 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.1517, allocations: 0 / 416.6 MB, free: 10.42 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002624/0.1543, allocations: 0.8656 MB / 417.5 MB, free: 9.527 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002464/0.1546, allocations: 172.5 kB / 417.7 MB, free: 9.34 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001125/0.1547, allocations: 8 kB / 417.7 MB, free: 9.332 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006305/0.1553, allocations: 43.95 kB / 417.7 MB, free: 9.289 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.848e-05/0.1554, allocations: 23.91 kB / 417.7 MB, free: 9.266 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.188e-05/0.1555, allocations: 19.98 kB / 417.8 MB, free: 9.246 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002814/0.1558, allocations: 251.2 kB / 418 MB, free: 9.004 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.943e-06/0.1558, allocations: 0 / 418 MB, free: 9.004 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0007559/0.1565, allocations: 235.8 kB / 418.2 MB, free: 8.773 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.004292/0.1608, allocations: 1.835 MB / 420.1 MB, free: 7.012 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.005218/0.1661, allocations: 0.781 MB / 420.9 MB, free: 6.23 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/0.1661, allocations: 0 / 420.9 MB, free: 6.23 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003803/0.1699, allocations: 483.7 kB / 421.3 MB, free: 5.758 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006547/0.1706, allocations: 93.94 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.01068/0.1813, allocations: 4.777 MB / 426.2 MB, free: 0.7773 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1304/0.3117, allocations: 0.7801 MB / 427 MB, free: 41.67 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002701/0.312, allocations: 47.48 kB / 427 MB, free: 41.67 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001537/0.3121, allocations: 110 kB / 427.1 MB, free: 41.66 MB / 318.1 MB Notification: Performance of SimCode: time 1.102e-06/0.3121, allocations: 0 / 427.1 MB, free: 41.66 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.013/3.325, allocations: 18.39 MB / 445.5 MB, free: 34.57 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.16/18.48, allocations: 15.03 kB / 445.5 MB, free: 34.56 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 & /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)