Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.conf.json 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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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) Running command: translateModel(Modelica.Fluid.Examples.TraceSubstances.RoomCO2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.Xi.1.|volume.medium.p",fileNamePrefix="Modelica_4.0.0_Modelica.Fluid.Examples.TraceSubstances.RoomCO2") translateModel(Modelica.Fluid.Examples.TraceSubstances.RoomCO2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.Xi.1.|volume.medium.p",fileNamePrefix="Modelica_4.0.0_Modelica.Fluid.Examples.TraceSubstances.RoomCO2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001571/0.001571, allocations: 188.9 kB / 17.27 MB, free: 4.504 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.386/1.386, allocations: 222.9 MB / 240.9 MB, free: 10.99 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009855/0.0009855, allocations: 105.5 kB / 291.2 MB, free: 10.96 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000845/0.000845, allocations: 39.94 kB / 350 MB, free: 104 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2597/0.2606, allocations: 49.44 MB / 399.5 MB, free: 33.38 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.TraceSubstances.RoomCO2): time 0.4909/0.7515, allocations: 204.5 MB / 0.5899 GB, free: 14.83 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.01498/0.7665, allocations: 10.78 MB / 0.6004 GB, free: 4.727 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001616/0.7682, allocations: 31.75 kB / 0.6004 GB, free: 4.695 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001776/0.77, allocations: 414 kB / 0.6008 GB, free: 4.289 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01134/0.7814, allocations: 2.827 MB / 0.6036 GB, free: 1.453 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.008836/0.7903, allocations: 2.298 MB / 0.6058 GB, free: 15.16 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.004669/0.7949, allocations: 3.792 MB / 0.6095 GB, free: 11.36 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001471/0.7964, allocations: 0.6681 MB / 0.6102 GB, free: 10.68 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007048/0.8035, allocations: 2.508 MB / 0.6126 GB, free: 8.168 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002178/0.8057, allocations: 1.094 MB / 0.6137 GB, free: 7.07 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000393/0.8061, allocations: 60 kB / 0.6137 GB, free: 7.012 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01189/0.818, allocations: 6.454 MB / 0.62 GB, free: 0.5469 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008654/0.8189, allocations: 486.8 kB / 0.6205 GB, free: 72 kB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001099/0.82, allocations: 0.5834 MB / 0.6211 GB, free: 15.48 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01015/0.8302, allocations: 4.696 MB / 0.6257 GB, free: 10.78 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.452e-06/0.8302, allocations: 0 / 0.6257 GB, free: 10.78 MB / 442.7 MB Notification: Performance of FrontEnd: time 9.01e-07/0.8302, allocations: 3.938 kB / 0.6257 GB, free: 10.77 MB / 442.7 MB Notification: Performance of Transformations before backend: time 6.599e-05/0.8303, allocations: 0 / 0.6257 GB, free: 10.77 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 228 * Number of variables: 228 Notification: Performance of Generate backend data structure: time 0.005211/0.8355, allocations: 2.05 MB / 0.6277 GB, free: 8.656 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.749e-05/0.8356, allocations: 8.875 kB / 0.6277 GB, free: 8.648 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000472/0.8361, allocations: 130.7 kB / 0.6278 GB, free: 8.52 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001321/0.8374, allocations: 0.6851 MB / 0.6285 GB, free: 7.793 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001414/0.8375, allocations: 129.4 kB / 0.6286 GB, free: 7.652 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001596/0.8377, allocations: 103.9 kB / 0.6287 GB, free: 7.551 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002266/0.84, allocations: 1.452 MB / 0.6301 GB, free: 6.035 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.699e-05/0.84, allocations: 3.938 kB / 0.6301 GB, free: 6.031 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001177/0.8402, allocations: 39.98 kB / 0.6302 GB, free: 5.992 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.337e-05/0.8403, allocations: 73.89 kB / 0.6302 GB, free: 5.918 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002252/0.8425, allocations: 1.464 MB / 0.6317 GB, free: 4.457 MB / 442.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.008309/0.8508, allocations: 6.322 MB / 0.6378 GB, free: 13.71 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001795/0.8527, allocations: 0.9736 MB / 0.6388 GB, free: 12.73 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007227/0.8534, allocations: 0.5237 MB / 0.6393 GB, free: 12.2 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001249/0.8546, allocations: 1.801 MB / 0.641 GB, free: 10.01 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.905e-05/0.8547, allocations: 47.56 kB / 0.6411 GB, free: 9.957 MB / 458.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0004725/0.8552, allocations: 103 kB / 0.6412 GB, free: 9.855 MB / 458.7 MB Notification: Performance of pre-optimization done (n=84): time 2.525e-06/0.8552, allocations: 4 kB / 0.6412 GB, free: 9.852 MB / 458.7 MB Notification: Performance of matching and sorting (n=96): time 0.01549/0.8707, allocations: 4.787 MB / 0.6459 GB, free: 5.016 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.468e-05/0.8708, allocations: 115.8 kB / 0.646 GB, free: 4.875 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001051/0.8718, allocations: 0.7738 MB / 0.6467 GB, free: 4.094 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001134/0.872, allocations: 49.7 kB / 0.6468 GB, free: 4.039 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003031/0.8723, allocations: 443.2 kB / 0.6472 GB, free: 3.598 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002511/0.8725, allocations: 343.1 kB / 0.6475 GB, free: 3.258 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003953/0.8729, allocations: 254.7 kB / 0.6478 GB, free: 3.004 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001575/0.8731, allocations: 398.7 kB / 0.6482 GB, free: 2.605 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001123/0.8742, allocations: 0.6189 MB / 0.6488 GB, free: 1.984 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001387/0.8756, allocations: 0.9576 MB / 0.6497 GB, free: 0.875 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002541/0.8782, allocations: 1.658 MB / 0.6513 GB, free: 15.07 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.821e-06/0.8782, allocations: 4 kB / 0.6513 GB, free: 15.06 MB / 474.7 MB Notification: Performance of matching and sorting (n=155) (initialization): time 0.003661/0.8819, allocations: 1.941 MB / 0.6532 GB, free: 13.09 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.661e-05/0.8819, allocations: 67.39 kB / 0.6533 GB, free: 13.02 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.391e-05/0.882, allocations: 8 kB / 0.6533 GB, free: 13.01 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001485/0.8835, allocations: 309.2 kB / 0.6536 GB, free: 12.7 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001023/0.8845, allocations: 275.5 kB / 0.6538 GB, free: 12.43 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0015/0.886, allocations: 0.9114 MB / 0.6547 GB, free: 11.5 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001092/0.8871, allocations: 103.8 kB / 0.6548 GB, free: 11.39 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001355/0.8873, allocations: 71.97 kB / 0.6549 GB, free: 11.32 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001454/0.8887, allocations: 0.8498 MB / 0.6557 GB, free: 10.47 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001336/0.8901, allocations: 0.9459 MB / 0.6567 GB, free: 9.379 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002465/0.8925, allocations: 1.642 MB / 0.6583 GB, free: 7.582 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.57e-06/0.8926, allocations: 4 kB / 0.6583 GB, free: 7.578 MB / 474.7 MB Notification: Performance of matching and sorting (n=155) (initialization_lambda0): time 0.003667/0.8962, allocations: 1.907 MB / 0.6601 GB, free: 5.652 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.83e-05/0.8963, allocations: 71.47 kB / 0.6602 GB, free: 5.57 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.059e-05/0.8963, allocations: 8 kB / 0.6602 GB, free: 5.562 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00139/0.8977, allocations: 308.5 kB / 0.6605 GB, free: 5.258 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009734/0.8987, allocations: 271.5 kB / 0.6608 GB, free: 4.992 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00152/0.9002, allocations: 0.9075 MB / 0.6616 GB, free: 4.059 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001224/0.9015, allocations: 103.9 kB / 0.6617 GB, free: 3.957 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001462/0.9016, allocations: 71.97 kB / 0.6618 GB, free: 3.887 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 46 * Number of states: 0 () * Number of discrete variables: 6 (traceVolume.ind,traceSource.ind,volume.regularFlow[1],volume.regularFlow[2],volume.inFlow[2],volume.inFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (148): * Single equations (assignments): 145 * Array equations: 0 * Algorithm blocks: 2 * 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 {(2,6)} Notification: Performance of prepare postOptimizeDAE: time 0.0005328/0.9022, allocations: 259.8 kB / 0.6621 GB, free: 3.625 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002401/0.9024, allocations: 102.8 kB / 0.6622 GB, free: 3.523 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003775/0.9062, allocations: 1.967 MB / 0.6641 GB, free: 1.523 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.074e-05/0.9062, allocations: 8 kB / 0.6641 GB, free: 1.516 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.482e-06/0.9062, allocations: 0 / 0.6641 GB, free: 1.516 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.071e-05/0.9062, allocations: 7.984 kB / 0.6641 GB, free: 1.508 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005031/0.9113, allocations: 3.106 MB / 0.6671 GB, free: 14.3 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.426e-06/0.9113, allocations: 0 / 0.6671 GB, free: 14.3 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007847/0.9121, allocations: 179.7 kB / 0.6673 GB, free: 14.13 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001716/0.9138, allocations: 380.5 kB / 0.6677 GB, free: 13.75 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.143e-05/0.9139, allocations: 35.98 kB / 0.6677 GB, free: 13.72 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00133/0.9153, allocations: 0.8802 MB / 0.6686 GB, free: 12.81 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.938e-06/0.9153, allocations: 4 kB / 0.6686 GB, free: 12.81 MB / 490.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/Compiler/BackEnd/Differentiate.mo:267:5-267:157:writable] Error: Derivative of expression "pipe.flowModel.states[2].T = Modelica.Math.Nonlinear.solveOneNonlinearEquation(function Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe.Medium.T_phX.f_nonlinear(#(pipe.flowModel.states[2].p), #(boundary4.ports[1].h_outflow), #({boundary4.X[1]})), 190.0, 647.0, 1e-13)" w.r.t. "dummyVarA" is non-existent. Error: Internal error SymbolicJacobian.deriveAll failed [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/Compiler/BackEnd/SymbolicJacobian.mo:2440:7-2440:87:writable] Error: Internal error function generateSymbolicJacobian failed [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/Compiler/BackEnd/SymbolicJacobian.mo:2231:9-2231:79:writable] Error: Internal error function createJacobian failed Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008481/0.9238, allocations: 3.885 MB / 0.6723 GB, free: 8.82 MB / 490.7 MB Error: post-optimization module symbolicJacobian (simulation) failed.