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.001357/0.001357, allocations: 104.2 kB / 17.59 MB, free: 5.559 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.00148/0.00148, allocations: 191.4 kB / 18.51 MB, free: 4.641 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.373/1.373, allocations: 222.9 MB / 242.2 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001055/0.001055, allocations: 49.77 kB / 301.3 MB, free: 5.867 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1124/0.1134, allocations: 49.44 MB / 350.7 MB, free: 4.422 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.TraceSubstances.RoomCO2): time 0.8185/0.932, allocations: 205 MB / 0.5427 GB, free: 1.172 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.01447/0.9465, allocations: 10.37 MB / 0.5528 GB, free: 1.129 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001199/0.9478, allocations: 23.47 kB / 0.5528 GB, free: 1.129 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001282/0.9491, allocations: 465.8 kB / 0.5533 GB, free: 1.125 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01286/0.962, allocations: 3.184 MB / 0.5564 GB, free: 1 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01116/0.9732, allocations: 2.696 MB / 0.559 GB, free: 0.9219 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.005521/0.9787, allocations: 2.634 MB / 0.5616 GB, free: 0.9141 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002011/0.9807, allocations: 0.7809 MB / 0.5624 GB, free: 16.86 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01117/0.9919, allocations: 2.772 MB / 0.5651 GB, free: 16.8 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003464/0.9954, allocations: 1.066 MB / 0.5661 GB, free: 16.8 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005548/0.996, allocations: 120.5 kB / 0.5662 GB, free: 16.8 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02031/1.016, allocations: 6.087 MB / 0.5722 GB, free: 16.75 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001595/1.018, allocations: 0.5375 MB / 0.5727 GB, free: 16.75 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001589/1.02, allocations: 0.6389 MB / 0.5733 GB, free: 16.75 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01575/1.035, allocations: 4.604 MB / 0.5778 GB, free: 16.5 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.184e-06/1.035, allocations: 1.641 kB / 0.5778 GB, free: 16.5 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.635e-06/1.035, allocations: 0.9062 kB / 0.5778 GB, free: 16.5 MB / 462.1 MB Notification: Performance of Transformations before backend: time 3.523e-05/1.035, allocations: 1.203 kB / 0.5778 GB, free: 16.5 MB / 462.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.005654/1.041, allocations: 2.054 MB / 0.5798 GB, free: 15.43 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.865e-05/1.041, allocations: 9.188 kB / 0.5798 GB, free: 15.43 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004993/1.042, allocations: 128.3 kB / 0.58 GB, free: 15.37 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001187/1.043, allocations: 0.6794 MB / 0.5806 GB, free: 15.09 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000165/1.043, allocations: 130.5 kB / 0.5808 GB, free: 15.02 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001866/1.043, allocations: 87.55 kB / 0.5808 GB, free: 15.02 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002455/1.046, allocations: 1.463 MB / 0.5823 GB, free: 14.77 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.879e-05/1.046, allocations: 5.969 kB / 0.5823 GB, free: 14.77 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001202/1.046, allocations: 42.89 kB / 0.5823 GB, free: 14.77 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.973e-05/1.046, allocations: 74.39 kB / 0.5824 GB, free: 14.75 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002172/1.048, allocations: 1.458 MB / 0.5838 GB, free: 14.51 MB / 462.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.009332/1.058, allocations: 6.345 MB / 0.59 GB, free: 10.34 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001884/1.059, allocations: 0.9774 MB / 0.591 GB, free: 10.17 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007474/1.06, allocations: 0.5294 MB / 0.5915 GB, free: 10.09 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001604/1.062, allocations: 1.797 MB / 0.5932 GB, free: 8.059 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.951e-05/1.062, allocations: 54.34 kB / 0.5933 GB, free: 8.02 MB / 462.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0006651/1.063, allocations: 99.25 kB / 0.5934 GB, free: 7.961 MB / 462.1 MB Notification: Performance of pre-optimization done (n=84): time 4.107e-06/1.063, allocations: 0 / 0.5934 GB, free: 7.961 MB / 462.1 MB Notification: Performance of matching and sorting (n=96): time 0.01684/1.079, allocations: 4.786 MB / 0.598 GB, free: 6.668 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.59e-05/1.08, allocations: 112.9 kB / 0.5982 GB, free: 6.539 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001185/1.081, allocations: 0.7772 MB / 0.5989 GB, free: 6.121 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001902/1.081, allocations: 48.89 kB / 0.599 GB, free: 6.082 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000371/1.081, allocations: 445.2 kB / 0.5994 GB, free: 5.766 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003588/1.082, allocations: 340.8 kB / 0.5997 GB, free: 5.48 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004332/1.082, allocations: 254.8 kB / 0.6 GB, free: 5.312 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0002113/1.082, allocations: 401.6 kB / 0.6003 GB, free: 4.949 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001277/1.084, allocations: 0.6172 MB / 0.6009 GB, free: 4.539 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001535/1.085, allocations: 0.9594 MB / 0.6019 GB, free: 3.582 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002849/1.088, allocations: 1.657 MB / 0.6035 GB, free: 1.832 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.002e-05/1.088, allocations: 4 kB / 0.6035 GB, free: 1.828 MB / 462.1 MB Notification: Performance of matching and sorting (n=155) (initialization): time 0.004248/1.092, allocations: 1.929 MB / 0.6054 GB, free: 15.94 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.536e-05/1.092, allocations: 67.34 kB / 0.6054 GB, free: 15.86 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.114e-05/1.092, allocations: 8 kB / 0.6055 GB, free: 15.85 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001532/1.094, allocations: 318.1 kB / 0.6058 GB, free: 15.54 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001251/1.095, allocations: 271.9 kB / 0.606 GB, free: 15.29 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001653/1.097, allocations: 0.9087 MB / 0.6069 GB, free: 14.37 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001318/1.098, allocations: 63.95 kB / 0.607 GB, free: 14.3 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001758/1.098, allocations: 67.97 kB / 0.607 GB, free: 14.24 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001719/1.1, allocations: 0.8499 MB / 0.6079 GB, free: 13.39 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001491/1.102, allocations: 0.9373 MB / 0.6088 GB, free: 12.3 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002732/1.104, allocations: 1.636 MB / 0.6104 GB, free: 10.56 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.193e-05/1.104, allocations: 12 kB / 0.6104 GB, free: 10.55 MB / 478.1 MB Notification: Performance of matching and sorting (n=155) (initialization_lambda0): time 0.004055/1.109, allocations: 1.895 MB / 0.6122 GB, free: 8.688 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.955e-05/1.109, allocations: 71.39 kB / 0.6123 GB, free: 8.605 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.458e-05/1.109, allocations: 8 kB / 0.6123 GB, free: 8.598 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001443/1.11, allocations: 308 kB / 0.6126 GB, free: 8.297 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001135/1.111, allocations: 274.7 kB / 0.6129 GB, free: 8.047 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001608/1.113, allocations: 0.911 MB / 0.6138 GB, free: 7.117 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001168/1.114, allocations: 64.03 kB / 0.6138 GB, free: 7.055 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001534/1.114, allocations: 71.97 kB / 0.6139 GB, free: 6.984 MB / 478.1 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.0005386/1.115, allocations: 259 kB / 0.6141 GB, free: 6.742 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003067/1.115, allocations: 98.88 kB / 0.6142 GB, free: 6.645 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004127/1.119, allocations: 1.964 MB / 0.6161 GB, free: 4.656 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.603e-05/1.119, allocations: 11.94 kB / 0.6162 GB, free: 4.645 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.258e-06/1.119, allocations: 1.188 kB / 0.6162 GB, free: 4.645 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.442e-05/1.119, allocations: 3.984 kB / 0.6162 GB, free: 4.641 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005633/1.125, allocations: 3.118 MB / 0.6192 GB, free: 1.473 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.065e-06/1.125, allocations: 0 / 0.6192 GB, free: 1.473 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008682/1.126, allocations: 181.4 kB / 0.6194 GB, free: 1.305 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001787/1.128, allocations: 376.6 kB / 0.6197 GB, free: 0.9336 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001168/1.128, allocations: 37.06 kB / 0.6198 GB, free: 0.8984 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00145/1.129, allocations: 0.8771 MB / 0.6206 GB, free: 0 / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.662e-05/1.129, allocations: 4.891 kB / 0.6206 GB, free: 15.99 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004673/1.134, allocations: 2.383 MB / 0.623 GB, free: 13.58 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007793/1.135, allocations: 325 kB / 0.6233 GB, free: 13.24 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003296/1.135, allocations: 31.98 kB / 0.6233 GB, free: 13.21 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001092/1.136, allocations: 55.95 kB / 0.6234 GB, free: 13.16 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000185/1.136, allocations: 68.89 kB / 0.6234 GB, free: 13.09 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001606/1.137, allocations: 59.97 kB / 0.6235 GB, free: 13.03 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0008792/1.137, allocations: 0.5731 MB / 0.624 GB, free: 12.46 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.11e-07/1.137, allocations: 0 / 0.624 GB, free: 12.46 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.004048/1.142, allocations: 1.128 MB / 0.6251 GB, free: 11.33 MB / 494.1 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 (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.003967/1.146, allocations: 1.054 MB / 0.6262 GB, free: 10.36 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.007178/1.153, allocations: 2.934 MB / 0.629 GB, free: 7.469 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.161e-05/1.153, allocations: 4.562 kB / 0.629 GB, free: 7.465 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001699/1.154, allocations: 0.746 MB / 0.6298 GB, free: 6.742 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003438/1.158, allocations: 0.5542 MB / 0.6303 GB, free: 6.199 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006446/1.164, allocations: 2.593 MB / 0.6328 GB, free: 3.578 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001076/1.165, allocations: 1.119 MB / 0.6339 GB, free: 2.43 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006737/1.166, allocations: 127.4 kB / 0.6341 GB, free: 2.305 MB / 494.1 MB Notification: Performance of SimCode: time 1.192e-06/1.166, allocations: 0 / 0.6341 GB, free: 2.305 MB / 494.1 MB Notification: Performance of Templates: time 0.05474/1.221, allocations: 32.3 MB / 0.6656 GB, free: 2.121 MB / 0.5137 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