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.006381/0.006381, allocations: 101.9 kB / 15.73 MB, free: 6.031 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.001194/0.001194, allocations: 197.2 kB / 16.67 MB, free: 5.969 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.299/1.299, allocations: 205.1 MB / 222.6 MB, free: 4.383 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenHydraulics 1.0.0-master/package.mo): time 0.05273/0.05273, allocations: 11.83 MB / 281.7 MB, free: 9.246 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.001665/0.001665, allocations: 75.91 kB / 391.8 MB, free: 11.38 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08229/0.08396, allocations: 49.22 MB / 441.1 MB, free: 10.09 MB / 382.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. [/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) as default value. Notification: Performance of NFInst.instantiate(OpenHydraulics.DevelopmentTests.ShuttleValveTest): time 0.003749/0.08775, allocations: 2.614 MB / 443.7 MB, free: 7.453 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002701/0.09047, allocations: 1.975 MB / 445.7 MB, free: 5.469 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002244/0.09072, allocations: 7.938 kB / 445.7 MB, free: 5.461 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002833/0.09101, allocations: 51.55 kB / 445.7 MB, free: 5.41 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003385/0.09136, allocations: 111 kB / 445.8 MB, free: 5.301 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001021/0.09239, allocations: 374.6 kB / 446.2 MB, free: 4.934 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004166/0.09282, allocations: 314.3 kB / 446.5 MB, free: 4.625 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002056/0.09304, allocations: 86.25 kB / 446.6 MB, free: 4.539 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002273/0.09327, allocations: 115.6 kB / 446.7 MB, free: 4.426 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002157/0.0935, allocations: 119.4 kB / 446.8 MB, free: 4.309 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.31e-05/0.09355, allocations: 23.94 kB / 446.8 MB, free: 4.285 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003741/0.09393, allocations: 187.8 kB / 447 MB, free: 4.102 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 4.609e-05/0.09399, allocations: 47.78 kB / 447.1 MB, free: 4.055 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001374/0.09413, allocations: 131.3 kB / 447.2 MB, free: 3.926 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004941/0.09463, allocations: 359 kB / 447.5 MB, free: 3.574 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.667e-06/0.09465, allocations: 0 / 447.5 MB, free: 3.574 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.09466, allocations: 4 kB / 447.5 MB, free: 3.57 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.327e-05/0.09468, allocations: 0 / 447.5 MB, free: 3.57 MB / 382.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.0007441/0.09543, allocations: 0.5451 MB / 448.1 MB, free: 2.977 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.99e-05/0.09547, allocations: 15.89 kB / 448.1 MB, free: 2.961 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.955e-05/0.09553, allocations: 54.67 kB / 448.2 MB, free: 2.898 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.805e-05/0.09559, allocations: 32.64 kB / 448.2 MB, free: 2.867 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002856/0.09589, allocations: 259.6 kB / 448.4 MB, free: 2.574 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.718e-05/0.09592, allocations: 20.38 kB / 448.5 MB, free: 2.555 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.617e-05/0.09595, allocations: 19.94 kB / 448.5 MB, free: 2.535 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003821/0.09634, allocations: 215.6 kB / 448.7 MB, free: 2.309 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.055e-05/0.09636, allocations: 4 kB / 448.7 MB, free: 2.305 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.676e-05/0.09638, allocations: 4 kB / 448.7 MB, free: 2.301 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.363e-06/0.09639, allocations: 4 kB / 448.7 MB, free: 2.297 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003308/0.09673, allocations: 167.8 kB / 448.9 MB, free: 2.133 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00129/0.09803, allocations: 1.2 MB / 450.1 MB, free: 0.7695 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003593/0.0984, allocations: 110.5 kB / 450.2 MB, free: 0.6523 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001143/0.09853, allocations: 44.84 kB / 450.2 MB, free: 0.6055 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.048e-05/0.09862, allocations: 89.23 kB / 450.3 MB, free: 0.5 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.229e-05/0.09865, allocations: 34.5 kB / 450.3 MB, free: 468 kB / 382.1 MB Notification: Performance of pre-optimization done (n=8): time 1.162e-06/0.09865, allocations: 4 kB / 450.3 MB, free: 464 kB / 382.1 MB Notification: Performance of matching and sorting (n=11): time 0.1615/0.2601, allocations: 0.5081 MB / 450.9 MB, free: 42.59 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.64e-05/0.2602, allocations: 51.41 kB / 450.9 MB, free: 42.53 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002256/0.2604, allocations: 252.9 kB / 451.2 MB, free: 42.43 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.514e-05/0.2604, allocations: 29.2 kB / 451.2 MB, free: 42.4 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.996e-05/0.2605, allocations: 169.1 kB / 451.3 MB, free: 42.32 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.839e-05/0.2606, allocations: 34.05 kB / 451.4 MB, free: 42.32 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.456e-05/0.2606, allocations: 49.25 kB / 451.4 MB, free: 42.3 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.792e-05/0.2607, allocations: 329.3 kB / 451.7 MB, free: 41.99 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000171/0.2609, allocations: 67.64 kB / 451.8 MB, free: 41.99 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001763/0.261, allocations: 103.5 kB / 451.9 MB, free: 41.95 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000335/0.2614, allocations: 169.2 kB / 452.1 MB, free: 41.91 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.383e-06/0.2614, allocations: 0 / 452.1 MB, free: 41.91 MB / 382.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0004436/0.2618, allocations: 225.3 kB / 452.3 MB, free: 41.88 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.516e-05/0.2619, allocations: 6.344 kB / 452.3 MB, free: 41.88 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.931e-06/0.2619, allocations: 3.75 kB / 452.3 MB, free: 41.88 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.664e-05/0.2619, allocations: 5.406 kB / 452.3 MB, free: 41.88 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001888/0.2621, allocations: 49.73 kB / 452.4 MB, free: 41.88 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.342e-06/0.2621, allocations: 3.906 kB / 452.4 MB, free: 41.88 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001418/0.2623, allocations: 19.69 kB / 452.4 MB, free: 41.88 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.472e-05/0.2623, allocations: 6.625 kB / 452.4 MB, free: 41.88 MB / 382.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 7.822e-05/0.2624, allocations: 135.2 kB / 452.5 MB, free: 41.76 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.058e-05/0.2624, allocations: 25.38 kB / 452.5 MB, free: 41.75 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004374/0.2629, allocations: 198.5 kB / 452.7 MB, free: 41.71 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.176e-06/0.2629, allocations: 0 / 452.7 MB, free: 41.71 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.838e-06/0.2629, allocations: 0 / 452.7 MB, free: 41.71 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.478e-06/0.2629, allocations: 2.906 kB / 452.7 MB, free: 41.71 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000211/0.2631, allocations: 276.9 kB / 453 MB, free: 41.53 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.2631, allocations: 3 kB / 453 MB, free: 41.53 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001451/0.2633, allocations: 31.56 kB / 453.1 MB, free: 41.53 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.955e-06/0.2633, allocations: 7.906 kB / 453.1 MB, free: 41.52 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.365e-05/0.2633, allocations: 9.734 kB / 453.1 MB, free: 41.52 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.352e-06/0.2633, allocations: 0 / 453.1 MB, free: 41.52 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.2633, allocations: 3.25 kB / 453.1 MB, free: 41.52 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000378/0.2637, allocations: 270.3 kB / 453.3 MB, free: 41.38 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.032e-05/0.2638, allocations: 115 kB / 453.4 MB, free: 41.28 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.941e-05/0.2638, allocations: 6.938 kB / 453.5 MB, free: 41.27 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001444/0.2639, allocations: 12.52 kB / 453.5 MB, free: 41.27 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.559e-05/0.264, allocations: 12.5 kB / 453.5 MB, free: 41.27 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.003e-05/0.264, allocations: 3.125 kB / 453.5 MB, free: 41.27 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001142/0.2641, allocations: 183.7 kB / 453.7 MB, free: 41.2 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.2641, allocations: 0 / 453.7 MB, free: 41.2 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003468/0.2645, allocations: 87.97 kB / 453.7 MB, free: 41.2 MB / 382.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.0006645/0.2652, allocations: 0.8775 MB / 454.6 MB, free: 40.53 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0003927/0.2656, allocations: 161 kB / 454.8 MB, free: 40.53 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.953e-06/0.2656, allocations: 0 / 454.8 MB, free: 40.53 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001629/0.2657, allocations: 69.33 kB / 454.8 MB, free: 40.53 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003763/0.2661, allocations: 64.03 kB / 454.9 MB, free: 40.53 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002492/0.2686, allocations: 2.424 MB / 457.3 MB, free: 38.98 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00013/0.2688, allocations: 0.7424 MB / 458.1 MB, free: 38.28 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001132/0.2689, allocations: 35.02 kB / 458.1 MB, free: 38.27 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.282e-05/0.269, allocations: 74.17 kB / 458.2 MB, free: 38.21 MB / 382.1 MB Notification: Performance of SimCode: time 2.11e-07/0.269, allocations: 0 / 458.2 MB, free: 38.21 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0279/0.2969, allocations: 6.307 MB / 464.5 MB, free: 37.43 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.609/7.906, allocations: 3.938 kB / 464.5 MB, free: 37.43 MB / 382.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)