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.001077/0.001077, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001083/0.001083, allocations: 191 kB / 16.14 MB, free: 6.652 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.572/1.572, allocations: 205.1 MB / 222 MB, free: 4.73 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Annex60 1.0.0/package.mo): time 0.4513/0.4513, allocations: 54.94 MB / 324.3 MB, free: 172 kB / 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.001795/0.001795, allocations: 60.47 kB / 394.7 MB, free: 12.27 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1606/0.1624, allocations: 59.59 MB / 454.2 MB, free: 0.6133 MB / 382.1 MB Notification: Performance of NFInst.instantiate(Annex60.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent): time 0.3243/0.4868, allocations: 18.97 MB / 473.2 MB, free: 28.56 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01047/0.4973, allocations: 7.564 MB / 480.8 MB, free: 23.68 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001189/0.4986, allocations: 21.62 kB / 480.8 MB, free: 23.66 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001074/0.4997, allocations: 235.9 kB / 481 MB, free: 23.53 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002175/0.5019, allocations: 0.6272 MB / 481.7 MB, free: 23.16 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001937/0.5038, allocations: 0.6436 MB / 482.3 MB, free: 22.82 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001625/0.5054, allocations: 1.887 MB / 484.2 MB, free: 22.12 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000473/0.5059, allocations: 390.3 kB / 484.6 MB, free: 21.99 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009405/0.5069, allocations: 0.5548 MB / 485.1 MB, free: 21.75 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005698/0.5074, allocations: 489.8 kB / 485.6 MB, free: 21.56 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.442e-05/0.5075, allocations: 30.38 kB / 485.6 MB, free: 21.55 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009019/0.5084, allocations: 496.7 kB / 486.1 MB, free: 21.43 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001448/0.5086, allocations: 135.7 kB / 486.3 MB, free: 21.36 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002593/0.5089, allocations: 318.3 kB / 486.6 MB, free: 21.18 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008458/0.5097, allocations: 0.8663 MB / 487.4 MB, free: 20.86 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.831e-06/0.5097, allocations: 0 / 487.4 MB, free: 20.86 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.5097, allocations: 0 / 487.4 MB, free: 20.86 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.417e-06/0.5098, allocations: 0 / 487.4 MB, free: 20.86 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.001574/0.5113, allocations: 0.9557 MB / 488.4 MB, free: 20.16 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.345e-05/0.5114, allocations: 8.031 kB / 488.4 MB, free: 20.16 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00259/0.514, allocations: 365.7 kB / 488.8 MB, free: 20.11 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006358/0.5146, allocations: 490.6 kB / 489.2 MB, free: 19.75 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.493e-05/0.5147, allocations: 32.12 kB / 489.3 MB, free: 19.74 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.849e-05/0.5148, allocations: 43.06 kB / 489.3 MB, free: 19.72 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007425/0.5222, allocations: 1.577 MB / 490.9 MB, free: 19.36 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.048e-05/0.5222, allocations: 7.938 kB / 490.9 MB, free: 19.35 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.569e-05/0.5223, allocations: 23.22 kB / 490.9 MB, free: 19.33 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.652e-05/0.5224, allocations: 11.34 kB / 490.9 MB, free: 19.33 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007579/0.5299, allocations: 1.526 MB / 492.5 MB, free: 19.11 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003931/0.5339, allocations: 2.78 MB / 495.2 MB, free: 16.94 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007072/0.541, allocations: 1.274 MB / 496.5 MB, free: 16.71 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009119/0.5419, allocations: 253.5 kB / 496.8 MB, free: 16.63 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002903/0.5422, allocations: 113.4 kB / 496.9 MB, free: 16.54 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.502e-05/0.5423, allocations: 42.86 kB / 496.9 MB, free: 16.49 MB / 382.1 MB Notification: Performance of pre-optimization done (n=21): time 2.565e-06/0.5423, allocations: 0 / 496.9 MB, free: 16.49 MB / 382.1 MB Notification: Performance of matching and sorting (n=21): time 0.01466/0.5569, allocations: 2.584 MB / 499.5 MB, free: 16.14 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.597e-05/0.5571, allocations: 158 kB / 499.6 MB, free: 15.95 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008531/0.5579, allocations: 0.5324 MB / 0.4885 GB, free: 15.71 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001064/0.558, allocations: 32.58 kB / 0.4885 GB, free: 15.68 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002228/0.5583, allocations: 301.9 kB / 0.4888 GB, free: 15.43 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001091/0.5584, allocations: 78.38 kB / 0.4888 GB, free: 15.37 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002677/0.5587, allocations: 105.1 kB / 0.4889 GB, free: 15.32 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001115/0.5588, allocations: 373.5 kB / 0.4893 GB, free: 14.98 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002261/0.561, allocations: 0.5755 MB / 0.4899 GB, free: 14.86 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002296/0.5633, allocations: 0.6747 MB / 0.4905 GB, free: 14.62 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00436/0.5677, allocations: 1.146 MB / 0.4916 GB, free: 14.29 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.911e-06/0.5677, allocations: 1.906 kB / 0.4916 GB, free: 14.29 MB / 382.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.004848/0.5726, allocations: 1.312 MB / 0.4929 GB, free: 13.96 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.784e-05/0.5726, allocations: 5.844 kB / 0.4929 GB, free: 13.96 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.265e-05/0.5727, allocations: 7.438 kB / 0.4929 GB, free: 13.96 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.075e-05/0.5727, allocations: 7.641 kB / 0.4929 GB, free: 13.96 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01294/0.5856, allocations: 1.611 MB / 0.4945 GB, free: 13.9 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0134/0.5991, allocations: 3.368 MB / 0.4978 GB, free: 12.24 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001959/0.6011, allocations: 244.1 kB / 0.498 GB, free: 12.2 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.685e-05/0.6012, allocations: 26.52 kB / 0.4981 GB, free: 12.2 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006873/0.6019, allocations: 284.8 kB / 0.4983 GB, free: 12.05 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004792/0.6024, allocations: 259.4 kB / 0.4986 GB, free: 11.88 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008326/0.6032, allocations: 385.8 kB / 0.499 GB, free: 11.67 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.165e-06/0.6032, allocations: 1.312 kB / 0.499 GB, free: 11.67 MB / 382.1 MB Notification: Performance of matching and sorting (n=49) (initialization_lambda0): time 0.001188/0.6044, allocations: 487.3 kB / 0.4994 GB, free: 11.5 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.638e-05/0.6045, allocations: 11.19 kB / 0.4994 GB, free: 11.5 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.021e-06/0.6045, allocations: 6.906 kB / 0.4994 GB, free: 11.49 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.664e-06/0.6045, allocations: 9.531 kB / 0.4994 GB, free: 11.49 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005257/0.605, allocations: 110.2 kB / 0.4996 GB, free: 11.48 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.041e-05/0.605, allocations: 5.766 kB / 0.4996 GB, free: 11.48 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005662/0.6056, allocations: 88.27 kB / 0.4996 GB, free: 11.43 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.099e-05/0.6056, allocations: 16.75 kB / 0.4997 GB, free: 11.43 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 (not torn): 1 * 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): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002694/0.6059, allocations: 204.9 kB / 0.4999 GB, free: 11.23 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001712/0.6061, allocations: 53.44 kB / 0.4999 GB, free: 11.2 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001852/0.6063, allocations: 62.45 kB / 0.5 GB, free: 11.15 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.371e-06/0.6063, allocations: 2.125 kB / 0.5 GB, free: 11.15 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.554e-06/0.6063, allocations: 5.062 kB / 0.5 GB, free: 11.15 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.422e-06/0.6063, allocations: 3.5 kB / 0.5 GB, free: 11.15 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001012/0.6073, allocations: 0.8901 MB / 0.5008 GB, free: 10.36 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.865e-06/0.6074, allocations: 1.094 kB / 0.5008 GB, free: 10.36 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01118/0.6185, allocations: 1.46 MB / 0.5023 GB, free: 9.805 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.64e-05/0.6186, allocations: 6.312 kB / 0.5023 GB, free: 9.801 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001493/0.6187, allocations: 20.31 kB / 0.5023 GB, free: 9.785 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01202/0.6308, allocations: 3.253 MB / 0.5055 GB, free: 7.551 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.35e-06/0.6308, allocations: 3.938 kB / 0.5055 GB, free: 7.547 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004363/0.6352, allocations: 1.234 MB / 0.5067 GB, free: 6.926 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002605/0.6355, allocations: 130.2 kB / 0.5068 GB, free: 6.793 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001302/0.6356, allocations: 6.594 kB / 0.5068 GB, free: 6.789 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001468/0.6371, allocations: 218.4 kB / 0.507 GB, free: 6.613 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.651e-05/0.6372, allocations: 11.98 kB / 0.507 GB, free: 6.602 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.827e-05/0.6373, allocations: 23.97 kB / 0.5071 GB, free: 6.578 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004392/0.6377, allocations: 366.8 kB / 0.5074 GB, free: 6.223 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.61e-07/0.6377, allocations: 0 / 0.5074 GB, free: 6.223 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001166/0.6389, allocations: 327.5 kB / 0.5077 GB, free: 5.902 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 (not torn): 1 * 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): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004383/0.6394, allocations: 180.6 kB / 0.5079 GB, free: 5.73 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.01523/0.6546, allocations: 2.814 MB / 0.5106 GB, free: 2.914 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 9.568e-06/0.6547, allocations: 4 kB / 0.5106 GB, free: 2.91 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.01128/0.6659, allocations: 1.865 MB / 0.5125 GB, free: 1.043 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001794/0.6678, allocations: 286.2 kB / 0.5127 GB, free: 0.7812 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01703/0.6848, allocations: 3.421 MB / 0.5161 GB, free: 13.33 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005996/0.6855, allocations: 0.8723 MB / 0.5169 GB, free: 12.43 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001091/0.6866, allocations: 135.5 kB / 0.5171 GB, free: 12.3 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003399/0.6869, allocations: 59.38 kB / 0.5171 GB, free: 12.25 MB / 398.1 MB Notification: Performance of SimCode: time 1.663e-06/0.687, allocations: 0 / 0.5171 GB, free: 12.25 MB / 398.1 MB Notification: Performance of Templates: time 0.02278/0.7097, allocations: 14.29 MB / 0.5311 GB, free: 14.11 MB / 414.1 MB make -j1 -f Annex60_1.0.0_Annex60.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.makefile (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)