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.00138/0.001381, allocations: 106.6 kB / 16.27 MB, free: 6.414 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.001382/0.001382, allocations: 190.3 kB / 17.2 MB, free: 5.953 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.279/1.279, allocations: 205.1 MB / 223.1 MB, free: 12.3 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenHydraulics 1.0.0-master/package.mo): time 0.05393/0.05393, allocations: 11.84 MB / 282.3 MB, free: 292 kB / 222.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.001681/0.001681, allocations: 80.38 kB / 342.5 MB, free: 3.926 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2321/0.2338, allocations: 49.21 MB / 391.7 MB, free: 49.12 MB / 318.1 MB Notification: Performance of NFInst.instantiate(OpenHydraulics.DevelopmentTests.ShuttleValveTest): time 0.003654/0.2375, allocations: 2.593 MB / 394.3 MB, free: 47.3 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002581/0.2401, allocations: 1.985 MB / 396.3 MB, free: 45.89 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001977/0.2403, allocations: 6.688 kB / 396.3 MB, free: 45.88 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002772/0.2406, allocations: 60.16 kB / 396.4 MB, free: 45.85 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002928/0.2409, allocations: 105.7 kB / 396.5 MB, free: 45.77 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009602/0.2419, allocations: 376.1 kB / 396.8 MB, free: 45.6 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003114/0.2422, allocations: 300.8 kB / 397.1 MB, free: 45.45 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001976/0.2424, allocations: 97.12 kB / 397.2 MB, free: 45.4 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001725/0.2426, allocations: 111.3 kB / 397.3 MB, free: 45.35 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000172/0.2428, allocations: 127.6 kB / 397.4 MB, free: 45.28 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.814e-05/0.2428, allocations: 18.88 kB / 397.5 MB, free: 45.28 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004064/0.2432, allocations: 187.5 kB / 397.6 MB, free: 45.24 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.288e-05/0.2433, allocations: 40.69 kB / 397.7 MB, free: 45.21 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001201/0.2434, allocations: 137.3 kB / 397.8 MB, free: 45.13 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000495/0.2439, allocations: 351.3 kB / 398.2 MB, free: 44.99 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.683e-06/0.2439, allocations: 5.531 kB / 398.2 MB, free: 44.99 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.482e-06/0.2439, allocations: 0 / 398.2 MB, free: 44.99 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.354e-06/0.2439, allocations: 4 kB / 398.2 MB, free: 44.98 MB / 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.0007086/0.2447, allocations: 0.5544 MB / 398.7 MB, free: 44.49 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.37e-05/0.2447, allocations: 13.31 kB / 398.7 MB, free: 44.49 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.82e-05/0.2448, allocations: 26.16 kB / 398.8 MB, free: 44.48 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002435/0.245, allocations: 264.7 kB / 399 MB, free: 44.22 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.443e-05/0.2451, allocations: 12.19 kB / 399 MB, free: 44.21 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.356e-05/0.2451, allocations: 25.69 kB / 399.1 MB, free: 44.2 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003753/0.2455, allocations: 214.2 kB / 399.3 MB, free: 44.08 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.176e-05/0.2455, allocations: 0 / 399.3 MB, free: 44.08 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.019e-05/0.2455, allocations: 7.094 kB / 399.3 MB, free: 44.08 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.844e-06/0.2455, allocations: 4.156 kB / 399.3 MB, free: 44.08 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003413/0.2459, allocations: 154.6 kB / 399.4 MB, free: 44.03 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001251/0.2471, allocations: 1.222 MB / 400.7 MB, free: 42.87 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003704/0.2475, allocations: 107.8 kB / 400.8 MB, free: 42.8 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001157/0.2476, allocations: 47.23 kB / 400.8 MB, free: 42.78 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.229e-05/0.2477, allocations: 85.5 kB / 400.9 MB, free: 42.68 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.867e-05/0.2478, allocations: 35.53 kB / 400.9 MB, free: 42.64 MB / 318.1 MB Notification: Performance of pre-optimization done (n=8): time 1.202e-06/0.2478, allocations: 0 / 400.9 MB, free: 42.64 MB / 318.1 MB Notification: Performance of matching and sorting (n=11): time 0.002156/0.2499, allocations: 0.5167 MB / 401.4 MB, free: 42.38 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.105e-05/0.25, allocations: 52.53 kB / 401.5 MB, free: 42.31 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 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.0003633/0.2503, allocations: 263 kB / 401.8 MB, free: 42.13 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.409e-05/0.2504, allocations: 26.86 kB / 401.8 MB, free: 42.1 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.701e-05/0.2504, allocations: 164.2 kB / 401.9 MB, free: 41.95 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.64e-05/0.2505, allocations: 40.94 kB / 402 MB, free: 41.91 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.26e-05/0.2505, allocations: 39.48 kB / 402 MB, free: 41.88 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.758e-05/0.2506, allocations: 330.8 kB / 402.3 MB, free: 41.55 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001837/0.2508, allocations: 67.14 kB / 402.4 MB, free: 41.52 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001891/0.251, allocations: 106.5 kB / 402.5 MB, free: 41.44 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003579/0.2514, allocations: 172.8 kB / 402.7 MB, free: 41.33 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.022e-06/0.2514, allocations: 0 / 402.7 MB, free: 41.33 MB / 318.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.000459/0.2518, allocations: 222 kB / 402.9 MB, free: 41.21 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.761e-05/0.2519, allocations: 6.75 kB / 402.9 MB, free: 41.21 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.293e-06/0.2519, allocations: 5.406 kB / 402.9 MB, free: 41.21 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.646e-05/0.2519, allocations: 1.062 kB / 402.9 MB, free: 41.21 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001967/0.2521, allocations: 47.23 kB / 403 MB, free: 41.19 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.435e-06/0.2521, allocations: 2.578 kB / 403 MB, free: 41.19 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001453/0.2523, allocations: 24.67 kB / 403 MB, free: 41.18 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.631e-05/0.2523, allocations: 6.062 kB / 403 MB, free: 41.18 MB / 318.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 8.782e-05/0.2524, allocations: 132.3 kB / 403.1 MB, free: 41.05 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.762e-05/0.2524, allocations: 25.52 kB / 403.1 MB, free: 41.03 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004687/0.2529, allocations: 194.9 kB / 403.3 MB, free: 40.91 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.909e-06/0.2529, allocations: 1.969 kB / 403.3 MB, free: 40.91 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.948e-06/0.2529, allocations: 3.938 kB / 403.3 MB, free: 40.91 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.348e-06/0.2529, allocations: 5.203 kB / 403.3 MB, free: 40.91 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002442/0.2532, allocations: 276.1 kB / 403.6 MB, free: 40.63 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.694e-06/0.2532, allocations: 3.984 kB / 403.6 MB, free: 40.63 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000156/0.2534, allocations: 29.94 kB / 403.6 MB, free: 40.62 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.885e-06/0.2534, allocations: 1.25 kB / 403.6 MB, free: 40.62 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.391e-05/0.2534, allocations: 1.031 kB / 403.6 MB, free: 40.62 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.264e-06/0.2534, allocations: 5.156 kB / 403.7 MB, free: 40.62 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.2534, allocations: 0 / 403.7 MB, free: 40.62 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004177/0.2538, allocations: 283.1 kB / 403.9 MB, free: 40.41 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.429e-05/0.2539, allocations: 111.6 kB / 404 MB, free: 40.29 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.957e-05/0.254, allocations: 2.156 kB / 404 MB, free: 40.29 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001629/0.2541, allocations: 14.95 kB / 404.1 MB, free: 40.28 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.775e-05/0.2542, allocations: 15.11 kB / 404.1 MB, free: 40.27 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.007e-05/0.2542, allocations: 11.23 kB / 404.1 MB, free: 40.26 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001355/0.2544, allocations: 184.2 kB / 404.3 MB, free: 40.13 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.2544, allocations: 1.188 kB / 404.3 MB, free: 40.13 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0004263/0.2548, allocations: 89.2 kB / 404.3 MB, free: 40.11 MB / 318.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.000263/0.2551, allocations: 160.4 kB / 404.5 MB, free: 39.99 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0004471/0.2555, allocations: 163.6 kB / 404.7 MB, free: 39.92 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.553e-06/0.2555, allocations: 0.8125 kB / 404.7 MB, free: 39.92 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001819/0.2557, allocations: 77.83 kB / 404.7 MB, free: 39.89 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004157/0.2561, allocations: 63.36 kB / 404.8 MB, free: 39.85 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009041/0.257, allocations: 475 kB / 405.3 MB, free: 39.53 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001552/0.2572, allocations: 0.7435 MB / 406 MB, free: 38.8 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.863e-05/0.2573, allocations: 37.33 kB / 406 MB, free: 38.77 MB / 318.1 MB Notification: Performance of SimCode: time 2.41e-07/0.2573, allocations: 0 / 406 MB, free: 38.77 MB / 318.1 MB Notification: Performance of Templates: time 0.005408/0.2627, allocations: 3.628 MB / 409.7 MB, free: 36.71 MB / 318.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)