Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_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_cpp_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_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009514/0.000951, allocations: 193.2 kB / 17.05 MB, free: 5.098 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.222/1.222, allocations: 226.6 MB / 244.4 MB, free: 8.285 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008056/0.0008055, allocations: 95.08 kB / 296.4 MB, free: 7.008 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002247/0.0002246, allocations: 4 kB / 356.2 MB, free: 11.22 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1895/0.1898, allocations: 51.3 MB / 407.5 MB, free: 27.83 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.TraceSubstances.RoomCO2): time 0.3359/0.5257, allocations: 187.4 MB / 0.5809 GB, free: 5.914 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.01069/0.5364, allocations: 9.748 MB / 0.5905 GB, free: 2.008 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009267/0.5374, allocations: 22.5 kB / 0.5905 GB, free: 1.996 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001156/0.5386, allocations: 342.8 kB / 0.5908 GB, free: 1.75 MB / 394.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:730:36-731:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:728:36-729:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:784:36-785:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:782:36-783:54:writable] Warning: 'each' used when modifying non-array element m_flow. Notification: Performance of NFTyping.typeBindings: time 0.006782/0.5454, allocations: 2.526 MB / 0.5933 GB, free: 188 kB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005014/0.5504, allocations: 1.995 MB / 0.5952 GB, free: 14.63 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.003023/0.5534, allocations: 3.14 MB / 0.5983 GB, free: 12.19 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001046/0.5545, allocations: 0.6356 MB / 0.5989 GB, free: 11.66 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004952/0.5595, allocations: 2.36 MB / 0.6012 GB, free: 9.602 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001673/0.5612, allocations: 1.055 MB / 0.6023 GB, free: 8.668 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002958/0.5615, allocations: 60 kB / 0.6023 GB, free: 8.609 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009145/0.5706, allocations: 5.2 MB / 0.6074 GB, free: 4.027 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007934/0.5714, allocations: 490.7 kB / 0.6079 GB, free: 3.547 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005243/0.572, allocations: 237.2 kB / 0.6081 GB, free: 3.309 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004994/0.577, allocations: 3.064 MB / 0.6111 GB, free: 244 kB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.417e-06/0.577, allocations: 0 / 0.6111 GB, free: 244 kB / 410.7 MB Notification: Performance of FrontEnd: time 1.312e-06/0.577, allocations: 0 / 0.6111 GB, free: 244 kB / 410.7 MB Notification: Performance of Transformations before backend: time 4.343e-05/0.5771, allocations: 0 / 0.6111 GB, free: 244 kB / 410.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.00414/0.5812, allocations: 1.835 MB / 0.6129 GB, free: 14.34 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.344e-05/0.5813, allocations: 16.03 kB / 0.6129 GB, free: 14.32 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004668/0.5817, allocations: 122.7 kB / 0.613 GB, free: 14.2 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001108/0.5828, allocations: 0.6622 MB / 0.6136 GB, free: 13.5 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001187/0.583, allocations: 133.4 kB / 0.6138 GB, free: 13.35 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001534/0.5831, allocations: 87.98 kB / 0.6139 GB, free: 13.27 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002136/0.5853, allocations: 1.452 MB / 0.6153 GB, free: 11.75 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.245e-05/0.5853, allocations: 4 kB / 0.6153 GB, free: 11.75 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001139/0.5854, allocations: 39.98 kB / 0.6153 GB, free: 11.71 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.435e-05/0.5855, allocations: 73.91 kB / 0.6154 GB, free: 11.63 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002128/0.5877, allocations: 1.46 MB / 0.6168 GB, free: 10.17 MB / 426.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.007959/0.5956, allocations: 6.337 MB / 0.623 GB, free: 3.406 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001745/0.5974, allocations: 0.9761 MB / 0.624 GB, free: 2.426 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007412/0.5982, allocations: 0.516 MB / 0.6245 GB, free: 1.91 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001285/0.5995, allocations: 1.801 MB / 0.6262 GB, free: 15.72 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.78e-05/0.5995, allocations: 55.52 kB / 0.6263 GB, free: 15.66 MB / 442.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0004575/0.6, allocations: 102.9 kB / 0.6264 GB, free: 15.55 MB / 442.7 MB Notification: Performance of pre-optimization done (n=84): time 3.066e-06/0.6, allocations: 0 / 0.6264 GB, free: 15.55 MB / 442.7 MB Notification: Performance of matching and sorting (n=96): time 0.01609/0.6161, allocations: 4.943 MB / 0.6312 GB, free: 10.56 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.59e-05/0.6162, allocations: 115.8 kB / 0.6313 GB, free: 10.42 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009711/0.6172, allocations: 0.7698 MB / 0.6321 GB, free: 9.645 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001431/0.6173, allocations: 49.7 kB / 0.6321 GB, free: 9.59 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003024/0.6176, allocations: 451.2 kB / 0.6325 GB, free: 9.141 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002726/0.6179, allocations: 343.1 kB / 0.6329 GB, free: 8.801 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.887e-05/0.618, allocations: 27.94 kB / 0.6329 GB, free: 8.773 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001609/0.6182, allocations: 398.7 kB / 0.6333 GB, free: 8.375 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001156/0.6193, allocations: 0.6077 MB / 0.6339 GB, free: 7.77 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00136/0.6207, allocations: 0.9615 MB / 0.6348 GB, free: 6.66 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001362/0.6221, allocations: 0.791 MB / 0.6356 GB, free: 5.859 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.333e-06/0.6221, allocations: 4 kB / 0.6356 GB, free: 5.855 MB / 442.7 MB Notification: Performance of matching and sorting (n=155) (initialization): time 0.003608/0.6257, allocations: 1.914 MB / 0.6374 GB, free: 3.918 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002668/0.626, allocations: 451.3 kB / 0.6379 GB, free: 3.32 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.061e-05/0.626, allocations: 8 kB / 0.6379 GB, free: 3.312 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001601/0.6276, allocations: 336.5 kB / 0.6382 GB, free: 2.98 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001059/0.6287, allocations: 271.5 kB / 0.6385 GB, free: 2.715 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001537/0.6302, allocations: 0.9231 MB / 0.6394 GB, free: 1.766 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001162/0.6314, allocations: 103.8 kB / 0.6395 GB, free: 1.664 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001625/0.6316, allocations: 71.97 kB / 0.6395 GB, free: 1.594 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.448e-06/0.6316, allocations: 8.562 kB / 0.6395 GB, free: 1.586 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003447/0.6351, allocations: 1.8 MB / 0.6413 GB, free: 15.77 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.451e-05/0.6351, allocations: 8 kB / 0.6413 GB, free: 15.76 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00151/0.6366, allocations: 341.1 kB / 0.6416 GB, free: 15.43 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001023/0.6376, allocations: 271.5 kB / 0.6419 GB, free: 15.16 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001474/0.6391, allocations: 0.9195 MB / 0.6428 GB, free: 14.21 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001107/0.6403, allocations: 99.89 kB / 0.6429 GB, free: 14.12 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001509/0.6404, allocations: 67.92 kB / 0.6429 GB, free: 14.05 MB / 458.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 6} Notification: Performance of prepare postOptimizeDAE: time 0.0006355/0.6411, allocations: 424.6 kB / 0.6434 GB, free: 13.62 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002302/0.6413, allocations: 102.8 kB / 0.6435 GB, free: 13.52 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003732/0.645, allocations: 1.979 MB / 0.6454 GB, free: 11.52 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.261e-05/0.6451, allocations: 12 kB / 0.6454 GB, free: 11.5 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.891e-06/0.6451, allocations: 4 kB / 0.6454 GB, free: 11.5 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.33e-05/0.6451, allocations: 3.984 kB / 0.6454 GB, free: 11.5 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005014/0.6501, allocations: 3.126 MB / 0.6485 GB, free: 8.266 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.661e-06/0.6501, allocations: 0 / 0.6485 GB, free: 8.266 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007969/0.6509, allocations: 187.8 kB / 0.6486 GB, free: 8.082 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001897/0.6529, allocations: 396.5 kB / 0.649 GB, free: 7.691 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.301e-05/0.653, allocations: 35.97 kB / 0.649 GB, free: 7.656 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00131/0.6543, allocations: 0.8919 MB / 0.6499 GB, free: 6.738 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.585e-06/0.6543, allocations: 0 / 0.6499 GB, free: 6.738 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003946/0.6582, allocations: 2.396 MB / 0.6523 GB, free: 4.301 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005753/0.6588, allocations: 335.7 kB / 0.6526 GB, free: 3.953 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001887/0.659, allocations: 27.98 kB / 0.6526 GB, free: 3.926 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009797/0.66, allocations: 75.94 kB / 0.6527 GB, free: 3.852 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001344/0.6602, allocations: 88.78 kB / 0.6528 GB, free: 3.766 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001177/0.6603, allocations: 47.97 kB / 0.6528 GB, free: 3.719 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0006839/0.661, allocations: 0.5458 MB / 0.6533 GB, free: 3.18 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.661, allocations: 0 / 0.6533 GB, free: 3.18 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.002961/0.664, allocations: 1.14 MB / 0.6545 GB, free: 2.039 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 4 (volume.medium.p,volume.medium.Xi[1],volume.medium.T,volume.mC_scaled[1]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (99): * Single equations (assignments): 96 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.002753/0.6667, allocations: 1.045 MB / 0.6555 GB, free: 0.9961 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.004764/0.6715, allocations: 2.617 MB / 0.658 GB, free: 14.33 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 6.632e-06/0.6715, allocations: 8.469 kB / 0.658 GB, free: 14.32 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001344/0.6729, allocations: 0.736 MB / 0.6588 GB, free: 13.59 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002441/0.6753, allocations: 0.5182 MB / 0.6593 GB, free: 13.08 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005231/0.6806, allocations: 2.996 MB / 0.6622 GB, free: 10.03 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006424/0.6812, allocations: 1.119 MB / 0.6633 GB, free: 8.875 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004567/0.6817, allocations: 127.4 kB / 0.6634 GB, free: 8.75 MB / 474.7 MB Notification: Performance of SimCode: time 6.21e-07/0.6817, allocations: 0 / 0.6634 GB, free: 8.75 MB / 474.7 MB Notification: Performance of Templates: time 0.2022/0.8839, allocations: 32.17 MB / 0.6948 GB, free: 201.4 MB / 490.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.makefile (rm -f Modelica_trunk_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe >> ../files/Modelica_trunk_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.sim & ./Modelica_trunk_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2 --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Fluid/Examples/TraceSubstances/RoomCO2/RoomCO2.csv","../files/Modelica_trunk_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches