Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.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) 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(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_trunk_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_trunk_Modelica.Fluid.Examples.TraceSubstances.RoomCO2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001301/0.001301, 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.32/1.32, allocations: 226.7 MB / 245.5 MB, free: 6.969 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009641/0.0009638, allocations: 101 kB / 296.7 MB, free: 6.457 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001064/0.001064, allocations: 51.92 kB / 356.6 MB, free: 10.59 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2218/0.2229, allocations: 50.44 MB / 407 MB, free: 27.79 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.TraceSubstances.RoomCO2): time 0.449/0.6719, allocations: 204.8 MB / 0.5975 GB, free: 7.133 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.01578/0.6878, allocations: 10.78 MB / 0.608 GB, free: 12.32 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001518/0.6894, allocations: 27.75 kB / 0.608 GB, free: 12.29 MB / 426.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001613/0.691, allocations: 410 kB / 0.6084 GB, free: 11.89 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.009799/0.7008, allocations: 2.823 MB / 0.6112 GB, free: 9.059 MB / 426.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.009551/0.7104, allocations: 2.302 MB / 0.6134 GB, free: 6.766 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.004654/0.7151, allocations: 3.792 MB / 0.6171 GB, free: 2.965 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001373/0.7165, allocations: 0.665 MB / 0.6178 GB, free: 2.285 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007292/0.7238, allocations: 2.527 MB / 0.6202 GB, free: 15.75 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002442/0.7262, allocations: 1.09 MB / 0.6213 GB, free: 14.66 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004181/0.7267, allocations: 60 kB / 0.6214 GB, free: 14.6 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01236/0.739, allocations: 6.488 MB / 0.6277 GB, free: 8.098 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00116/0.7402, allocations: 498.7 kB / 0.6282 GB, free: 7.609 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001618/0.7419, allocations: 0.5833 MB / 0.6288 GB, free: 7.023 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0116/0.7535, allocations: 4.731 MB / 0.6334 GB, free: 2.281 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.854e-06/0.7536, allocations: 0 / 0.6334 GB, free: 2.281 MB / 442.7 MB Notification: Performance of FrontEnd: time 6.081e-06/0.7536, allocations: 0 / 0.6334 GB, free: 2.281 MB / 442.7 MB Notification: Performance of Transformations before backend: time 9.57e-05/0.7537, allocations: 3.938 kB / 0.6334 GB, free: 2.277 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.007098/0.7608, allocations: 2.065 MB / 0.6354 GB, free: 148 kB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.506e-05/0.7609, allocations: 12.03 kB / 0.6354 GB, free: 136 kB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006917/0.7616, allocations: 126.7 kB / 0.6355 GB, free: 8 kB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001848/0.7634, allocations: 0.6774 MB / 0.6362 GB, free: 15.29 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001624/0.7636, allocations: 137.4 kB / 0.6363 GB, free: 15.14 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002548/0.7639, allocations: 91.92 kB / 0.6364 GB, free: 15.05 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002855/0.7668, allocations: 1.459 MB / 0.6378 GB, free: 13.53 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.072e-05/0.7668, allocations: 0 / 0.6378 GB, free: 13.53 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001367/0.7669, allocations: 47.92 kB / 0.6379 GB, free: 13.48 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.673e-05/0.7671, allocations: 73.89 kB / 0.6379 GB, free: 13.41 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002561/0.7696, allocations: 1.46 MB / 0.6394 GB, free: 11.95 MB / 458.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.00951/0.7791, allocations: 6.333 MB / 0.6456 GB, free: 5.188 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001893/0.7811, allocations: 0.9682 MB / 0.6465 GB, free: 4.211 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007727/0.7819, allocations: 0.5275 MB / 0.647 GB, free: 3.684 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001278/0.7831, allocations: 1.801 MB / 0.6488 GB, free: 1.492 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.529e-05/0.7832, allocations: 43.56 kB / 0.6488 GB, free: 1.441 MB / 458.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0004771/0.7837, allocations: 98.95 kB / 0.6489 GB, free: 1.344 MB / 458.7 MB Notification: Performance of pre-optimization done (n=84): time 3.506e-06/0.7837, allocations: 4 kB / 0.6489 GB, free: 1.34 MB / 458.7 MB Notification: Performance of matching and sorting (n=96): time 0.01618/0.7999, allocations: 4.779 MB / 0.6536 GB, free: 12.51 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.37e-05/0.8, allocations: 123.8 kB / 0.6537 GB, free: 12.36 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009761/0.801, allocations: 0.7699 MB / 0.6545 GB, free: 11.58 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001065/0.8011, allocations: 41.7 kB / 0.6545 GB, free: 11.54 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002999/0.8014, allocations: 459.2 kB / 0.6549 GB, free: 11.08 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002612/0.8017, allocations: 339.1 kB / 0.6553 GB, free: 10.74 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003905/0.8021, allocations: 246.7 kB / 0.6555 GB, free: 10.5 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001689/0.8022, allocations: 406.7 kB / 0.6559 GB, free: 10.09 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001151/0.8034, allocations: 0.6228 MB / 0.6565 GB, free: 9.465 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001448/0.8049, allocations: 0.9537 MB / 0.6574 GB, free: 8.363 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002623/0.8075, allocations: 1.654 MB / 0.659 GB, free: 6.559 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.584e-06/0.8075, allocations: 4 kB / 0.659 GB, free: 6.555 MB / 474.7 MB Notification: Performance of matching and sorting (n=155) (initialization): time 0.00408/0.8116, allocations: 1.941 MB / 0.6609 GB, free: 4.586 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.158e-05/0.8117, allocations: 67.41 kB / 0.661 GB, free: 4.508 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.915e-05/0.8117, allocations: 15.94 kB / 0.661 GB, free: 4.492 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00156/0.8133, allocations: 309.1 kB / 0.6613 GB, free: 4.188 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001084/0.8144, allocations: 271.6 kB / 0.6616 GB, free: 3.922 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001613/0.816, allocations: 0.9074 MB / 0.6624 GB, free: 2.988 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001148/0.8172, allocations: 103.8 kB / 0.6625 GB, free: 2.887 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001485/0.8173, allocations: 71.97 kB / 0.6626 GB, free: 2.816 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001491/0.8188, allocations: 0.8591 MB / 0.6635 GB, free: 1.957 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001376/0.8202, allocations: 0.9458 MB / 0.6644 GB, free: 0.8672 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002554/0.8228, allocations: 1.631 MB / 0.666 GB, free: 15.08 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 7.024e-06/0.8228, allocations: 8 kB / 0.666 GB, free: 15.07 MB / 490.7 MB Notification: Performance of matching and sorting (n=155) (initialization_lambda0): time 0.003772/0.8266, allocations: 1.906 MB / 0.6678 GB, free: 13.15 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.924e-05/0.8267, allocations: 67.39 kB / 0.6679 GB, free: 13.07 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.258e-05/0.8267, allocations: 12.59 kB / 0.6679 GB, free: 13.06 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001446/0.8281, allocations: 308.6 kB / 0.6682 GB, free: 12.75 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001056/0.8292, allocations: 267.6 kB / 0.6685 GB, free: 12.49 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001532/0.8307, allocations: 0.9152 MB / 0.6694 GB, free: 11.55 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00113/0.8319, allocations: 99.92 kB / 0.6695 GB, free: 11.45 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000135/0.832, allocations: 67.98 kB / 0.6695 GB, free: 11.39 MB / 490.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.0004094/0.8324, allocations: 263.8 kB / 0.6698 GB, free: 11.12 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002404/0.8327, allocations: 110.8 kB / 0.6699 GB, free: 11.01 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00391/0.8366, allocations: 1.955 MB / 0.6718 GB, free: 9.027 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.359e-05/0.8366, allocations: 8 kB / 0.6718 GB, free: 9.02 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.472e-06/0.8367, allocations: 4 kB / 0.6718 GB, free: 9.016 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.61e-05/0.8367, allocations: 11.95 kB / 0.6718 GB, free: 9.004 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005396/0.8421, allocations: 3.11 MB / 0.6748 GB, free: 5.797 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.384e-06/0.8421, allocations: 0 / 0.6748 GB, free: 5.797 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008378/0.843, allocations: 183.7 kB / 0.675 GB, free: 5.617 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001834/0.8448, allocations: 372.5 kB / 0.6754 GB, free: 5.25 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001216/0.845, allocations: 39.97 kB / 0.6754 GB, free: 5.211 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00141/0.8464, allocations: 0.8802 MB / 0.6763 GB, free: 4.305 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.042e-06/0.8464, allocations: 4.031 kB / 0.6763 GB, free: 4.301 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.008827/0.8552, allocations: 3.897 MB / 0.6801 GB, free: 308 kB / 490.7 MB Error: post-optimization module symbolicJacobian (simulation) failed.