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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001369/0.001369, allocations: 111.1 kB / 17.74 MB, free: 5.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001648/0.001648, allocations: 188.2 kB / 18.67 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.404/1.404, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001166/0.001166, allocations: 48.06 kB / 352 MB, free: 3.254 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3621/0.3633, allocations: 49.43 MB / 401.4 MB, free: 8.75 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.TraceSubstances.RoomCO2): time 0.6198/0.9832, allocations: 205 MB / 0.5922 GB, free: 1.188 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.01444/0.9977, allocations: 10.35 MB / 0.6023 GB, free: 0.8906 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001534/0.9992, allocations: 22.41 kB / 0.6023 GB, free: 0.8906 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001722/1.001, allocations: 474.6 kB / 0.6028 GB, free: 0.8789 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01103/1.012, allocations: 3.184 MB / 0.6059 GB, free: 0.7539 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009012/1.021, allocations: 2.696 MB / 0.6085 GB, free: 0.668 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.004601/1.026, allocations: 2.623 MB / 0.6111 GB, free: 0.625 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001965/1.028, allocations: 0.7879 MB / 0.6118 GB, free: 0.5156 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008594/1.036, allocations: 2.801 MB / 0.6146 GB, free: 15.56 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002735/1.039, allocations: 1.061 MB / 0.6156 GB, free: 15.07 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006279/1.04, allocations: 120.3 kB / 0.6157 GB, free: 15.07 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01368/1.053, allocations: 6.14 MB / 0.6217 GB, free: 11.41 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001142/1.055, allocations: 0.5332 MB / 0.6223 GB, free: 10.89 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001241/1.056, allocations: 0.6415 MB / 0.6229 GB, free: 10.26 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01342/1.069, allocations: 4.628 MB / 0.6274 GB, free: 5.918 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.212e-06/1.069, allocations: 0 / 0.6274 GB, free: 5.918 MB / 478.1 MB Notification: Performance of FrontEnd: time 2.195e-06/1.069, allocations: 0 / 0.6274 GB, free: 5.918 MB / 478.1 MB Notification: Performance of Transformations before backend: time 1.726e-05/1.069, allocations: 4 kB / 0.6274 GB, free: 5.914 MB / 478.1 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.005035/1.074, allocations: 2.055 MB / 0.6294 GB, free: 3.82 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.47e-05/1.074, allocations: 11.89 kB / 0.6294 GB, free: 3.809 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004783/1.075, allocations: 130.7 kB / 0.6295 GB, free: 3.68 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001118/1.076, allocations: 0.7056 MB / 0.6302 GB, free: 2.965 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001263/1.076, allocations: 131.7 kB / 0.6304 GB, free: 2.828 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001519/1.076, allocations: 95.2 kB / 0.6304 GB, free: 2.738 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002214/1.079, allocations: 1.455 MB / 0.6319 GB, free: 1.23 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.752e-05/1.079, allocations: 7.188 kB / 0.6319 GB, free: 1.227 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001149/1.079, allocations: 36.69 kB / 0.6319 GB, free: 1.195 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.144e-05/1.079, allocations: 73.95 kB / 0.632 GB, free: 1.125 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002138/1.081, allocations: 1.463 MB / 0.6334 GB, free: 15.68 MB / 494.1 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.008315/1.089, allocations: 6.333 MB / 0.6396 GB, free: 9.012 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001769/1.091, allocations: 0.9642 MB / 0.6405 GB, free: 8.039 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007716/1.092, allocations: 0.5385 MB / 0.6411 GB, free: 7.5 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001417/1.093, allocations: 1.794 MB / 0.6428 GB, free: 5.324 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.095e-05/1.093, allocations: 50.08 kB / 0.6429 GB, free: 5.266 MB / 494.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.000516/1.094, allocations: 90.97 kB / 0.6429 GB, free: 5.176 MB / 494.1 MB Notification: Performance of pre-optimization done (n=84): time 3.186e-06/1.094, allocations: 4 kB / 0.643 GB, free: 5.172 MB / 494.1 MB Notification: Performance of matching and sorting (n=96): time 0.01708/1.111, allocations: 4.791 MB / 0.6476 GB, free: 364 kB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.186e-05/1.111, allocations: 111.8 kB / 0.6477 GB, free: 228 kB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001117/1.112, allocations: 0.7738 MB / 0.6485 GB, free: 15.44 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0001414/1.112, allocations: 49.7 kB / 0.6485 GB, free: 15.38 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.000331/1.113, allocations: 454.3 kB / 0.649 GB, free: 14.93 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.000316/1.113, allocations: 348.1 kB / 0.6493 GB, free: 14.6 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003921/1.114, allocations: 246.6 kB / 0.6495 GB, free: 14.35 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001763/1.114, allocations: 402.7 kB / 0.6499 GB, free: 13.95 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001167/1.115, allocations: 0.6228 MB / 0.6505 GB, free: 13.32 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001425/1.116, allocations: 0.947 MB / 0.6515 GB, free: 12.23 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002589/1.119, allocations: 1.661 MB / 0.6531 GB, free: 10.45 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.141e-06/1.119, allocations: 4 kB / 0.6531 GB, free: 10.45 MB / 0.4981 GB Notification: Performance of matching and sorting (n=155) (initialization): time 0.003779/1.123, allocations: 1.924 MB / 0.655 GB, free: 8.562 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 6.684e-05/1.123, allocations: 75.33 kB / 0.655 GB, free: 8.477 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.433e-05/1.123, allocations: 8 kB / 0.655 GB, free: 8.469 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001431/1.124, allocations: 311.7 kB / 0.6553 GB, free: 8.164 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001012/1.125, allocations: 269.8 kB / 0.6556 GB, free: 7.918 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001517/1.127, allocations: 0.9072 MB / 0.6565 GB, free: 6.992 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001039/1.128, allocations: 59.97 kB / 0.6565 GB, free: 6.934 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00014/1.128, allocations: 71.97 kB / 0.6566 GB, free: 6.863 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001488/1.129, allocations: 0.8499 MB / 0.6574 GB, free: 6.012 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001388/1.131, allocations: 0.9431 MB / 0.6584 GB, free: 4.926 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002532/1.133, allocations: 1.64 MB / 0.66 GB, free: 3.176 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.44e-06/1.133, allocations: 0 / 0.66 GB, free: 3.176 MB / 0.4981 GB Notification: Performance of matching and sorting (n=155) (initialization_lambda0): time 0.003643/1.137, allocations: 1.902 MB / 0.6618 GB, free: 1.309 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 5.462e-05/1.137, allocations: 67.39 kB / 0.6619 GB, free: 1.23 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.448e-05/1.137, allocations: 11.94 kB / 0.6619 GB, free: 1.219 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001402/1.139, allocations: 313.2 kB / 0.6622 GB, free: 0.9102 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009887/1.14, allocations: 270.8 kB / 0.6625 GB, free: 0.6641 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001502/1.141, allocations: 0.9097 MB / 0.6633 GB, free: 15.73 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001025/1.142, allocations: 63.97 kB / 0.6634 GB, free: 15.67 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001541/1.142, allocations: 74.39 kB / 0.6635 GB, free: 15.6 MB / 0.5137 GB 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.0004547/1.143, allocations: 259.1 kB / 0.6637 GB, free: 15.36 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002341/1.143, allocations: 98.88 kB / 0.6638 GB, free: 15.26 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003692/1.147, allocations: 1.959 MB / 0.6657 GB, free: 13.29 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.319e-05/1.147, allocations: 12 kB / 0.6657 GB, free: 13.27 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.482e-06/1.147, allocations: 0 / 0.6657 GB, free: 13.27 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.242e-05/1.147, allocations: 11.97 kB / 0.6657 GB, free: 13.26 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00491/1.152, allocations: 3.092 MB / 0.6688 GB, free: 10.11 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.895e-06/1.152, allocations: 4 kB / 0.6688 GB, free: 10.1 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008737/1.153, allocations: 181.3 kB / 0.6689 GB, free: 9.934 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001726/1.154, allocations: 376.5 kB / 0.6693 GB, free: 9.562 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001023/1.154, allocations: 47.97 kB / 0.6693 GB, free: 9.516 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001501/1.156, allocations: 0.8783 MB / 0.6702 GB, free: 8.617 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.146e-06/1.156, allocations: 0 / 0.6702 GB, free: 8.617 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004523/1.161, allocations: 2.378 MB / 0.6725 GB, free: 6.199 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008186/1.161, allocations: 330.8 kB / 0.6728 GB, free: 5.859 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001951/1.162, allocations: 28 kB / 0.6729 GB, free: 5.832 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008925/1.162, allocations: 55.95 kB / 0.6729 GB, free: 5.777 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001766/1.163, allocations: 72.89 kB / 0.673 GB, free: 5.707 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001189/1.163, allocations: 55.91 kB / 0.673 GB, free: 5.652 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0008608/1.164, allocations: 0.5693 MB / 0.6736 GB, free: 5.09 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.4e-07/1.164, allocations: 0 / 0.6736 GB, free: 5.09 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.00353/1.167, allocations: 1.132 MB / 0.6747 GB, free: 3.957 MB / 0.5137 GB 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 (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 Backend phase and start with SimCode phase: time 0.003042/1.17, allocations: 1.047 MB / 0.6757 GB, free: 2.984 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.005331/1.176, allocations: 2.629 MB / 0.6783 GB, free: 392 kB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 9.609e-06/1.176, allocations: 448 / 0.6783 GB, free: 392 kB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.001489/1.177, allocations: 0.7345 MB / 0.679 GB, free: 15.68 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002866/1.18, allocations: 0.5684 MB / 0.6796 GB, free: 15.12 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005617/1.186, allocations: 2.577 MB / 0.6821 GB, free: 12.51 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007663/1.186, allocations: 1.123 MB / 0.6832 GB, free: 11.35 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005028/1.187, allocations: 127.4 kB / 0.6833 GB, free: 11.23 MB / 0.5294 GB Notification: Performance of SimCode: time 6.11e-07/1.187, allocations: 0 / 0.6833 GB, free: 11.23 MB / 0.5294 GB Notification: Performance of Templates: time 0.05005/1.237, allocations: 32.43 MB / 0.715 GB, free: 10.91 MB / 0.5606 GB make -j1 -f Modelica_4.0.0_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.makefile (rm -f Modelica_4.0.0_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe ; mkfifo Modelica_4.0.0_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe >> ../files/Modelica_4.0.0_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.sim & ./Modelica_4.0.0_Modelica.Fluid.Examples.TraceSubstances.RoomCO2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Fluid.Examples.TraceSubstances.RoomCO2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Fluid/Examples/TraceSubstances/RoomCO2/RoomCO2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches