Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.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/ModelicaTest 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/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(ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve") translateModel(ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001182/0.001182, 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.001247/0.001247, allocations: 192.4 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.49/1.49, allocations: 205.1 MB / 222.4 MB, free: 4.594 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.3702/0.3702, allocations: 39.94 MB / 309.7 MB, free: 9.289 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: ModelicaTest 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.001638/0.001638, allocations: 75.91 kB / 377.6 MB, free: 12.65 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1265/0.1281, allocations: 56.88 MB / 434.5 MB, free: 3.66 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve): time 0.2704/0.3986, allocations: 28.53 MB / 463 MB, free: 36.12 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01831/0.4169, allocations: 16.94 MB / 480 MB, free: 27.92 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007881/0.4178, allocations: 14.41 kB / 480 MB, free: 27.91 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001131/0.419, allocations: 254.2 kB / 480.2 MB, free: 27.76 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01481/0.4338, allocations: 4.54 MB / 484.8 MB, free: 25.91 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006946/0.4408, allocations: 1.882 MB / 486.7 MB, free: 24.93 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001628/0.4424, allocations: 0.9693 MB / 487.6 MB, free: 24.47 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006777/0.4431, allocations: 273.9 kB / 487.9 MB, free: 24.36 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001371/0.4445, allocations: 484.2 kB / 488.4 MB, free: 24.14 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004558/0.4491, allocations: 1.856 MB / 490.2 MB, free: 23.29 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001474/0.4492, allocations: 37.41 kB / 490.3 MB, free: 23.29 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01669/0.4659, allocations: 7.333 MB / 497.6 MB, free: 21.38 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002656/0.4663, allocations: 114.1 kB / 497.7 MB, free: 21.31 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005487/0.4668, allocations: 245.1 kB / 497.9 MB, free: 21.17 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01742/0.4843, allocations: 4.644 MB / 0.4908 GB, free: 19.85 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.257e-06/0.4843, allocations: 0 / 0.4908 GB, free: 19.85 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.505e-06/0.4843, allocations: 0 / 0.4908 GB, free: 19.85 MB / 382.1 MB Notification: Performance of Transformations before backend: time 3.04e-05/0.4844, allocations: 0 / 0.4908 GB, free: 19.85 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: 78 * Number of variables: 78 Notification: Performance of Generate backend data structure: time 0.007508/0.4919, allocations: 1.329 MB / 0.4921 GB, free: 18.99 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.038e-05/0.492, allocations: 14.34 kB / 0.4921 GB, free: 18.99 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0025/0.4945, allocations: 237.2 kB / 0.4923 GB, free: 18.95 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007094/0.4952, allocations: 392.2 kB / 0.4927 GB, free: 18.64 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.91e-05/0.4953, allocations: 31.09 kB / 0.4927 GB, free: 18.62 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.763e-05/0.4954, allocations: 31.78 kB / 0.4928 GB, free: 18.61 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001759/0.4971, allocations: 0.6029 MB / 0.4934 GB, free: 18.36 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.833e-05/0.4972, allocations: 2.281 kB / 0.4934 GB, free: 18.36 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.641e-05/0.4972, allocations: 16.25 kB / 0.4934 GB, free: 18.35 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.196e-05/0.4972, allocations: 7.188 kB / 0.4934 GB, free: 18.35 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001704/0.499, allocations: 0.5659 MB / 0.4939 GB, free: 18.21 MB / 382.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003355/0.5023, allocations: 2.654 MB / 0.4965 GB, free: 16.01 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001607/0.5039, allocations: 453.1 kB / 0.497 GB, free: 15.86 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004725/0.5044, allocations: 201.7 kB / 0.4972 GB, free: 15.75 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05455/0.559, allocations: 24.21 MB / 0.5208 GB, free: 12.35 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.71e-05/0.5591, allocations: 38.5 kB / 0.5208 GB, free: 12.3 MB / 398.1 MB Notification: Performance of pre-optimization done (n=25): time 4.077e-06/0.5591, allocations: 1.594 kB / 0.5208 GB, free: 12.3 MB / 398.1 MB Notification: Performance of matching and sorting (n=25): time 0.003171/0.5623, allocations: 0.8147 MB / 0.5216 GB, free: 11.89 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.09e-05/0.5624, allocations: 109.4 kB / 0.5217 GB, free: 11.76 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000565/0.5629, allocations: 380.3 kB / 0.5221 GB, free: 11.52 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 6.466e-05/0.563, allocations: 33.64 kB / 0.5221 GB, free: 11.48 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001934/0.5632, allocations: 218.1 kB / 0.5223 GB, free: 11.29 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.357e-05/0.5633, allocations: 86.02 kB / 0.5224 GB, free: 11.21 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001533/0.5635, allocations: 80.58 kB / 0.5225 GB, free: 11.16 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001794/0.5637, allocations: 348.5 kB / 0.5228 GB, free: 10.82 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000457/0.5641, allocations: 164.3 kB / 0.523 GB, free: 10.73 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005287/0.5647, allocations: 272.8 kB / 0.5232 GB, free: 10.52 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008984/0.5656, allocations: 403.9 kB / 0.5236 GB, free: 10.18 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.789e-06/0.5656, allocations: 3.938 kB / 0.5236 GB, free: 10.18 MB / 398.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.001194/0.5668, allocations: 480.7 kB / 0.5241 GB, free: 9.699 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.336e-05/0.5668, allocations: 8 kB / 0.5241 GB, free: 9.691 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.216e-05/0.5669, allocations: 10.25 kB / 0.5241 GB, free: 9.684 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.065e-05/0.5669, allocations: 4.344 kB / 0.5241 GB, free: 9.68 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004245/0.5673, allocations: 99.86 kB / 0.5242 GB, free: 9.582 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.402e-05/0.5673, allocations: 4 kB / 0.5242 GB, free: 9.578 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004766/0.5678, allocations: 55.59 kB / 0.5243 GB, free: 9.523 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.451e-05/0.5679, allocations: 19.98 kB / 0.5243 GB, free: 9.504 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005498/0.5685, allocations: 276 kB / 0.5246 GB, free: 9.23 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004997/0.569, allocations: 260.5 kB / 0.5248 GB, free: 8.934 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008926/0.5699, allocations: 394.2 kB / 0.5252 GB, free: 8.512 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.715e-06/0.5699, allocations: 0 / 0.5252 GB, free: 8.512 MB / 398.1 MB Notification: Performance of matching and sorting (n=38) (initialization_lambda0): time 0.001193/0.5711, allocations: 476.8 kB / 0.5256 GB, free: 8.039 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.252e-05/0.5711, allocations: 4 kB / 0.5256 GB, free: 8.035 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.748e-06/0.5711, allocations: 4 kB / 0.5256 GB, free: 8.031 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.993e-06/0.5711, allocations: 4 kB / 0.5256 GB, free: 8.027 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004/0.5715, allocations: 103.8 kB / 0.5257 GB, free: 7.926 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.177e-06/0.5716, allocations: 12.22 kB / 0.5258 GB, free: 7.914 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004865/0.5721, allocations: 47.66 kB / 0.5258 GB, free: 7.867 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.166e-05/0.5721, allocations: 19.98 kB / 0.5258 GB, free: 7.848 MB / 398.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: 4 (V1.state_b.phase,V1.state_a.phase,SinkP1.medium.phase,SourceP1.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (38): * Single equations (assignments): 38 * 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 0.0002479/0.5724, allocations: 204.1 kB / 0.526 GB, free: 7.641 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001433/0.5725, allocations: 35.53 kB / 0.526 GB, free: 7.605 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002898/0.5754, allocations: 1.979 MB / 0.528 GB, free: 5.617 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.653e-05/0.5755, allocations: 27.95 kB / 0.528 GB, free: 5.59 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.854e-06/0.5755, allocations: 0 / 0.528 GB, free: 5.59 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.586e-06/0.5755, allocations: 3.984 kB / 0.528 GB, free: 5.586 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001423/0.5769, allocations: 1.051 MB / 0.529 GB, free: 4.488 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-05/0.577, allocations: 0 / 0.529 GB, free: 4.488 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003435/0.5773, allocations: 79.88 kB / 0.5291 GB, free: 4.41 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.491e-06/0.5773, allocations: 4 kB / 0.5291 GB, free: 4.406 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.077e-05/0.5774, allocations: 11.98 kB / 0.5291 GB, free: 4.395 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.937e-06/0.5774, allocations: 0 / 0.5291 GB, free: 4.395 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.085e-06/0.5774, allocations: 0 / 0.5291 GB, free: 4.395 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001639/0.579, allocations: 1.13 MB / 0.5302 GB, free: 3.242 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003148/0.5793, allocations: 215.6 kB / 0.5304 GB, free: 3.012 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001155/0.5795, allocations: 19.78 kB / 0.5305 GB, free: 2.992 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003706/0.5799, allocations: 31.97 kB / 0.5305 GB, free: 2.961 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001008/0.58, allocations: 31.95 kB / 0.5305 GB, free: 2.93 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.778e-05/0.58, allocations: 12 kB / 0.5305 GB, free: 2.918 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0005037/0.5805, allocations: 378.8 kB / 0.5309 GB, free: 2.547 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5805, allocations: 0 / 0.5309 GB, free: 2.547 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.007543/0.5881, allocations: 1.144 MB / 0.532 GB, free: 1.402 MB / 398.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: 18 ($cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse7.phase,$cse7.region,$cse8.phase,$cse8.region,$cse9.region3boundary,$cse10.region3boundary,$cse11.phase,$cse11.region,$cse12.phase,$cse12.region,$cse15.phase,$cse15.region,SourceP1.medium.phase,SinkP1.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 9 * 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.01152/0.5996, allocations: 1.25 MB / 0.5332 GB, free: 156 kB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002874/0.6025, allocations: 0.8926 MB / 0.5341 GB, free: 15.26 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.48e-06/0.6026, allocations: 0 / 0.5341 GB, free: 15.26 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008264/0.6034, allocations: 0.5254 MB / 0.5346 GB, free: 14.74 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00159/0.605, allocations: 235.9 kB / 0.5348 GB, free: 14.52 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003058/0.6081, allocations: 1.612 MB / 0.5364 GB, free: 12.88 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007828/0.6089, allocations: 0.9794 MB / 0.5374 GB, free: 11.87 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001165/0.6101, allocations: 0.6093 MB / 0.538 GB, free: 11.26 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001624/0.6103, allocations: 55.44 kB / 0.538 GB, free: 11.2 MB / 414.1 MB Notification: Performance of SimCode: time 9.12e-07/0.6103, allocations: 0 / 0.538 GB, free: 11.2 MB / 414.1 MB Notification: Performance of Templates: time 0.06857/0.6789, allocations: 41.47 MB / 0.5785 GB, free: 1.727 MB / 446.1 MB make -j1 -f ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.makefile (rm -f ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.pipe ; mkfifo ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.pipe ; head -c 1048576 < ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.pipe >> ../files/ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.sim & ./ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.pipe 2>&1)