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.001365/0.001365, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001961/0.001961, allocations: 196.2 kB / 16.53 MB, free: 6.664 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.72/1.72, allocations: 205.1 MB / 222.4 MB, free: 4.586 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Annex60 1.0.0/package.mo): time 0.4735/0.4735, allocations: 54.94 MB / 324.7 MB, free: 15.93 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.001851/0.001851, allocations: 72.47 kB / 395.3 MB, free: 11.8 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1744/0.1763, allocations: 59.59 MB / 454.9 MB, free: 148 kB / 382.1 MB Notification: Performance of NFInst.instantiate(Annex60.Fluid.Actuators.Valves.Examples.TwoWayValves): time 0.3043/0.4806, allocations: 22.62 MB / 477.5 MB, free: 25.45 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01143/0.4921, allocations: 8.388 MB / 485.9 MB, free: 19.87 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00117/0.4933, allocations: 30.41 kB / 486 MB, free: 19.85 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001004/0.4944, allocations: 348.2 kB / 486.3 MB, free: 19.64 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002177/0.4966, allocations: 0.9436 MB / 487.2 MB, free: 19.1 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001946/0.4985, allocations: 0.7856 MB / 488 MB, free: 18.71 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002189/0.5007, allocations: 1.724 MB / 489.8 MB, free: 17.91 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007617/0.5015, allocations: 0.5416 MB / 490.3 MB, free: 17.69 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0013/0.5028, allocations: 0.7261 MB / 491 MB, free: 17.37 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005681/0.5034, allocations: 0.5696 MB / 491.6 MB, free: 17.12 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.643e-05/0.5035, allocations: 55.06 kB / 491.6 MB, free: 17.12 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001278/0.5048, allocations: 0.7315 MB / 492.4 MB, free: 16.93 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001458/0.5049, allocations: 162.7 kB / 492.5 MB, free: 16.83 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003376/0.5053, allocations: 396.2 kB / 492.9 MB, free: 16.61 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001667/0.507, allocations: 1.087 MB / 494 MB, free: 16.2 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.729e-06/0.507, allocations: 0 / 494 MB, free: 16.2 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.925e-06/0.507, allocations: 5.25 kB / 494 MB, free: 16.2 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.355e-05/0.507, allocations: 0 / 494 MB, free: 16.2 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: 109 * Number of variables: 109 Notification: Performance of Generate backend data structure: time 0.002117/0.5091, allocations: 1.088 MB / 495.1 MB, free: 15.42 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.189e-05/0.5092, allocations: 9.344 kB / 495.1 MB, free: 15.42 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001146/0.5104, allocations: 186.6 kB / 495.3 MB, free: 15.37 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000822/0.5112, allocations: 0.5161 MB / 495.8 MB, free: 15 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.935e-05/0.5113, allocations: 36.62 kB / 495.8 MB, free: 14.98 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.969e-05/0.5113, allocations: 49.91 kB / 495.9 MB, free: 14.96 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003819/0.5152, allocations: 1.023 MB / 496.9 MB, free: 14.64 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.044e-05/0.5152, allocations: 8.938 kB / 496.9 MB, free: 14.63 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.564e-05/0.5153, allocations: 26.03 kB / 497 MB, free: 14.61 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.989e-05/0.5153, allocations: 12.06 kB / 497 MB, free: 14.61 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003738/0.5191, allocations: 0.8654 MB / 497.8 MB, free: 14.45 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003774/0.5229, allocations: 2.64 MB / 0.4887 GB, free: 12.46 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003683/0.5266, allocations: 0.7112 MB / 0.4894 GB, free: 12.3 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003732/0.5269, allocations: 118.7 kB / 0.4895 GB, free: 12.24 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002891/0.5272, allocations: 111.6 kB / 0.4897 GB, free: 12.14 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.404e-05/0.5273, allocations: 39.08 kB / 0.4897 GB, free: 12.1 MB / 382.1 MB Notification: Performance of pre-optimization done (n=16): time 2.394e-06/0.5273, allocations: 0 / 0.4897 GB, free: 12.1 MB / 382.1 MB Notification: Performance of matching and sorting (n=16): time 0.007364/0.5347, allocations: 1.269 MB / 0.4909 GB, free: 11.91 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.369e-05/0.5348, allocations: 160.8 kB / 0.4911 GB, free: 11.72 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001248/0.536, allocations: 0.6695 MB / 0.4917 GB, free: 11.43 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.759e-05/0.5361, allocations: 31.45 kB / 0.4918 GB, free: 11.39 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000291/0.5364, allocations: 370.2 kB / 0.4921 GB, free: 11.1 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.691e-05/0.5365, allocations: 60.98 kB / 0.4922 GB, free: 11.05 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002309/0.5367, allocations: 103.6 kB / 0.4923 GB, free: 11 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000174/0.5369, allocations: 378.7 kB / 0.4926 GB, free: 10.66 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00123/0.5382, allocations: 322.7 kB / 0.4929 GB, free: 10.58 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001274/0.5394, allocations: 456.2 kB / 0.4934 GB, free: 10.34 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002235/0.5417, allocations: 0.6701 MB / 0.494 GB, free: 10.08 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.206e-06/0.5417, allocations: 0 / 0.494 GB, free: 10.08 MB / 382.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.002838/0.5446, allocations: 0.8213 MB / 0.4948 GB, free: 9.836 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.702e-05/0.5446, allocations: 6.344 kB / 0.4948 GB, free: 9.836 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.392e-05/0.5446, allocations: 4.938 kB / 0.4948 GB, free: 9.836 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.085e-05/0.5446, allocations: 8.625 kB / 0.4949 GB, free: 9.832 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004485/0.5491, allocations: 0.6359 MB / 0.4955 GB, free: 9.812 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006862/0.556, allocations: 4.967 MB / 0.5003 GB, free: 5.332 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001572/0.5576, allocations: 149.7 kB / 0.5005 GB, free: 5.289 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.241e-05/0.5577, allocations: 19.45 kB / 0.5005 GB, free: 5.289 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005858/0.5583, allocations: 256 kB / 0.5007 GB, free: 5.141 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003938/0.5587, allocations: 276.8 kB / 0.501 GB, free: 4.91 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005497/0.5592, allocations: 322.4 kB / 0.5013 GB, free: 4.688 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.58e-06/0.5593, allocations: 4.938 kB / 0.5013 GB, free: 4.688 MB / 382.1 MB Notification: Performance of matching and sorting (n=50) (initialization_lambda0): time 0.0008975/0.5602, allocations: 445 kB / 0.5017 GB, free: 4.504 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.304e-05/0.5602, allocations: 7.219 kB / 0.5017 GB, free: 4.504 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.496e-06/0.5602, allocations: 5.141 kB / 0.5017 GB, free: 4.504 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.265e-06/0.5602, allocations: 13.56 kB / 0.5018 GB, free: 4.496 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004743/0.5607, allocations: 112.2 kB / 0.5019 GB, free: 4.484 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.998e-06/0.5607, allocations: 8.125 kB / 0.5019 GB, free: 4.484 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005594/0.5613, allocations: 51.02 kB / 0.5019 GB, free: 4.469 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.537e-05/0.5613, allocations: 18.84 kB / 0.5019 GB, free: 4.465 MB / 382.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.000274/0.5616, allocations: 212.8 kB / 0.5021 GB, free: 4.258 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001915/0.5618, allocations: 67.89 kB / 0.5022 GB, free: 4.223 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002446/0.5643, allocations: 0.6017 MB / 0.5028 GB, free: 4.078 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.45e-06/0.5643, allocations: 2.594 kB / 0.5028 GB, free: 4.078 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.919e-06/0.5643, allocations: 1.734 kB / 0.5028 GB, free: 4.078 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.352e-06/0.5643, allocations: 1.5 kB / 0.5028 GB, free: 4.078 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001088/0.5654, allocations: 0.764 MB / 0.5035 GB, free: 3.539 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.679e-06/0.5654, allocations: 1.875 kB / 0.5035 GB, free: 3.539 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003834/0.5693, allocations: 0.5598 MB / 0.5041 GB, free: 3.516 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.781e-06/0.5693, allocations: 2.375 kB / 0.5041 GB, free: 3.516 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.88e-05/0.5693, allocations: 10.44 kB / 0.5041 GB, free: 3.512 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006276/0.5756, allocations: 4.858 MB / 0.5089 GB, free: 15.05 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.574e-06/0.5756, allocations: 0 / 0.5089 GB, free: 15.05 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002728/0.5784, allocations: 0.7039 MB / 0.5095 GB, free: 14.77 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002262/0.5786, allocations: 136.4 kB / 0.5097 GB, free: 14.64 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001109/0.5787, allocations: 6.797 kB / 0.5097 GB, free: 14.63 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009251/0.5797, allocations: 109.6 kB / 0.5098 GB, free: 14.62 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001001/0.5798, allocations: 19.64 kB / 0.5098 GB, free: 14.61 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.733e-05/0.5798, allocations: 10.94 kB / 0.5098 GB, free: 14.61 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0007498/0.5806, allocations: 464.8 kB / 0.5103 GB, free: 14.42 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.5806, allocations: 0 / 0.5103 GB, free: 14.42 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001485/0.5821, allocations: 344.6 kB / 0.5106 GB, free: 14.37 MB / 398.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.0005659/0.5826, allocations: 195.1 kB / 0.5108 GB, free: 14.26 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.006801/0.5895, allocations: 1.337 MB / 0.5121 GB, free: 14.01 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 6.182e-06/0.5895, allocations: 1.125 kB / 0.5121 GB, free: 14.01 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.007253/0.5967, allocations: 1.162 MB / 0.5132 GB, free: 13.56 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001896/0.5987, allocations: 321.2 kB / 0.5135 GB, free: 13.42 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0124/0.6111, allocations: 2.589 MB / 0.516 GB, free: 12.19 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005093/0.6116, allocations: 0.9001 MB / 0.5169 GB, free: 11.39 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0008175/0.6124, allocations: 128.2 kB / 0.517 GB, free: 11.35 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002387/0.6127, allocations: 62.52 kB / 0.5171 GB, free: 11.32 MB / 398.1 MB Notification: Performance of SimCode: time 1.312e-06/0.6127, allocations: 0 / 0.5171 GB, free: 11.32 MB / 398.1 MB Notification: Performance of Templates: time 0.02616/0.6389, allocations: 14.91 MB / 0.5317 GB, free: 12.94 MB / 414.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)