Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_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_3.2.3_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001265/0.001265, allocations: 175.4 kB / 16.72 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.454/1.454, allocations: 205.4 MB / 222.9 MB, free: 8.957 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000698/0.0006982, allocations: 94.39 kB / 271.2 MB, free: 8.242 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003188/0.0003188, allocations: 12 kB / 327.5 MB, free: 15.89 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2559/0.2563, allocations: 47.56 MB / 375.1 MB, free: 45.4 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.TraceSubstances.RoomCO2): time 0.4859/0.7422, allocations: 194.4 MB / 0.5561 GB, free: 14.35 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.01572/0.758, allocations: 12.4 MB / 0.5682 GB, free: 12.15 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001262/0.7593, allocations: 25.56 kB / 0.5683 GB, free: 12.14 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001371/0.7607, allocations: 388.5 kB / 0.5686 GB, free: 11.92 MB / 394.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:734:36-735:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:732:36-733:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:788:36-789:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:786:36-787:54:writable] Warning: 'each' used when modifying non-array element m_flow. Notification: Performance of NFTyping.typeBindings: time 0.01045/0.7712, allocations: 3.121 MB / 0.5717 GB, free: 10.59 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.007613/0.7788, allocations: 2.293 MB / 0.5739 GB, free: 9.758 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.004501/0.7833, allocations: 3.143 MB / 0.577 GB, free: 8.672 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001338/0.7847, allocations: 0.6462 MB / 0.5776 GB, free: 8.145 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008012/0.7927, allocations: 2.778 MB / 0.5803 GB, free: 5.98 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002304/0.795, allocations: 1.049 MB / 0.5814 GB, free: 5.137 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002441/0.7953, allocations: 60 kB / 0.5814 GB, free: 5.078 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0148/0.8101, allocations: 6.739 MB / 0.588 GB, free: 15.82 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001183/0.8113, allocations: 489.5 kB / 0.5885 GB, free: 15.45 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001197/0.8125, allocations: 0.5828 MB / 0.589 GB, free: 14.99 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008726/0.8213, allocations: 3.405 MB / 0.5924 GB, free: 12.06 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.446e-06/0.8213, allocations: 7.547 kB / 0.5924 GB, free: 12.05 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.343e-06/0.8213, allocations: 0 / 0.5924 GB, free: 12.05 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.682e-05/0.8214, allocations: 3.938 kB / 0.5924 GB, free: 12.05 MB / 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.005023/0.8264, allocations: 1.897 MB / 0.5942 GB, free: 10.2 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.463e-05/0.8264, allocations: 8.031 kB / 0.5942 GB, free: 10.19 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00042/0.8269, allocations: 141.7 kB / 0.5944 GB, free: 10.05 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001206/0.8281, allocations: 0.6769 MB / 0.595 GB, free: 9.465 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001302/0.8282, allocations: 130.9 kB / 0.5952 GB, free: 9.352 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001531/0.8284, allocations: 91.38 kB / 0.5952 GB, free: 9.289 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002226/0.8306, allocations: 1.454 MB / 0.5967 GB, free: 8.195 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.044e-05/0.8307, allocations: 7.938 kB / 0.5967 GB, free: 8.188 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001151/0.8308, allocations: 49.7 kB / 0.5967 GB, free: 8.168 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001023/0.8309, allocations: 70.2 kB / 0.5968 GB, free: 8.105 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00227/0.8332, allocations: 1.461 MB / 0.5982 GB, free: 7.094 MB / 410.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.008802/0.842, allocations: 6.352 MB / 0.6044 GB, free: 1.465 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001839/0.8439, allocations: 0.9942 MB / 0.6054 GB, free: 0.793 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000751/0.8446, allocations: 0.5171 MB / 0.6059 GB, free: 476 kB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002019/0.8466, allocations: 2.062 MB / 0.6079 GB, free: 14.04 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.886e-05/0.8467, allocations: 49.67 kB / 0.608 GB, free: 13.99 MB / 426.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0005312/0.8473, allocations: 104.1 kB / 0.6081 GB, free: 13.9 MB / 426.7 MB Notification: Performance of pre-optimization done (n=84): time 3.777e-06/0.8473, allocations: 0 / 0.6081 GB, free: 13.9 MB / 426.7 MB Notification: Performance of matching and sorting (n=96): time 0.01556/0.8628, allocations: 4.957 MB / 0.6129 GB, free: 9.98 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.395e-05/0.8629, allocations: 114.7 kB / 0.613 GB, free: 9.848 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001055/0.864, allocations: 0.7687 MB / 0.6138 GB, free: 9.254 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000119/0.8641, allocations: 49.39 kB / 0.6138 GB, free: 9.215 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000379/0.8645, allocations: 448.2 kB / 0.6142 GB, free: 8.895 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003105/0.8648, allocations: 346.1 kB / 0.6146 GB, free: 8.605 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.531e-05/0.8649, allocations: 25 kB / 0.6146 GB, free: 8.602 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002159/0.8652, allocations: 402.2 kB / 0.615 GB, free: 8.238 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001175/0.8663, allocations: 0.6092 MB / 0.6156 GB, free: 7.828 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001427/0.8678, allocations: 0.9651 MB / 0.6165 GB, free: 6.781 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002741/0.8705, allocations: 1.654 MB / 0.6181 GB, free: 4.973 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.855e-06/0.8705, allocations: 4 kB / 0.6181 GB, free: 4.969 MB / 426.7 MB Notification: Performance of matching and sorting (n=155) (initialization): time 0.00401/0.8746, allocations: 1.922 MB / 0.62 GB, free: 3.027 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003853/0.875, allocations: 456.3 kB / 0.6204 GB, free: 2.422 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.33e-05/0.875, allocations: 11.94 kB / 0.6204 GB, free: 2.41 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00156/0.8766, allocations: 335.1 kB / 0.6208 GB, free: 2.082 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001034/0.8776, allocations: 271.5 kB / 0.621 GB, free: 1.816 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001582/0.8792, allocations: 0.9193 MB / 0.6219 GB, free: 0.8711 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00114/0.8804, allocations: 115.8 kB / 0.622 GB, free: 0.7578 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001615/0.8805, allocations: 79.17 kB / 0.6221 GB, free: 0.6836 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.516e-06/0.8805, allocations: 5.969 kB / 0.6221 GB, free: 0.6797 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003572/0.8841, allocations: 1.81 MB / 0.6239 GB, free: 14.86 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.362e-05/0.8842, allocations: 12 kB / 0.6239 GB, free: 14.85 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001458/0.8856, allocations: 329.2 kB / 0.6242 GB, free: 14.52 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00104/0.8867, allocations: 275.5 kB / 0.6245 GB, free: 14.25 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001509/0.8882, allocations: 0.9259 MB / 0.6254 GB, free: 13.3 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001037/0.8892, allocations: 96 kB / 0.6255 GB, free: 13.21 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00015/0.8894, allocations: 79.91 kB / 0.6255 GB, free: 13.13 MB / 442.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.000699/0.8901, allocations: 424.6 kB / 0.6259 GB, free: 12.71 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001923/0.8903, allocations: 94.88 kB / 0.626 GB, free: 12.61 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003767/0.8941, allocations: 1.934 MB / 0.6279 GB, free: 10.65 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.492e-05/0.8941, allocations: 16 kB / 0.6279 GB, free: 10.63 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.653e-06/0.8941, allocations: 0 / 0.6279 GB, free: 10.63 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.25e-05/0.8941, allocations: 7.922 kB / 0.6279 GB, free: 10.62 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005283/0.8994, allocations: 3.037 MB / 0.6309 GB, free: 7.531 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.143e-06/0.8995, allocations: 4 kB / 0.6309 GB, free: 7.527 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008241/0.9003, allocations: 183.8 kB / 0.6311 GB, free: 7.348 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001946/0.9022, allocations: 399.1 kB / 0.6315 GB, free: 6.957 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001008/0.9024, allocations: 45.94 kB / 0.6315 GB, free: 6.914 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001398/0.9038, allocations: 0.8948 MB / 0.6324 GB, free: 5.996 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.475e-06/0.9038, allocations: 0 / 0.6324 GB, free: 5.996 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00446/0.9082, allocations: 2.422 MB / 0.6348 GB, free: 3.539 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006649/0.9089, allocations: 339.7 kB / 0.6351 GB, free: 3.188 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001531/0.9091, allocations: 24 kB / 0.6351 GB, free: 3.164 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008784/0.91, allocations: 87.83 kB / 0.6352 GB, free: 3.078 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000167/0.9101, allocations: 72.84 kB / 0.6353 GB, free: 3.004 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001295/0.9103, allocations: 59.95 kB / 0.6353 GB, free: 2.945 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0008069/0.9111, allocations: 0.5459 MB / 0.6358 GB, free: 2.406 MB / 442.7 MB Notification: Performance of sort global known variables: time 3.61e-07/0.9111, allocations: 0 / 0.6358 GB, free: 2.406 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.003366/0.9145, allocations: 1.171 MB / 0.637 GB, free: 1.234 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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.00287/0.9174, allocations: 1.152 MB / 0.6381 GB, free: 168 kB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.004988/0.9224, allocations: 2.622 MB / 0.6407 GB, free: 13.5 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 5.28e-06/0.9224, allocations: 448 / 0.6407 GB, free: 13.5 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001429/0.9238, allocations: 0.7443 MB / 0.6414 GB, free: 12.76 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002447/0.9263, allocations: 0.5054 MB / 0.6419 GB, free: 12.26 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005276/0.9316, allocations: 2.983 MB / 0.6448 GB, free: 9.227 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007196/0.9323, allocations: 1.123 MB / 0.6459 GB, free: 8.074 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005206/0.9328, allocations: 143.4 kB / 0.646 GB, free: 7.934 MB / 458.7 MB Notification: Performance of SimCode: time 6.42e-07/0.9328, allocations: 0 / 0.646 GB, free: 7.934 MB / 458.7 MB Notification: Performance of Templates: time 0.2436/1.176, allocations: 32.72 MB / 0.678 GB, free: 201.3 MB / 474.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.sim & ./Modelica_3.2.3_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2 --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Fluid/Examples/TraceSubstances/RoomCO2/RoomCO2.csv","../files/Modelica_3.2.3_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches