Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Annex60_1.0.0_Annex60.Fluid.Actuators.Valves.Examples.TwoWayValves.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/Annex60 1.0.0/package.mo", uses=false) Using package Annex60 with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Annex60 1.0.0/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(Annex60.Fluid.Actuators.Valves.Examples.TwoWayValves,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Annex60_1.0.0_Annex60.Fluid.Actuators.Valves.Examples.TwoWayValves") translateModel(Annex60.Fluid.Actuators.Valves.Examples.TwoWayValves,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Annex60_1.0.0_Annex60.Fluid.Actuators.Valves.Examples.TwoWayValves") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.009714/0.009714, allocations: 95.41 kB / 15.73 MB, free: 6.062 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.001885/0.001885, allocations: 197.2 kB / 16.68 MB, free: 5.984 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.763/1.763, allocations: 205.1 MB / 222.5 MB, free: 4.535 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Annex60 1.0.0/package.mo): time 0.3842/0.3842, allocations: 54.94 MB / 324.9 MB, free: 15.99 MB / 270.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: Annex60 requested package Modelica of version 3.2.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.001445/0.001445, allocations: 66.42 kB / 456.2 MB, free: 38.4 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1313/0.1328, allocations: 59.59 MB / 0.5037 GB, free: 9.871 MB / 382.1 MB Notification: Performance of NFInst.instantiate(Annex60.Fluid.Actuators.Valves.Examples.TwoWayValves): time 0.02541/0.1582, allocations: 22.63 MB / 0.5258 GB, free: 4.312 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01391/0.1722, allocations: 8.391 MB / 0.534 GB, free: 11.9 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001398/0.1736, allocations: 27.75 kB / 0.534 GB, free: 11.88 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001372/0.1751, allocations: 349.7 kB / 0.5344 GB, free: 11.53 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003798/0.1789, allocations: 0.9504 MB / 0.5353 GB, free: 10.58 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003195/0.1821, allocations: 0.7849 MB / 0.5361 GB, free: 9.801 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.003621/0.1857, allocations: 1.714 MB / 0.5377 GB, free: 8.078 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001307/0.187, allocations: 0.5491 MB / 0.5383 GB, free: 7.516 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003001/0.1901, allocations: 0.7394 MB / 0.539 GB, free: 6.773 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001975/0.1921, allocations: 0.5641 MB / 0.5395 GB, free: 6.207 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003726/0.1925, allocations: 56 kB / 0.5396 GB, free: 6.152 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00261/0.1951, allocations: 0.7294 MB / 0.5403 GB, free: 5.422 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004339/0.1955, allocations: 167.3 kB / 0.5405 GB, free: 5.258 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008757/0.1964, allocations: 398 kB / 0.5408 GB, free: 4.867 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002916/0.1993, allocations: 1.097 MB / 0.5419 GB, free: 3.766 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.476e-06/0.1994, allocations: 0 / 0.5419 GB, free: 3.766 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.254e-06/0.1994, allocations: 0 / 0.5419 GB, free: 3.766 MB / 414.1 MB Notification: Performance of Transformations before backend: time 5.52e-05/0.1994, allocations: 0 / 0.5419 GB, free: 3.766 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 109 * Number of variables: 109 Notification: Performance of Generate backend data structure: time 0.002813/0.2023, allocations: 1.128 MB / 0.543 GB, free: 2.586 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.934e-05/0.2023, allocations: 8.031 kB / 0.543 GB, free: 2.578 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001086/0.2034, allocations: 192 kB / 0.5432 GB, free: 2.391 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00102/0.2045, allocations: 0.5376 MB / 0.5437 GB, free: 1.812 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.573e-05/0.2045, allocations: 37 kB / 0.5438 GB, free: 1.773 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.575e-05/0.2046, allocations: 52 kB / 0.5438 GB, free: 1.723 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003714/0.2083, allocations: 1.033 MB / 0.5448 GB, free: 0.6406 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.985e-05/0.2083, allocations: 4 kB / 0.5448 GB, free: 0.6367 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.118e-05/0.2084, allocations: 20 kB / 0.5449 GB, free: 0.6172 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.428e-05/0.2084, allocations: 12 kB / 0.5449 GB, free: 0.6055 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003518/0.212, allocations: 0.8714 MB / 0.5457 GB, free: 15.74 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00388/0.2159, allocations: 2.642 MB / 0.5483 GB, free: 12.94 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003255/0.2191, allocations: 0.7061 MB / 0.549 GB, free: 12.21 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003859/0.2195, allocations: 106.5 kB / 0.5491 GB, free: 12.09 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002706/0.2198, allocations: 117.1 kB / 0.5492 GB, free: 11.96 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.841e-05/0.2199, allocations: 42.5 kB / 0.5492 GB, free: 11.91 MB / 430.1 MB Notification: Performance of pre-optimization done (n=16): time 2.444e-06/0.2199, allocations: 0 / 0.5492 GB, free: 11.91 MB / 430.1 MB Notification: Performance of matching and sorting (n=16): time 0.006403/0.2263, allocations: 1.27 MB / 0.5505 GB, free: 10.63 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.075e-05/0.2264, allocations: 158.2 kB / 0.5506 GB, free: 10.44 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008084/0.2272, allocations: 0.6724 MB / 0.5513 GB, free: 9.762 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 5.73e-05/0.2273, allocations: 33.7 kB / 0.5513 GB, free: 9.723 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003241/0.2276, allocations: 368.4 kB / 0.5517 GB, free: 9.359 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.178e-05/0.2277, allocations: 63.47 kB / 0.5517 GB, free: 9.297 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002249/0.2279, allocations: 102.1 kB / 0.5518 GB, free: 9.191 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0002288/0.2282, allocations: 378.7 kB / 0.5522 GB, free: 8.812 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001155/0.2293, allocations: 330.3 kB / 0.5525 GB, free: 8.488 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00122/0.2306, allocations: 460.4 kB / 0.5529 GB, free: 7.977 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002085/0.2327, allocations: 0.6712 MB / 0.5536 GB, free: 7.266 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.457e-06/0.2327, allocations: 0 / 0.5536 GB, free: 7.266 MB / 430.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.002472/0.2352, allocations: 0.8171 MB / 0.5544 GB, free: 6.441 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.829e-05/0.2352, allocations: 4 kB / 0.5544 GB, free: 6.438 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.043e-05/0.2352, allocations: 4 kB / 0.5544 GB, free: 6.434 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.995e-05/0.2352, allocations: 4 kB / 0.5544 GB, free: 6.43 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004182/0.2394, allocations: 0.6436 MB / 0.555 GB, free: 5.785 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006884/0.2463, allocations: 4.96 MB / 0.5599 GB, free: 424 kB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001208/0.2475, allocations: 147.5 kB / 0.56 GB, free: 276 kB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.183e-05/0.2476, allocations: 27.92 kB / 0.56 GB, free: 248 kB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005524/0.2482, allocations: 253 kB / 0.5603 GB, free: 15.99 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003645/0.2486, allocations: 272.2 kB / 0.5605 GB, free: 15.66 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005678/0.2491, allocations: 332.1 kB / 0.5609 GB, free: 15.28 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.757e-06/0.2492, allocations: 4 kB / 0.5609 GB, free: 15.28 MB / 446.1 MB Notification: Performance of matching and sorting (n=50) (initialization_lambda0): time 0.0008606/0.25, allocations: 446.3 kB / 0.5613 GB, free: 14.84 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.276e-05/0.25, allocations: 11.94 kB / 0.5613 GB, free: 14.82 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.722e-06/0.2501, allocations: 4 kB / 0.5613 GB, free: 14.82 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.065e-06/0.2501, allocations: 7.938 kB / 0.5613 GB, free: 14.81 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004405/0.2505, allocations: 112.4 kB / 0.5614 GB, free: 14.7 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.764e-06/0.2505, allocations: 11.94 kB / 0.5614 GB, free: 14.69 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004895/0.251, allocations: 59.84 kB / 0.5615 GB, free: 14.63 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.755e-05/0.2511, allocations: 20 kB / 0.5615 GB, free: 14.61 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * 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 (50): * Single equations (assignments): 47 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 3 systems {1, 1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002074/0.2513, allocations: 200.1 kB / 0.5617 GB, free: 14.41 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001505/0.2514, allocations: 67.58 kB / 0.5618 GB, free: 14.34 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002238/0.2537, allocations: 0.619 MB / 0.5624 GB, free: 13.72 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.55e-06/0.2537, allocations: 4 kB / 0.5624 GB, free: 13.71 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.084e-06/0.2537, allocations: 0 / 0.5624 GB, free: 13.71 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.868e-06/0.2537, allocations: 0 / 0.5624 GB, free: 13.71 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001014/0.2547, allocations: 0.7527 MB / 0.5631 GB, free: 12.9 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.998e-06/0.2548, allocations: 8.062 kB / 0.5631 GB, free: 12.89 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003526/0.2583, allocations: 0.55 MB / 0.5637 GB, free: 12.34 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.428e-06/0.2583, allocations: 0 / 0.5637 GB, free: 12.34 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.24e-05/0.2584, allocations: 7.984 kB / 0.5637 GB, free: 12.33 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006645/0.265, allocations: 4.865 MB / 0.5684 GB, free: 7.055 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.265, allocations: 0 / 0.5684 GB, free: 7.055 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00229/0.2673, allocations: 0.6958 MB / 0.5691 GB, free: 6.336 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002456/0.2676, allocations: 140.6 kB / 0.5692 GB, free: 6.18 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.242e-05/0.2677, allocations: 7.984 kB / 0.5692 GB, free: 6.172 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008533/0.2685, allocations: 107.8 kB / 0.5693 GB, free: 6.066 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000138/0.2687, allocations: 23.91 kB / 0.5694 GB, free: 6.043 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.116e-05/0.2688, allocations: 11.98 kB / 0.5694 GB, free: 6.031 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0008558/0.2696, allocations: 467 kB / 0.5698 GB, free: 5.578 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2696, allocations: 0 / 0.5698 GB, free: 5.578 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001555/0.2712, allocations: 347.5 kB / 0.5701 GB, free: 5.238 MB / 446.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 (17): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 3 systems {1, 1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0007875/0.272, allocations: 206.7 kB / 0.5703 GB, free: 5.031 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006391/0.2784, allocations: 1.331 MB / 0.5716 GB, free: 3.699 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 9.398e-06/0.2784, allocations: 1.125 kB / 0.5716 GB, free: 3.699 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006835/0.2853, allocations: 1.159 MB / 0.5728 GB, free: 2.539 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001774/0.2871, allocations: 319.1 kB / 0.5731 GB, free: 2.238 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01179/0.2989, allocations: 2.606 MB / 0.5756 GB, free: 15.59 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005365/0.2995, allocations: 0.902 MB / 0.5765 GB, free: 14.66 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0006818/0.3002, allocations: 129.1 kB / 0.5766 GB, free: 14.54 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002497/0.3004, allocations: 59.41 kB / 0.5767 GB, free: 14.48 MB / 462.1 MB Notification: Performance of SimCode: time 1.072e-06/0.3004, allocations: 0 / 0.5767 GB, free: 14.48 MB / 462.1 MB Notification: Performance of Templates: time 0.02555/0.326, allocations: 14.95 MB / 0.5913 GB, free: 15.6 MB / 478.1 MB make -j1 -f Annex60_1.0.0_Annex60.Fluid.Actuators.Valves.Examples.TwoWayValves.makefile (rm -f Annex60_1.0.0_Annex60.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; mkfifo Annex60_1.0.0_Annex60.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; head -c 1048576 < Annex60_1.0.0_Annex60.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe >> ../files/Annex60_1.0.0_Annex60.Fluid.Actuators.Valves.Examples.TwoWayValves.sim & ./Annex60_1.0.0_Annex60.Fluid.Actuators.Valves.Examples.TwoWayValves -abortSlowSimulation -alarm=480 -lv LOG_STATS > Annex60_1.0.0_Annex60.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe 2>&1)