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: translateModel(OpenHydraulics.DevelopmentTests.ShuttleValveTest,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenHydraulics_OpenHydraulics.DevelopmentTests.ShuttleValveTest") translateModel(OpenHydraulics.DevelopmentTests.ShuttleValveTest,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenHydraulics_OpenHydraulics.DevelopmentTests.ShuttleValveTest") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00482/0.00482, allocations: 97.81 kB / 15.73 MB, free: 6.066 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.00133/0.00133, allocations: 197.4 kB / 16.67 MB, free: 5.973 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.445/1.445, allocations: 205.1 MB / 222.5 MB, free: 4.508 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenHydraulics 1.0.0-master/package.mo): time 0.05632/0.05632, allocations: 11.84 MB / 281.7 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.001655/0.001655, allocations: 67.91 kB / 392.3 MB, free: 3.48 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3778/0.3795, allocations: 49.22 MB / 441.6 MB, free: 4.398 MB / 318.1 MB Notification: Performance of NFInst.instantiate(OpenHydraulics.DevelopmentTests.ShuttleValveTest): time 0.003653/0.3832, allocations: 2.594 MB / 444.2 MB, free: 2.574 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002439/0.3857, allocations: 1.986 MB / 446.1 MB, free: 1.152 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001671/0.3858, allocations: 4.719 kB / 446.1 MB, free: 1.152 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002626/0.3861, allocations: 59.55 kB / 446.2 MB, free: 1.117 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003039/0.3864, allocations: 108.6 kB / 446.3 MB, free: 1.039 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00103/0.3875, allocations: 382.4 kB / 446.7 MB, free: 0.8633 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.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 sine1.freqHz has no value, and is fixed during initialization (fixed=true), using available start value (start=1.0) as default value. Notification: Performance of NFFlatten.flatten: time 0.0004028/0.3879, allocations: 306.6 kB / 447 MB, free: 0.707 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002041/0.3881, allocations: 95.3 kB / 447.1 MB, free: 0.6562 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001847/0.3883, allocations: 112.4 kB / 447.2 MB, free: 0.6055 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001916/0.3885, allocations: 122.9 kB / 447.3 MB, free: 0.543 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.882e-05/0.3885, allocations: 17.81 kB / 447.3 MB, free: 0.543 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004207/0.389, allocations: 188.6 kB / 447.5 MB, free: 0.5 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.641e-05/0.389, allocations: 47.94 kB / 447.6 MB, free: 476 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001326/0.3892, allocations: 130.4 kB / 447.7 MB, free: 400 kB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005477/0.3897, allocations: 359.8 kB / 448 MB, free: 260 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.3897, allocations: 0 / 448 MB, free: 260 kB / 318.1 MB Notification: Performance of FrontEnd: time 1.072e-06/0.3898, allocations: 0 / 448 MB, free: 260 kB / 318.1 MB Notification: Performance of Transformations before backend: time 6.652e-06/0.3898, allocations: 1.75 kB / 448 MB, free: 260 kB / 318.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.0007986/0.3906, allocations: 0.5682 MB / 448.6 MB, free: 15.75 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.174e-05/0.3906, allocations: 17.2 kB / 448.6 MB, free: 15.74 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.784e-05/0.3907, allocations: 26.89 kB / 448.6 MB, free: 15.73 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003798/0.3911, allocations: 263.2 kB / 448.9 MB, free: 15.46 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.802e-05/0.3911, allocations: 15.41 kB / 448.9 MB, free: 15.45 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.459e-05/0.3911, allocations: 18.31 kB / 448.9 MB, free: 15.44 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004476/0.3916, allocations: 214.6 kB / 449.1 MB, free: 15.29 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.339e-05/0.3916, allocations: 0.9375 kB / 449.1 MB, free: 15.29 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.358e-05/0.3916, allocations: 9.047 kB / 449.2 MB, free: 15.28 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.126e-05/0.3917, allocations: 9.109 kB / 449.2 MB, free: 15.28 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000353/0.392, allocations: 157.5 kB / 449.3 MB, free: 15.2 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001444/0.3935, allocations: 1.214 MB / 450.5 MB, free: 13.96 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003944/0.3939, allocations: 106.8 kB / 450.6 MB, free: 13.89 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001239/0.394, allocations: 51 kB / 450.7 MB, free: 13.86 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.749e-05/0.3941, allocations: 85.19 kB / 450.8 MB, free: 13.77 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.272e-05/0.3942, allocations: 35.81 kB / 450.8 MB, free: 13.72 MB / 334.1 MB Notification: Performance of pre-optimization done (n=8): time 1.373e-06/0.3942, allocations: 1.344 kB / 450.8 MB, free: 13.72 MB / 334.1 MB Notification: Performance of matching and sorting (n=11): time 0.002268/0.3964, allocations: 0.5157 MB / 451.3 MB, free: 13.46 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.464e-05/0.3965, allocations: 52.94 kB / 451.4 MB, free: 13.4 MB / 334.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.000333/0.3968, allocations: 270.9 kB / 451.6 MB, free: 13.21 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.03e-05/0.3969, allocations: 27.27 kB / 451.7 MB, free: 13.18 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001095/0.397, allocations: 160 kB / 451.8 MB, free: 13.03 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.614e-05/0.397, allocations: 40.52 kB / 451.9 MB, free: 13 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.828e-05/0.3971, allocations: 43.64 kB / 451.9 MB, free: 12.96 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001317/0.3973, allocations: 335 kB / 452.2 MB, free: 12.63 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001996/0.3975, allocations: 71.55 kB / 452.3 MB, free: 12.59 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002123/0.3977, allocations: 101.5 kB / 452.4 MB, free: 12.52 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004091/0.3981, allocations: 165 kB / 452.6 MB, free: 12.41 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.874e-06/0.3981, allocations: 1.375 kB / 452.6 MB, free: 12.41 MB / 334.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0005369/0.3987, allocations: 229.8 kB / 452.8 MB, free: 12.29 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.949e-05/0.3987, allocations: 5.5 kB / 452.8 MB, free: 12.29 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.056e-06/0.3987, allocations: 1.375 kB / 452.8 MB, free: 12.29 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.296e-05/0.3987, allocations: 2.75 kB / 452.8 MB, free: 12.29 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002182/0.399, allocations: 43.59 kB / 452.8 MB, free: 12.27 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.554e-06/0.399, allocations: 1.375 kB / 452.8 MB, free: 12.27 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001541/0.3991, allocations: 17.61 kB / 452.9 MB, free: 12.27 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.016e-05/0.3992, allocations: 13.55 kB / 452.9 MB, free: 12.26 MB / 334.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.0001261/0.3993, allocations: 139.3 kB / 453 MB, free: 12.12 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.077e-05/0.3994, allocations: 25.42 kB / 453 MB, free: 12.11 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005641/0.4, allocations: 194.9 kB / 453.2 MB, free: 11.98 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.977e-06/0.4, allocations: 1.375 kB / 453.2 MB, free: 11.98 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.42e-06/0.4, allocations: 5.375 kB / 453.2 MB, free: 11.98 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.256e-06/0.4, allocations: 0 / 453.2 MB, free: 11.98 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003534/0.4003, allocations: 283.5 kB / 453.5 MB, free: 11.7 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.4004, allocations: 1.031 kB / 453.5 MB, free: 11.7 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001691/0.4005, allocations: 29.38 kB / 453.5 MB, free: 11.69 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.397e-06/0.4005, allocations: 1.125 kB / 453.5 MB, free: 11.69 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.499e-05/0.4006, allocations: 1.438 kB / 453.5 MB, free: 11.69 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.126e-06/0.4006, allocations: 1.625 kB / 453.5 MB, free: 11.69 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.4006, allocations: 0 / 453.5 MB, free: 11.69 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000513/0.4011, allocations: 286.7 kB / 453.8 MB, free: 11.48 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001025/0.4012, allocations: 112.3 kB / 453.9 MB, free: 11.36 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.722e-05/0.4013, allocations: 5.062 kB / 453.9 MB, free: 11.35 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001597/0.4014, allocations: 10.55 kB / 453.9 MB, free: 11.35 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.03e-05/0.4015, allocations: 16.42 kB / 454 MB, free: 11.34 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.252e-05/0.4015, allocations: 6.719 kB / 454 MB, free: 11.33 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001939/0.4017, allocations: 189 kB / 454.1 MB, free: 11.2 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4017, allocations: 0 / 454.1 MB, free: 11.2 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004434/0.4022, allocations: 85.81 kB / 454.2 MB, free: 11.18 MB / 334.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.000317/0.4025, allocations: 164 kB / 454.4 MB, free: 11.06 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004884/0.403, allocations: 152.2 kB / 454.5 MB, free: 11 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.403, allocations: 1.094 kB / 454.5 MB, free: 11 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002054/0.4032, allocations: 72.55 kB / 454.6 MB, free: 10.97 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004419/0.4037, allocations: 62.56 kB / 454.7 MB, free: 10.93 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001042/0.4047, allocations: 473.8 kB / 455.1 MB, free: 10.61 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003396/0.4051, allocations: 0.739 MB / 455.9 MB, free: 9.883 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001396/0.4052, allocations: 34.08 kB / 455.9 MB, free: 9.863 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.786e-05/0.4053, allocations: 20.44 kB / 455.9 MB, free: 9.855 MB / 334.1 MB Notification: Performance of SimCode: time 2.3e-07/0.4053, allocations: 0 / 455.9 MB, free: 9.855 MB / 334.1 MB Notification: Performance of Templates: time 0.008415/0.4137, allocations: 3.808 MB / 459.7 MB, free: 7.941 MB / 334.1 MB make -j1 -f OpenHydraulics_OpenHydraulics.DevelopmentTests.ShuttleValveTest.makefile (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 & ./OpenHydraulics_OpenHydraulics.DevelopmentTests.ShuttleValveTest -abortSlowSimulation -alarm=480 -lv LOG_STATS > OpenHydraulics_OpenHydraulics.DevelopmentTests.ShuttleValveTest.pipe 2>&1)