Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenHydraulics_OpenHydraulics.DevelopmentTests.ShuttleValveTest.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.ShuttleValveTest,fileNamePrefix="OpenHydraulics_OpenHydraulics_DevelopmentTests_ShuttleValveTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenHydraulics.DevelopmentTests.ShuttleValveTest,fileNamePrefix="OpenHydraulics_OpenHydraulics_DevelopmentTests_ShuttleValveTest",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.0008306/0.0008307, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.004783/0.004783, allocations: 169.6 kB / 16.26 MB, free: 6.676 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.135/1.135, allocations: 205.4 MB / 222.4 MB, free: 5.562 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenHydraulics 1.0.0-master/package.mo): time 0.0488/0.0488, allocations: 11.85 MB / 282.6 MB, free: 9.359 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.0005249/0.0005249, allocations: 16.22 kB / 343.6 MB, free: 22.02 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06446/0.06499, allocations: 50.22 MB / 393.9 MB, free: 3.75 MB / 286.1 MB Notification: Performance of NFInst.instantiate(OpenHydraulics.DevelopmentTests.ShuttleValveTest): time 0.002706/0.06771, allocations: 2.985 MB / 396.8 MB, free: 0.7461 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002549/0.07027, allocations: 2.096 MB / 398.9 MB, free: 14.64 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000167/0.07045, allocations: 4 kB / 398.9 MB, free: 14.64 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001875/0.07065, allocations: 47.73 kB / 399 MB, free: 14.59 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000222/0.07088, allocations: 95.22 kB / 399.1 MB, free: 14.5 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006336/0.07152, allocations: 291.1 kB / 399.4 MB, free: 14.21 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002768/0.07181, allocations: 294.4 kB / 399.6 MB, free: 13.92 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001447/0.07196, allocations: 90.34 kB / 399.7 MB, free: 13.83 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001432/0.07211, allocations: 95.59 kB / 399.8 MB, free: 13.74 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001391/0.07225, allocations: 111.4 kB / 399.9 MB, free: 13.63 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.398e-05/0.07229, allocations: 8 kB / 399.9 MB, free: 13.62 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002936/0.07259, allocations: 179.8 kB / 400.1 MB, free: 13.45 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 3.216e-05/0.07263, allocations: 39.77 kB / 400.2 MB, free: 13.41 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001099/0.07275, allocations: 141.1 kB / 400.3 MB, free: 13.26 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003551/0.07311, allocations: 346.9 kB / 400.6 MB, free: 12.92 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.274e-06/0.07312, allocations: 0 / 400.6 MB, free: 12.92 MB / 302.1 MB Notification: Performance of FrontEnd: time 6.51e-07/0.07312, allocations: 0 / 400.6 MB, free: 12.92 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.278e-06/0.07313, allocations: 4 kB / 400.6 MB, free: 12.92 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: 42 * Number of variables: 42 Notification: Performance of Generate backend data structure: time 0.0005735/0.07371, allocations: 0.5179 MB / 401.2 MB, free: 12.35 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.861e-05/0.07376, allocations: 8.031 kB / 401.2 MB, free: 12.34 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.553e-05/0.07381, allocations: 46.73 kB / 401.2 MB, free: 12.29 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.2e-05/0.07386, allocations: 32.56 kB / 401.2 MB, free: 12.26 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002335/0.0741, allocations: 255.7 kB / 401.5 MB, free: 11.97 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.528e-05/0.07412, allocations: 16.38 kB / 401.5 MB, free: 11.95 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.401e-05/0.07415, allocations: 19.94 kB / 401.5 MB, free: 11.93 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003425/0.0745, allocations: 211.9 kB / 401.7 MB, free: 11.71 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.735e-06/0.07451, allocations: 4 kB / 401.7 MB, free: 11.71 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.884e-05/0.07454, allocations: 11.98 kB / 401.8 MB, free: 11.7 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.502e-06/0.07455, allocations: 4 kB / 401.8 MB, free: 11.69 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000318/0.07487, allocations: 163.8 kB / 401.9 MB, free: 11.53 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001201/0.07608, allocations: 1.227 MB / 403.1 MB, free: 10.14 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000339/0.07643, allocations: 114.6 kB / 403.3 MB, free: 10.02 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001204/0.07656, allocations: 48.84 kB / 403.3 MB, free: 9.969 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.878e-05/0.07664, allocations: 85.09 kB / 403.4 MB, free: 9.867 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.184e-05/0.07667, allocations: 42.44 kB / 403.4 MB, free: 9.816 MB / 302.1 MB Notification: Performance of pre-optimization done (n=8): time 1.042e-06/0.07668, allocations: 0 / 403.4 MB, free: 9.816 MB / 302.1 MB Notification: Performance of matching and sorting (n=11): time 0.00212/0.0788, allocations: 0.6292 MB / 404.1 MB, free: 9.18 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.853e-05/0.07884, allocations: 55.41 kB / 404.1 MB, free: 9.113 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 sine1.freqHz has no value, and is fixed during initialization (fixed=true), using available start value (start=1.0) as default value. [/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.0002684/0.07912, allocations: 262.6 kB / 404.4 MB, free: 8.848 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.921e-05/0.07914, allocations: 29.7 kB / 404.4 MB, free: 8.812 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.395e-05/0.07923, allocations: 163.9 kB / 404.6 MB, free: 8.648 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.83e-05/0.07928, allocations: 43.45 kB / 404.6 MB, free: 8.605 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.092e-05/0.07931, allocations: 17.72 kB / 404.6 MB, free: 8.582 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001008/0.07942, allocations: 334.8 kB / 404.9 MB, free: 8.246 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001873/0.07961, allocations: 75.95 kB / 405 MB, free: 8.172 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000201/0.07982, allocations: 112.2 kB / 405.1 MB, free: 8.047 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003756/0.0802, allocations: 192.2 kB / 405.3 MB, free: 7.844 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.41e-07/0.08021, allocations: 0 / 405.3 MB, free: 7.844 MB / 302.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0004783/0.08069, allocations: 249.1 kB / 405.6 MB, free: 7.598 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.158e-05/0.08072, allocations: 4 kB / 405.6 MB, free: 7.594 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.751e-06/0.08073, allocations: 4 kB / 405.6 MB, free: 7.59 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.428e-06/0.08074, allocations: 128 / 405.6 MB, free: 7.59 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001813/0.08093, allocations: 51.91 kB / 405.6 MB, free: 7.539 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.193e-06/0.08094, allocations: 4.938 kB / 405.6 MB, free: 7.535 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001513/0.0811, allocations: 27.88 kB / 405.6 MB, free: 7.508 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.546e-05/0.08112, allocations: 12 kB / 405.7 MB, free: 7.496 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (18): * Single equations (assignments): 18 * 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.0001051/0.08123, allocations: 141.7 kB / 405.8 MB, free: 7.348 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.173e-05/0.08128, allocations: 23.72 kB / 405.8 MB, free: 7.324 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000464/0.08175, allocations: 215.2 kB / 406 MB, free: 7.109 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.557e-06/0.08176, allocations: 4 kB / 406 MB, free: 7.105 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.136e-06/0.08177, allocations: 0 / 406 MB, free: 7.105 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.765e-06/0.08178, allocations: 0 / 406 MB, free: 7.105 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002615/0.08204, allocations: 285.4 kB / 406.3 MB, free: 6.777 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-06/0.08205, allocations: 0 / 406.3 MB, free: 6.777 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001561/0.08221, allocations: 35.97 kB / 406.3 MB, free: 6.742 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.607e-06/0.08222, allocations: 4 kB / 406.4 MB, free: 6.738 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.389e-05/0.08224, allocations: 3.984 kB / 406.4 MB, free: 6.734 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.373e-06/0.08225, allocations: 3.938 kB / 406.4 MB, free: 6.73 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/0.08225, allocations: 3.984 kB / 406.4 MB, free: 6.727 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004413/0.0827, allocations: 303.1 kB / 406.7 MB, free: 6.414 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.078e-05/0.0828, allocations: 108.9 kB / 406.8 MB, free: 6.289 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.858e-05/0.08283, allocations: 4 kB / 406.8 MB, free: 6.285 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001564/0.083, allocations: 23.92 kB / 406.8 MB, free: 6.262 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.648e-05/0.08304, allocations: 7.984 kB / 406.8 MB, free: 6.254 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.147e-05/0.08306, allocations: 7.984 kB / 406.8 MB, free: 6.246 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001524/0.08321, allocations: 186 kB / 407 MB, free: 6.066 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.08322, allocations: 0 / 407 MB, free: 6.066 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003191/0.08354, allocations: 83.98 kB / 407.1 MB, free: 5.984 MB / 302.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 (11): * Single equations (assignments): 11 * 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.0008161/0.08437, allocations: 0.8996 MB / 408 MB, free: 5.059 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004187/0.08479, allocations: 175.8 kB / 408.1 MB, free: 4.887 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/0.08481, allocations: 256 / 408.1 MB, free: 4.887 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001822/0.08499, allocations: 79.89 kB / 408.2 MB, free: 4.809 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003701/0.08537, allocations: 60.52 kB / 408.3 MB, free: 4.746 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002966/0.08835, allocations: 2.587 MB / 410.9 MB, free: 2.055 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002594/0.08862, allocations: 0.7482 MB / 411.6 MB, free: 1.277 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001165/0.08874, allocations: 25.95 kB / 411.6 MB, free: 1.254 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001064/0.08885, allocations: 75.41 kB / 411.7 MB, free: 1.18 MB / 302.1 MB Notification: Performance of SimCode: time 2.31e-07/0.08886, allocations: 3.938 kB / 411.7 MB, free: 1.176 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01426/0.1031, allocations: 5.743 MB / 417.5 MB, free: 11.49 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001831/0.1033, allocations: 203.3 kB / 417.7 MB, free: 11.23 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.542/1.645, allocations: 4.062 kB / 417.7 MB, free: 11.23 MB / 318.1 MB (rm -f OpenHydraulics_OpenHydraulics.DevelopmentTests.ShuttleValveTest.pipe ; mkfifo OpenHydraulics_OpenHydraulics.DevelopmentTests.ShuttleValveTest.pipe ; head -c 1048576 < OpenHydraulics_OpenHydraulics.DevelopmentTests.ShuttleValveTest.pipe >> ../files/OpenHydraulics_OpenHydraulics.DevelopmentTests.ShuttleValveTest.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_OpenHydraulics_OpenHydraulics_DevelopmentTests_ShuttleValveTest_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 OpenHydraulics_OpenHydraulics_DevelopmentTests_ShuttleValveTest.fmu > OpenHydraulics_OpenHydraulics.DevelopmentTests.ShuttleValveTest.pipe 2>&1)