Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Annex60_1.0.0_Annex60.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.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.TwoWayValvePressureIndependent,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Annex60_1.0.0_Annex60.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent") translateModel(Annex60.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Annex60_1.0.0_Annex60.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009525/0.0009525, allocations: 91.69 kB / 15.06 MB, free: 1.098 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.001272/0.001272, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.864/1.864, allocations: 205.4 MB / 222.1 MB, free: 5.668 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Annex60 1.0.0/package.mo): time 0.4254/0.4254, allocations: 55.02 MB / 325.4 MB, free: 0.6641 MB / 254.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.0005837/0.0005839, allocations: 12 kB / 396.7 MB, free: 11.7 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4703/0.4709, allocations: 60.72 MB / 457.4 MB, free: 38.2 MB / 382.1 MB Notification: Performance of NFInst.instantiate(Annex60.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent): time 0.0165/0.4874, allocations: 17.46 MB / 474.8 MB, free: 29.39 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01085/0.4983, allocations: 6.792 MB / 481.6 MB, free: 24.89 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009708/0.4994, allocations: 19.88 kB / 481.6 MB, free: 24.88 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008099/0.5002, allocations: 215.1 kB / 481.9 MB, free: 24.77 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:734:36-735:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:732:36-733:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:734:36-735:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:732:36-733:54:writable] Warning: 'each' used when modifying non-array element m_flow. Notification: Performance of NFTyping.typeBindings: time 0.002027/0.5022, allocations: 0.5466 MB / 482.4 MB, free: 24.44 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001756/0.504, allocations: 0.5984 MB / 483 MB, free: 24.15 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001663/0.5057, allocations: 1.612 MB / 484.6 MB, free: 23.48 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000523/0.5062, allocations: 357.3 kB / 485 MB, free: 23.38 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008536/0.5071, allocations: 0.5247 MB / 485.5 MB, free: 23.17 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005244/0.5076, allocations: 460 kB / 485.9 MB, free: 22.99 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.348e-05/0.5077, allocations: 28.33 kB / 486 MB, free: 22.99 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008859/0.5086, allocations: 480.7 kB / 486.4 MB, free: 22.87 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001165/0.5087, allocations: 114.8 kB / 486.5 MB, free: 22.81 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000141/0.5088, allocations: 140.1 kB / 486.7 MB, free: 22.73 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006656/0.5095, allocations: 0.6348 MB / 487.3 MB, free: 22.57 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.701e-06/0.5095, allocations: 0.9688 kB / 487.3 MB, free: 22.57 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.274e-06/0.5095, allocations: 0 / 487.3 MB, free: 22.57 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.505e-05/0.5096, allocations: 0 / 487.3 MB, free: 22.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: 96 * Number of variables: 96 Notification: Performance of Generate backend data structure: time 0.001387/0.5109, allocations: 0.8655 MB / 488.2 MB, free: 21.92 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.64e-05/0.511, allocations: 8.875 kB / 488.2 MB, free: 21.92 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002175/0.5132, allocations: 415.6 kB / 488.6 MB, free: 21.86 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006643/0.5139, allocations: 459 kB / 489 MB, free: 21.54 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.965e-05/0.5139, allocations: 38.05 kB / 489.1 MB, free: 21.52 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.372e-05/0.514, allocations: 47.25 kB / 489.1 MB, free: 21.5 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00618/0.5202, allocations: 1.782 MB / 490.9 MB, free: 21.1 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.548e-05/0.5202, allocations: 0 / 490.9 MB, free: 21.1 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.095e-05/0.5203, allocations: 18 kB / 490.9 MB, free: 21.09 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.49e-05/0.5203, allocations: 16.64 kB / 490.9 MB, free: 21.09 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007071/0.5274, allocations: 1.77 MB / 492.7 MB, free: 20.83 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004297/0.5317, allocations: 2.796 MB / 495.5 MB, free: 18.66 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006419/0.5382, allocations: 1.486 MB / 497 MB, free: 18.41 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008706/0.5391, allocations: 284.1 kB / 497.3 MB, free: 18.32 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002757/0.5394, allocations: 126.2 kB / 497.4 MB, free: 18.22 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.038e-05/0.5394, allocations: 38.33 kB / 497.4 MB, free: 18.18 MB / 382.1 MB Notification: Performance of pre-optimization done (n=21): time 3.236e-06/0.5394, allocations: 0 / 497.4 MB, free: 18.18 MB / 382.1 MB Notification: Performance of matching and sorting (n=21): time 0.0133/0.5527, allocations: 3.036 MB / 0.4887 GB, free: 17.77 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.333e-05/0.5528, allocations: 158.7 kB / 0.4889 GB, free: 17.59 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008053/0.5536, allocations: 0.528 MB / 0.4894 GB, free: 17.34 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.274e-05/0.5537, allocations: 36.05 kB / 0.4894 GB, free: 17.3 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002213/0.554, allocations: 302.4 kB / 0.4897 GB, free: 17.06 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001047/0.5541, allocations: 81.97 kB / 0.4898 GB, free: 17 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.844e-05/0.5542, allocations: 5.469 kB / 0.4898 GB, free: 16.99 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001167/0.5543, allocations: 369.4 kB / 0.4902 GB, free: 16.65 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002046/0.5563, allocations: 0.6557 MB / 0.4908 GB, free: 16.53 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002151/0.5585, allocations: 0.7627 MB / 0.4915 GB, free: 16.29 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002036/0.5605, allocations: 0.6468 MB / 0.4922 GB, free: 16.15 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.209e-06/0.5606, allocations: 1.375 kB / 0.4922 GB, free: 16.15 MB / 382.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.00441/0.565, allocations: 1.488 MB / 0.4936 GB, free: 15.8 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001177/0.5651, allocations: 169.5 kB / 0.4938 GB, free: 15.61 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.438e-06/0.5651, allocations: 2.438 kB / 0.4938 GB, free: 15.61 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.6e-05/0.5652, allocations: 6.5 kB / 0.4938 GB, free: 15.61 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01191/0.5771, allocations: 2.077 MB / 0.4958 GB, free: 15.49 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01343/0.5905, allocations: 3.868 MB / 0.4996 GB, free: 13.78 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002011/0.5926, allocations: 291.1 kB / 0.4999 GB, free: 13.73 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.91e-05/0.5927, allocations: 31.28 kB / 0.4999 GB, free: 13.72 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.546e-05/0.5927, allocations: 7.188 kB / 0.4999 GB, free: 13.72 MB / 382.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001253/0.594, allocations: 455.8 kB / 0.5004 GB, free: 13.59 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.182e-05/0.594, allocations: 6.422 kB / 0.5004 GB, free: 13.59 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.199e-05/0.594, allocations: 6 kB / 0.5004 GB, free: 13.59 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005257/0.5946, allocations: 130.7 kB / 0.5005 GB, free: 13.56 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.384e-05/0.5946, allocations: 4.625 kB / 0.5005 GB, free: 13.56 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000629/0.5952, allocations: 90.36 kB / 0.5006 GB, free: 13.52 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.131e-05/0.5953, allocations: 15.06 kB / 0.5006 GB, free: 13.51 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (49): * Single equations (assignments): 48 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003962/0.5957, allocations: 259.3 kB / 0.5008 GB, free: 13.28 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001569/0.5958, allocations: 61.67 kB / 0.5009 GB, free: 13.24 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001702/0.596, allocations: 58.17 kB / 0.501 GB, free: 13.2 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.27e-06/0.596, allocations: 6.812 kB / 0.501 GB, free: 13.2 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.58e-06/0.596, allocations: 1.5 kB / 0.501 GB, free: 13.2 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.181e-06/0.596, allocations: 4.922 kB / 0.501 GB, free: 13.19 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001012/0.5971, allocations: 0.8759 MB / 0.5018 GB, free: 12.41 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.796e-06/0.5971, allocations: 0 / 0.5018 GB, free: 12.41 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01042/0.6075, allocations: 1.909 MB / 0.5037 GB, free: 11.79 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.172e-05/0.6075, allocations: 1.125 kB / 0.5037 GB, free: 11.79 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001551/0.6077, allocations: 12.62 kB / 0.5037 GB, free: 11.79 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01086/0.6186, allocations: 3.75 MB / 0.5074 GB, free: 8.523 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-06/0.6186, allocations: 0 / 0.5074 GB, free: 8.523 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003729/0.6223, allocations: 1.415 MB / 0.5088 GB, free: 7.086 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002001/0.6226, allocations: 136.4 kB / 0.5089 GB, free: 6.934 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001239/0.6227, allocations: 4 kB / 0.5089 GB, free: 6.93 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001297/0.624, allocations: 259.7 kB / 0.5091 GB, free: 6.676 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.084e-05/0.6241, allocations: 19.94 kB / 0.5092 GB, free: 6.656 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.937e-05/0.6241, allocations: 16.66 kB / 0.5092 GB, free: 6.641 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003798/0.6245, allocations: 370.8 kB / 0.5095 GB, free: 6.281 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.6245, allocations: 0 / 0.5095 GB, free: 6.281 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001178/0.6257, allocations: 339.4 kB / 0.5098 GB, free: 5.949 MB / 382.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 (21): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005562/0.6263, allocations: 176.4 kB / 0.51 GB, free: 5.781 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.01443/0.6407, allocations: 3.453 MB / 0.5134 GB, free: 2.328 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.005e-05/0.6408, allocations: 0 / 0.5134 GB, free: 2.328 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0109/0.6517, allocations: 2.377 MB / 0.5157 GB, free: 15.95 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002233/0.654, allocations: 294.4 kB / 0.516 GB, free: 15.68 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01615/0.6701, allocations: 3.903 MB / 0.5198 GB, free: 11.74 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004347/0.6706, allocations: 0.8672 MB / 0.5206 GB, free: 10.84 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001084/0.6717, allocations: 133 kB / 0.5208 GB, free: 10.72 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003103/0.672, allocations: 63.36 kB / 0.5208 GB, free: 10.66 MB / 398.1 MB Notification: Performance of SimCode: time 1.202e-06/0.672, allocations: 0 / 0.5208 GB, free: 10.66 MB / 398.1 MB Notification: Performance of Templates: time 0.02559/0.6976, allocations: 13.79 MB / 0.5343 GB, free: 13 MB / 414.1 MB make -j1 -f Annex60_1.0.0_Annex60.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.makefile Environment - environmentSimulation: (rm -f Annex60_1.0.0_Annex60.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.pipe ; mkfifo Annex60_1.0.0_Annex60.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.pipe ; head -c 1048576 < Annex60_1.0.0_Annex60.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.pipe >> ../files/Annex60_1.0.0_Annex60.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.sim & ./Annex60_1.0.0_Annex60.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent -abortSlowSimulation -alarm=480 -lv LOG_STATS > Annex60_1.0.0_Annex60.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.pipe 2>&1) Environment - environmentSimulation: