Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pipe.volume.medium.h|pipe.volume.medium.p|m_flow_initial",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization") translateModel(ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pipe.volume.medium.h|pipe.volume.medium.p|m_flow_initial",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001283/0.001283, allocations: 187 kB / 16.64 MB, free: 5.137 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.223/1.223, allocations: 205.1 MB / 222.5 MB, free: 8.473 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009117/0.0009117, allocations: 105.1 kB / 269.9 MB, free: 8.438 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3054/0.3054, allocations: 43.49 MB / 360.7 MB, free: 51.17 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001074/0.001074, allocations: 55.92 kB / 429.2 MB, free: 6.402 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1062/0.1073, allocations: 57.77 MB / 487 MB, free: 12.56 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization): time 0.2236/0.3309, allocations: 66.19 MB / 0.5402 GB, free: 23.57 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.03029/0.3612, allocations: 32.74 MB / 0.5722 GB, free: 1.008 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00185/0.3631, allocations: 55.44 kB / 0.5723 GB, free: 0.9805 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001934/0.3651, allocations: 0.5706 MB / 0.5728 GB, free: 0.6562 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0163/0.3814, allocations: 5.554 MB / 0.5782 GB, free: 13.98 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01062/0.392, allocations: 3.931 MB / 0.5821 GB, free: 11.91 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.005919/0.398, allocations: 4.827 MB / 0.5868 GB, free: 10.15 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0016/0.3996, allocations: 0.7361 MB / 0.5875 GB, free: 9.688 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.06903/0.4686, allocations: 28.92 MB / 0.6157 GB, free: 2.246 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.03232/0.501, allocations: 15.32 MB / 0.6307 GB, free: 2.719 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003884/0.5014, allocations: 68 kB / 0.6308 GB, free: 2.652 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01714/0.5186, allocations: 8.998 MB / 0.6396 GB, free: 9.645 MB / 458.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007719/0.5194, allocations: 410.6 kB / 0.64 GB, free: 9.242 MB / 458.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001115/0.5205, allocations: 0.7115 MB / 0.6406 GB, free: 8.527 MB / 458.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01464/0.5352, allocations: 7.141 MB / 0.6476 GB, free: 1.371 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.16e-06/0.5352, allocations: 0 / 0.6476 GB, free: 1.371 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.323e-06/0.5352, allocations: 0 / 0.6476 GB, free: 1.371 MB / 458.7 MB Notification: Performance of Transformations before backend: time 1.458e-05/0.5352, allocations: 3.938 kB / 0.6476 GB, free: 1.367 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 247 * Number of variables: 247 Notification: Performance of Generate backend data structure: time 0.006327/0.5416, allocations: 2.639 MB / 0.6502 GB, free: 14.68 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.703e-05/0.5416, allocations: 8.031 kB / 0.6502 GB, free: 14.67 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002792/0.5444, allocations: 461.9 kB / 0.6507 GB, free: 14.21 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001602/0.546, allocations: 0.9798 MB / 0.6516 GB, free: 13.19 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001525/0.5462, allocations: 149.4 kB / 0.6517 GB, free: 13.03 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001583/0.5464, allocations: 99.92 kB / 0.6518 GB, free: 12.93 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003498/0.5499, allocations: 1.865 MB / 0.6537 GB, free: 10.96 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.858e-05/0.5499, allocations: 3.938 kB / 0.6537 GB, free: 10.96 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001161/0.5501, allocations: 43.98 kB / 0.6537 GB, free: 10.92 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001085/0.5502, allocations: 81.95 kB / 0.6538 GB, free: 10.84 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003674/0.5539, allocations: 1.76 MB / 0.6555 GB, free: 9.078 MB / 474.7 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.01128/0.5652, allocations: 8.507 MB / 0.6638 GB, free: 15.97 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003007/0.5682, allocations: 1.368 MB / 0.6652 GB, free: 14.52 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009025/0.5691, allocations: 0.5059 MB / 0.6656 GB, free: 14 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2871/0.8562, allocations: 63.58 MB / 0.7277 GB, free: 139.7 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002139/0.8584, allocations: 0.8795 MB / 0.7286 GB, free: 139.5 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=82): time 2.615e-06/0.8584, allocations: 0 / 0.7286 GB, free: 139.5 MB / 0.4948 GB Notification: Performance of matching and sorting (n=86): time 0.009516/0.868, allocations: 4.501 MB / 0.733 GB, free: 137.5 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.475e-05/0.8681, allocations: 401 kB / 0.7334 GB, free: 137.1 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001079/0.8691, allocations: 1.057 MB / 0.7344 GB, free: 136.6 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 5.971e-05/0.8692, allocations: 43.42 kB / 0.7345 GB, free: 136.6 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002867/0.8695, allocations: 0.5729 MB / 0.735 GB, free: 136.1 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001624/0.8697, allocations: 296.8 kB / 0.7353 GB, free: 135.9 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000356/0.87, allocations: 276.4 kB / 0.7356 GB, free: 135.8 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 6.432e-05/0.8701, allocations: 361.7 kB / 0.7359 GB, free: 135.4 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009122/0.871, allocations: 0.5505 MB / 0.7364 GB, free: 135.2 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001095/0.8721, allocations: 1.03 MB / 0.7374 GB, free: 134.4 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001926/0.8741, allocations: 1.587 MB / 0.739 GB, free: 133.3 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.52e-06/0.8741, allocations: 3.531 kB / 0.739 GB, free: 133.3 MB / 0.4948 GB Notification: Performance of matching and sorting (n=162) (initialization): time 0.003168/0.8773, allocations: 1.953 MB / 0.7409 GB, free: 132.5 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 2.121e-05/0.8773, allocations: 10.5 kB / 0.7409 GB, free: 132.5 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.056e-05/0.8773, allocations: 14.97 kB / 0.7409 GB, free: 132.5 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005697/0.883, allocations: 1.149 MB / 0.7421 GB, free: 132.3 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008358/0.8839, allocations: 251.1 kB / 0.7423 GB, free: 132.3 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001915/0.8858, allocations: 1.485 MB / 0.7437 GB, free: 131.4 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001133/0.8869, allocations: 110.1 kB / 0.7438 GB, free: 131.3 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000114/0.8871, allocations: 69.56 kB / 0.7439 GB, free: 131.3 MB / 0.4948 GB Warning: Assuming fixed start value for the following 1 variables: m_flow_initial:DISCRETE(unit = "kg/s" fixed = true ) type: Real Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.00137/0.8884, allocations: 0.7928 MB / 0.7447 GB, free: 130.9 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001227/0.8897, allocations: 0.9961 MB / 0.7457 GB, free: 130.1 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002018/0.8917, allocations: 1.501 MB / 0.7471 GB, free: 129.1 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 7.975e-06/0.8917, allocations: 4.25 kB / 0.7471 GB, free: 129.1 MB / 0.4948 GB Notification: Performance of matching and sorting (n=162) (initialization_lambda0): time 0.003313/0.895, allocations: 1.8 MB / 0.7489 GB, free: 128.3 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.891e-05/0.8951, allocations: 11.41 kB / 0.7489 GB, free: 128.3 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.535e-05/0.8951, allocations: 15.28 kB / 0.7489 GB, free: 128.3 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001377/0.8965, allocations: 389.9 kB / 0.7493 GB, free: 128.2 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009293/0.8974, allocations: 277.4 kB / 0.7495 GB, free: 128.2 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001086/0.8985, allocations: 1.05 MB / 0.7506 GB, free: 127.5 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001096/0.8996, allocations: 128.4 kB / 0.7507 GB, free: 127.4 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001015/0.8997, allocations: 74.77 kB / 0.7508 GB, free: 127.4 MB / 0.4948 GB Warning: Assuming fixed start value for the following 1 variables: m_flow_initial:DISCRETE(unit = "kg/s" fixed = true ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 64 * Number of states: 0 () * Number of discrete variables: 19 (source.medium.phase,$PRE.m_flow_initial,m_flow_initial,$whenCondition2,$whenCondition1,valve.state_b.phase,valve.state_a.phase,pipe.staticPipe2.flowModel.states[2].phase,pipe.staticPipe2.flowModel.states[1].phase,pipe.staticPipe1.flowModel.states[2].phase,pipe.staticPipe1.flowModel.states[1].phase,pipe.volume.regularFlow[1],pipe.volume.regularFlow[2],pipe.volume.heatTransfer.states[1].phase,pipe.volume.inFlow[2],pipe.volume.inFlow[1],sink.state.phase,sink.medium.phase,source.state.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (125): * Single equations (assignments): 124 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,35)} Notification: Performance of prepare postOptimizeDAE: time 0.0003537/0.9001, allocations: 279.4 kB / 0.751 GB, free: 127.2 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001832/0.9003, allocations: 125.2 kB / 0.7512 GB, free: 127.1 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004673/0.905, allocations: 4.003 MB / 0.7551 GB, free: 125.3 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.922e-05/0.905, allocations: 48.17 kB / 0.7551 GB, free: 125.3 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.253e-06/0.905, allocations: 0 / 0.7551 GB, free: 125.3 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.354e-05/0.9051, allocations: 9.125 kB / 0.7551 GB, free: 125.3 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00553/0.9106, allocations: 5.513 MB / 0.7605 GB, free: 122.6 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.472e-06/0.9106, allocations: 0 / 0.7605 GB, free: 122.6 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000595/0.9112, allocations: 165.2 kB / 0.7607 GB, free: 122.6 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00536/0.9166, allocations: 1.531 MB / 0.7622 GB, free: 122.1 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.439e-05/0.9167, allocations: 27.98 kB / 0.7622 GB, free: 122.1 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001152/0.9178, allocations: 2.083 MB / 0.7642 GB, free: 120 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.635e-06/0.9178, allocations: 4.031 kB / 0.7642 GB, free: 120 MB / 0.4948 GB Error: Jacobian A contains non-linear components. This indicates a singular system or internal generation errors. Notification: Performance of postOpt symbolicJacobian (simulation): time 0.4046/1.322, allocations: 102.8 MB / 0.8646 GB, free: 15.66 MB / 0.4948 GB Error: post-optimization module symbolicJacobian (simulation) failed.