Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001666/0.001666, allocations: 207.3 kB / 17.99 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.314/1.314, allocations: 226.7 MB / 245.5 MB, free: 6.965 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009826/0.0009826, allocations: 101.7 kB / 296.7 MB, free: 6.449 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3171/0.3171, allocations: 44.83 MB / 392.7 MB, free: 34.74 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001218/0.001218, allocations: 63.91 kB / 465.5 MB, free: 12.09 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2735/0.2748, allocations: 62.01 MB / 0.5151 GB, free: 37.87 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization): time 0.04953/0.3244, allocations: 66.27 MB / 0.5799 GB, free: 5.684 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.03803/0.3624, allocations: 32.75 MB / 0.6118 GB, free: 6.324 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002015/0.3645, allocations: 55.56 kB / 0.6119 GB, free: 6.27 MB / 426.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001784/0.3663, allocations: 0.5713 MB / 0.6125 GB, free: 5.695 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01556/0.3819, allocations: 5.576 MB / 0.6179 GB, free: 128 kB / 426.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0102/0.3921, allocations: 3.938 MB / 0.6217 GB, free: 12.19 MB / 442.7 MB Notification: Performance of NFFlatten.flatten: time 0.00528/0.3974, allocations: 4.831 MB / 0.6265 GB, free: 7.352 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00142/0.3989, allocations: 0.7353 MB / 0.6272 GB, free: 6.605 MB / 442.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.06322/0.4621, allocations: 28.97 MB / 0.6555 GB, free: 9.328 MB / 474.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.03409/0.4963, allocations: 15.34 MB / 0.6705 GB, free: 9.781 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003552/0.4967, allocations: 68 kB / 0.6705 GB, free: 9.715 MB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01538/0.512, allocations: 9.029 MB / 0.6793 GB, free: 0.6758 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007526/0.5128, allocations: 394.7 kB / 0.6797 GB, free: 296 kB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 0.2163/0.7292, allocations: 0.7185 MB / 0.6804 GB, free: 57.07 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01479/0.744, allocations: 7.152 MB / 0.6874 GB, free: 56.97 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.552e-06/0.744, allocations: 0 / 0.6874 GB, free: 56.97 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.363e-06/0.744, allocations: 1.75 kB / 0.6874 GB, free: 56.97 MB / 490.7 MB Notification: Performance of Transformations before backend: time 2.469e-05/0.7441, allocations: 0 / 0.6874 GB, free: 56.97 MB / 490.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.007223/0.7513, allocations: 2.644 MB / 0.69 GB, free: 55.88 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.991e-05/0.7513, allocations: 7.719 kB / 0.69 GB, free: 55.88 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002932/0.7543, allocations: 465.5 kB / 0.6904 GB, free: 55.81 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001726/0.756, allocations: 0.9787 MB / 0.6914 GB, free: 55.48 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001235/0.7562, allocations: 143.8 kB / 0.6915 GB, free: 55.42 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001624/0.7563, allocations: 97.41 kB / 0.6916 GB, free: 55.42 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003505/0.7598, allocations: 1.864 MB / 0.6934 GB, free: 55.13 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.77e-05/0.7599, allocations: 4.656 kB / 0.6934 GB, free: 55.13 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001244/0.76, allocations: 48.44 kB / 0.6935 GB, free: 55.12 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.447e-05/0.7601, allocations: 80.69 kB / 0.6936 GB, free: 55.12 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003559/0.7637, allocations: 1.76 MB / 0.6953 GB, free: 55.12 MB / 490.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.01058/0.7743, allocations: 8.507 MB / 0.7036 GB, free: 50.24 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00307/0.7774, allocations: 1.367 MB / 0.7049 GB, free: 49.92 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009361/0.7783, allocations: 0.5065 MB / 0.7054 GB, free: 49.88 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1187/0.8971, allocations: 70.58 MB / 0.7743 GB, free: 3.309 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002415/0.8995, allocations: 0.8712 MB / 0.7752 GB, free: 2.617 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=82): time 3.216e-06/0.8995, allocations: 0 / 0.7752 GB, free: 2.617 MB / 0.4948 GB Notification: Performance of matching and sorting (n=86): time 0.01082/0.9104, allocations: 4.502 MB / 0.7796 GB, free: 15 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001436/0.9105, allocations: 397.4 kB / 0.78 GB, free: 14.53 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001254/0.9118, allocations: 1.067 MB / 0.781 GB, free: 13.73 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 7.506e-05/0.9119, allocations: 45.27 kB / 0.7811 GB, free: 13.69 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003877/0.9123, allocations: 0.5704 MB / 0.7816 GB, free: 13.31 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002357/0.9125, allocations: 304.6 kB / 0.7819 GB, free: 13.06 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004234/0.913, allocations: 275.2 kB / 0.7822 GB, free: 12.88 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001292/0.9131, allocations: 357.5 kB / 0.7825 GB, free: 12.55 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009991/0.9141, allocations: 0.5502 MB / 0.783 GB, free: 12.2 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001339/0.9155, allocations: 1.027 MB / 0.784 GB, free: 11.21 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002287/0.9178, allocations: 1.577 MB / 0.7856 GB, free: 9.977 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.476e-06/0.9178, allocations: 8 kB / 0.7856 GB, free: 9.969 MB / 0.5105 GB Notification: Performance of matching and sorting (n=162) (initialization): time 0.003526/0.9213, allocations: 1.964 MB / 0.7875 GB, free: 8.703 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 2.915e-05/0.9213, allocations: 15.94 kB / 0.7875 GB, free: 8.688 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.075e-05/0.9214, allocations: 16 kB / 0.7875 GB, free: 8.672 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005826/0.9272, allocations: 1.143 MB / 0.7887 GB, free: 7.664 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001004/0.9282, allocations: 248.6 kB / 0.7889 GB, free: 7.449 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002203/0.9305, allocations: 1.484 MB / 0.7903 GB, free: 6.336 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001417/0.9319, allocations: 111.8 kB / 0.7905 GB, free: 6.246 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001276/0.932, allocations: 78.28 kB / 0.7905 GB, free: 6.184 MB / 0.5105 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.00161/0.9336, allocations: 0.7832 MB / 0.7913 GB, free: 5.688 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001279/0.9349, allocations: 0.9934 MB / 0.7923 GB, free: 4.703 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002181/0.9371, allocations: 1.513 MB / 0.7937 GB, free: 3.496 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 7.705e-06/0.9371, allocations: 6.078 kB / 0.7937 GB, free: 3.492 MB / 0.5105 GB Notification: Performance of matching and sorting (n=162) (initialization_lambda0): time 0.00353/0.9407, allocations: 1.795 MB / 0.7955 GB, free: 2.289 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 2.1e-05/0.9407, allocations: 12 kB / 0.7955 GB, free: 2.277 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.506e-05/0.9408, allocations: 15.94 kB / 0.7955 GB, free: 2.262 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001475/0.9422, allocations: 384.6 kB / 0.7959 GB, free: 1.961 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009344/0.9432, allocations: 279 kB / 0.7962 GB, free: 1.719 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001215/0.9444, allocations: 1.065 MB / 0.7972 GB, free: 0.8555 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001269/0.9457, allocations: 121.6 kB / 0.7973 GB, free: 0.7617 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001096/0.9458, allocations: 67.05 kB / 0.7974 GB, free: 0.707 MB / 0.5105 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.0004213/0.9462, allocations: 293.1 kB / 0.7977 GB, free: 480 kB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002002/0.9464, allocations: 122.5 kB / 0.7978 GB, free: 356 kB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004836/0.9513, allocations: 3.995 MB / 0.8017 GB, free: 13.76 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.605e-05/0.9513, allocations: 46.06 kB / 0.8017 GB, free: 13.72 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.966e-06/0.9514, allocations: 4.062 kB / 0.8017 GB, free: 13.72 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.349e-05/0.9514, allocations: 11.97 kB / 0.8017 GB, free: 13.71 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006467/0.9578, allocations: 5.514 MB / 0.8071 GB, free: 9.645 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.624e-06/0.9579, allocations: 4 kB / 0.8071 GB, free: 9.641 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006312/0.9585, allocations: 158.7 kB / 0.8073 GB, free: 9.492 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005936/0.9645, allocations: 1.527 MB / 0.8088 GB, free: 7.953 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.721e-05/0.9645, allocations: 31.98 kB / 0.8088 GB, free: 7.922 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001641/0.9662, allocations: 2.082 MB / 0.8108 GB, free: 5.797 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.767e-06/0.9662, allocations: 3.938 kB / 0.8108 GB, free: 5.793 MB / 0.5261 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.6798/1.646, allocations: 104 MB / 0.9124 GB, free: 227.3 MB / 0.6042 GB Error: post-optimization module symbolicJacobian (simulation) failed.