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.0011/0.0011, allocations: 196.3 kB / 17.38 MB, free: 4.41 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.309/1.309, allocations: 226.5 MB / 244.7 MB, free: 6.457 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007087/0.000709, allocations: 105.2 kB / 296.8 MB, free: 6.695 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002827/0.0002828, allocations: 4 kB / 356.7 MB, free: 10.72 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2646/0.2649, allocations: 51.3 MB / 408 MB, free: 27.71 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.TraceSubstances.RoomCO2): time 0.4537/0.7187, allocations: 187.5 MB / 0.5816 GB, free: 5.965 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.01314/0.7319, allocations: 9.779 MB / 0.5911 GB, free: 2.047 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001257/0.7332, allocations: 22.28 kB / 0.5911 GB, free: 2.035 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00129/0.7345, allocations: 380.5 kB / 0.5915 GB, free: 1.777 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.009405/0.7439, allocations: 2.792 MB / 0.5942 GB, free: 15.98 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00679/0.7507, allocations: 2.137 MB / 0.5963 GB, free: 14.3 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.003861/0.7546, allocations: 3.139 MB / 0.5994 GB, free: 11.86 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001036/0.7556, allocations: 0.6628 MB / 0.6 GB, free: 11.3 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006267/0.7619, allocations: 2.517 MB / 0.6025 GB, free: 9.109 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001916/0.7638, allocations: 1.048 MB / 0.6035 GB, free: 8.184 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001821/0.764, allocations: 56 kB / 0.6036 GB, free: 8.129 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01151/0.7755, allocations: 6.413 MB / 0.6098 GB, free: 1.965 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007971/0.7763, allocations: 494.7 kB / 0.6103 GB, free: 1.48 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008943/0.7773, allocations: 0.5736 MB / 0.6109 GB, free: 0.8984 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006703/0.784, allocations: 3.255 MB / 0.614 GB, free: 13.64 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.242e-06/0.784, allocations: 4 kB / 0.614 GB, free: 13.63 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.763e-06/0.784, allocations: 0 / 0.614 GB, free: 13.63 MB / 426.7 MB Notification: Performance of Transformations before backend: time 6.528e-05/0.7841, allocations: 0 / 0.614 GB, free: 13.63 MB / 426.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.005713/0.7898, allocations: 1.831 MB / 0.6158 GB, free: 11.74 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.054e-05/0.7899, allocations: 12.03 kB / 0.6158 GB, free: 11.73 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006227/0.7905, allocations: 126.6 kB / 0.616 GB, free: 11.6 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001498/0.792, allocations: 0.6735 MB / 0.6166 GB, free: 10.89 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001469/0.7922, allocations: 133.4 kB / 0.6167 GB, free: 10.74 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002158/0.7924, allocations: 95.83 kB / 0.6168 GB, free: 10.65 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002301/0.7947, allocations: 1.452 MB / 0.6183 GB, free: 9.133 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.761e-05/0.7947, allocations: 3.938 kB / 0.6183 GB, free: 9.129 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001123/0.7948, allocations: 43.97 kB / 0.6183 GB, free: 9.086 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.271e-05/0.7949, allocations: 69.97 kB / 0.6184 GB, free: 9.016 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002139/0.7971, allocations: 1.46 MB / 0.6198 GB, free: 7.555 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.007993/0.8051, allocations: 6.341 MB / 0.626 GB, free: 0.7852 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001759/0.8069, allocations: 0.9799 MB / 0.6269 GB, free: 15.8 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007366/0.8076, allocations: 0.516 MB / 0.6274 GB, free: 15.28 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00131/0.8089, allocations: 1.801 MB / 0.6292 GB, free: 13.09 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.247e-05/0.809, allocations: 51.5 kB / 0.6293 GB, free: 13.03 MB / 442.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0004747/0.8095, allocations: 98.95 kB / 0.6293 GB, free: 12.93 MB / 442.7 MB Notification: Performance of pre-optimization done (n=84): time 2.815e-06/0.8095, allocations: 0 / 0.6293 GB, free: 12.93 MB / 442.7 MB Notification: Performance of matching and sorting (n=96): time 0.01506/0.8245, allocations: 4.951 MB / 0.6342 GB, free: 7.938 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.261e-05/0.8247, allocations: 115.8 kB / 0.6343 GB, free: 7.797 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001097/0.8258, allocations: 0.766 MB / 0.635 GB, free: 7.027 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001208/0.8259, allocations: 49.7 kB / 0.6351 GB, free: 6.973 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003635/0.8263, allocations: 459 kB / 0.6355 GB, free: 6.516 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003454/0.8266, allocations: 335.2 kB / 0.6358 GB, free: 6.184 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.27e-05/0.8267, allocations: 24 kB / 0.6359 GB, free: 6.16 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002053/0.8269, allocations: 406.7 kB / 0.6363 GB, free: 5.754 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001194/0.8281, allocations: 0.5998 MB / 0.6368 GB, free: 5.156 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00144/0.8296, allocations: 0.9615 MB / 0.6378 GB, free: 4.047 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002464/0.832, allocations: 1.65 MB / 0.6394 GB, free: 2.246 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.961e-06/0.8321, allocations: 4 kB / 0.6394 GB, free: 2.242 MB / 442.7 MB Notification: Performance of matching and sorting (n=155) (initialization): time 0.003524/0.8356, allocations: 1.918 MB / 0.6413 GB, free: 308 kB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002913/0.8359, allocations: 451.5 kB / 0.6417 GB, free: 15.7 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.679e-05/0.8359, allocations: 12 kB / 0.6417 GB, free: 15.69 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001512/0.8374, allocations: 328.5 kB / 0.642 GB, free: 15.37 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001025/0.8385, allocations: 279.5 kB / 0.6423 GB, free: 15.09 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001486/0.84, allocations: 0.9115 MB / 0.6432 GB, free: 14.16 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001068/0.8411, allocations: 115.8 kB / 0.6433 GB, free: 14.04 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00014/0.8412, allocations: 71.92 kB / 0.6434 GB, free: 13.97 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.176e-06/0.8412, allocations: 4 kB / 0.6434 GB, free: 13.97 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003219/0.8445, allocations: 1.808 MB / 0.6451 GB, free: 12.14 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.077e-05/0.8445, allocations: 8 kB / 0.6451 GB, free: 12.13 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001397/0.8459, allocations: 328.7 kB / 0.6455 GB, free: 11.81 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009911/0.8469, allocations: 283.4 kB / 0.6457 GB, free: 11.53 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001383/0.8483, allocations: 0.9193 MB / 0.6466 GB, free: 10.59 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009241/0.8492, allocations: 96 kB / 0.6467 GB, free: 10.49 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001238/0.8494, allocations: 79.89 kB / 0.6468 GB, free: 10.41 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.0006024/0.85, allocations: 420.6 kB / 0.6472 GB, free: 9.992 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001626/0.8501, allocations: 98.88 kB / 0.6473 GB, free: 9.895 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003532/0.8537, allocations: 1.967 MB / 0.6492 GB, free: 7.902 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.429e-05/0.8537, allocations: 15.98 kB / 0.6492 GB, free: 7.887 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.504e-06/0.8537, allocations: 3.984 kB / 0.6492 GB, free: 7.883 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.263e-05/0.8537, allocations: 7.922 kB / 0.6492 GB, free: 7.875 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006322/0.8601, allocations: 3.114 MB / 0.6523 GB, free: 4.656 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.148e-06/0.8601, allocations: 0 / 0.6523 GB, free: 4.656 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001141/0.8612, allocations: 179.8 kB / 0.6524 GB, free: 4.48 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00242/0.8637, allocations: 396.5 kB / 0.6528 GB, free: 4.09 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001516/0.8638, allocations: 35.98 kB / 0.6529 GB, free: 4.055 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001887/0.8657, allocations: 0.8957 MB / 0.6537 GB, free: 3.133 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.656e-06/0.8658, allocations: 8.016 kB / 0.6537 GB, free: 3.125 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006154/0.8719, allocations: 2.396 MB / 0.6561 GB, free: 0.6875 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001014/0.873, allocations: 331.7 kB / 0.6564 GB, free: 352 kB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004515/0.8734, allocations: 24 kB / 0.6564 GB, free: 328 kB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001628/0.8751, allocations: 87.83 kB / 0.6565 GB, free: 240 kB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002508/0.8753, allocations: 76.83 kB / 0.6566 GB, free: 164 kB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002629/0.8756, allocations: 47.97 kB / 0.6566 GB, free: 116 kB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001401/0.877, allocations: 0.5459 MB / 0.6572 GB, free: 15.57 MB / 474.7 MB Notification: Performance of sort global known variables: time 4.6e-07/0.8771, allocations: 4 kB / 0.6572 GB, free: 15.57 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.00447/0.8815, allocations: 1.144 MB / 0.6583 GB, free: 14.42 MB / 474.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.003254/0.8848, allocations: 1.069 MB / 0.6593 GB, free: 13.36 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.005689/0.8905, allocations: 2.608 MB / 0.6619 GB, free: 10.7 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.08e-05/0.8906, allocations: 4.438 kB / 0.6619 GB, free: 10.7 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001559/0.8921, allocations: 0.7453 MB / 0.6626 GB, free: 9.953 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002568/0.8947, allocations: 0.5103 MB / 0.6631 GB, free: 9.453 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005132/0.8998, allocations: 2.996 MB / 0.666 GB, free: 6.398 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006953/0.9006, allocations: 1.123 MB / 0.6671 GB, free: 5.246 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004496/0.901, allocations: 123.4 kB / 0.6672 GB, free: 5.125 MB / 474.7 MB Notification: Performance of SimCode: time 8.82e-07/0.901, allocations: 0 / 0.6672 GB, free: 5.125 MB / 474.7 MB Notification: Performance of Templates: time 0.2261/1.127, allocations: 32.17 MB / 0.6987 GB, free: 198.5 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