Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearWater_pT.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) 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(ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearWater_pT,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.p",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearWater_pT") translateModel(ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearWater_pT,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.p",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearWater_pT") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001413/0.001413, allocations: 195.1 kB / 16.1 MB, free: 5.703 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.315/1.315, allocations: 226.6 MB / 243.4 MB, free: 8.117 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000746/0.0007461, allocations: 91.89 kB / 295.5 MB, free: 6.891 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2983/0.2983, allocations: 44.82 MB / 392.3 MB, free: 35.7 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002951/0.0002951, allocations: 11.98 kB / 465.3 MB, free: 12.66 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3409/0.3413, allocations: 62.96 MB / 0.5159 GB, free: 37.06 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearWater_pT): time 0.03286/0.3742, allocations: 41.37 MB / 0.5563 GB, free: 7.715 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.005803/0.3801, allocations: 4.23 MB / 0.5604 GB, free: 4.695 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001041/0.3811, allocations: 27.03 kB / 0.5604 GB, free: 4.68 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009038/0.382, allocations: 258 kB / 0.5607 GB, free: 4.543 MB / 378.7 MB [/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. [/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. Notification: Performance of NFTyping.typeBindings: time 0.002253/0.3843, allocations: 0.8291 MB / 0.5615 GB, free: 4.078 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002423/0.3868, allocations: 0.7184 MB / 0.5622 GB, free: 3.73 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.002904/0.3897, allocations: 2.214 MB / 0.5644 GB, free: 2.914 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007668/0.3904, allocations: 391.8 kB / 0.5647 GB, free: 2.73 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1145/0.5049, allocations: 73.57 MB / 0.6366 GB, free: 13.77 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.02238/0.5273, allocations: 13.72 MB / 0.65 GB, free: 40 kB / 458.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003365/0.5277, allocations: 32 kB / 0.65 GB, free: 8 kB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03165/0.5594, allocations: 18.79 MB / 0.6684 GB, free: 13.21 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006297/0.5601, allocations: 227.3 kB / 0.6686 GB, free: 12.99 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009483/0.561, allocations: 376.1 kB / 0.6689 GB, free: 12.61 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001407/0.5625, allocations: 0.791 MB / 0.6697 GB, free: 11.82 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.68e-06/0.5625, allocations: 3.984 kB / 0.6697 GB, free: 11.82 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.164e-06/0.5625, allocations: 4 kB / 0.6697 GB, free: 11.81 MB / 490.7 MB Notification: Performance of Transformations before backend: time 4.219e-05/0.5625, allocations: 0 / 0.6697 GB, free: 11.81 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 130 * Number of variables: 130 Notification: Performance of Generate backend data structure: time 0.002456/0.565, allocations: 0.9077 MB / 0.6706 GB, free: 10.86 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.852e-05/0.5651, allocations: 8.031 kB / 0.6706 GB, free: 10.85 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004663/0.5655, allocations: 99.98 kB / 0.6707 GB, free: 10.75 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001195/0.5668, allocations: 0.5015 MB / 0.6712 GB, free: 10.21 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001451/0.5669, allocations: 101 kB / 0.6713 GB, free: 10.1 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001308/0.5671, allocations: 60.02 kB / 0.6713 GB, free: 10.04 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00144/0.5685, allocations: 0.8097 MB / 0.6721 GB, free: 9.152 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.735e-05/0.5686, allocations: 11.94 kB / 0.6722 GB, free: 9.141 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.39e-05/0.5686, allocations: 20 kB / 0.6722 GB, free: 9.121 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.047e-05/0.5687, allocations: 40.98 kB / 0.6722 GB, free: 9.082 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001146/0.5699, allocations: 0.6361 MB / 0.6728 GB, free: 8.445 MB / 490.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.00489/0.5748, allocations: 4.221 MB / 0.677 GB, free: 3.934 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008307/0.5756, allocations: 412 kB / 0.6773 GB, free: 3.523 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003277/0.576, allocations: 201.4 kB / 0.6775 GB, free: 3.324 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004579/0.5764, allocations: 0.499 MB / 0.678 GB, free: 2.715 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.655e-05/0.5765, allocations: 38.89 kB / 0.6781 GB, free: 2.668 MB / 490.7 MB Notification: Performance of pre-optimization done (n=40): time 3.256e-06/0.5765, allocations: 3.938 kB / 0.6781 GB, free: 2.664 MB / 490.7 MB Notification: Performance of matching and sorting (n=45): time 0.003321/0.5798, allocations: 1.54 MB / 0.6796 GB, free: 1.07 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.913e-05/0.5799, allocations: 132.5 kB / 0.6797 GB, free: 0.9102 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006912/0.5806, allocations: 0.5616 MB / 0.6802 GB, free: 348 kB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 4.764e-05/0.5807, allocations: 29.7 kB / 0.6803 GB, free: 312 kB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.2641/0.8448, allocations: 351.3 kB / 0.6806 GB, free: 145.6 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002831/0.8451, allocations: 166.2 kB / 0.6808 GB, free: 145.6 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.213e-05/0.8452, allocations: 14.41 kB / 0.6808 GB, free: 145.6 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.000189/0.8454, allocations: 377.9 kB / 0.6811 GB, free: 145.3 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005621/0.8459, allocations: 225.1 kB / 0.6814 GB, free: 145.3 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006437/0.8466, allocations: 0.5212 MB / 0.6819 GB, free: 144.9 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001061/0.8477, allocations: 0.7689 MB / 0.6826 GB, free: 144.4 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.903e-06/0.8477, allocations: 2.812 kB / 0.6826 GB, free: 144.4 MB / 490.7 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.002088/0.8498, allocations: 0.9727 MB / 0.6836 GB, free: 144 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.831e-05/0.8498, allocations: 8.188 kB / 0.6836 GB, free: 144 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.927e-05/0.8499, allocations: 9.562 kB / 0.6836 GB, free: 144 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001152/0.851, allocations: 270.1 kB / 0.6838 GB, free: 144 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003835/0.8514, allocations: 125.9 kB / 0.684 GB, free: 144 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000803/0.8522, allocations: 0.8615 MB / 0.6848 GB, free: 143.3 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006213/0.8529, allocations: 43.39 kB / 0.6848 GB, free: 143.3 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.998e-05/0.8529, allocations: 43.39 kB / 0.6849 GB, free: 143.3 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 42 * Number of states: 0 () * Number of discrete variables: 4 (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 (73): * Single equations (assignments): 72 * Array equations: 0 * Algorithm blocks: 0 * 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 14} Notification: Performance of prepare postOptimizeDAE: time 0.0003547/0.8533, allocations: 238 kB / 0.6851 GB, free: 143.1 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.706e-05/0.8534, allocations: 66.91 kB / 0.6852 GB, free: 143.1 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00122/0.8546, allocations: 0.7243 MB / 0.6859 GB, free: 142.8 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.258e-06/0.8546, allocations: 7.75 kB / 0.6859 GB, free: 142.8 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.152e-06/0.8547, allocations: 0 / 0.6859 GB, free: 142.8 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.264e-06/0.8547, allocations: 3.422 kB / 0.6859 GB, free: 142.8 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001873/0.8566, allocations: 1.398 MB / 0.6873 GB, free: 142 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.123e-06/0.8566, allocations: 6.594 kB / 0.6873 GB, free: 142 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009169/0.8575, allocations: 190.9 kB / 0.6874 GB, free: 142 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002593/0.8578, allocations: 69.11 kB / 0.6875 GB, free: 142 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.937e-05/0.8578, allocations: 16.09 kB / 0.6875 GB, free: 141.9 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001732/0.8596, allocations: 2.784 MB / 0.6902 GB, free: 139.2 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.107e-06/0.8596, allocations: 10.81 kB / 0.6903 GB, free: 139.2 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001289/0.8609, allocations: 0.9884 MB / 0.6912 GB, free: 138.7 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002533/0.8611, allocations: 206.9 kB / 0.6914 GB, free: 138.5 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.231e-05/0.8612, allocations: 17.66 kB / 0.6914 GB, free: 138.5 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003775/0.8616, allocations: 29.83 kB / 0.6915 GB, free: 138.5 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.959e-05/0.8617, allocations: 33.81 kB / 0.6915 GB, free: 138.5 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.184e-05/0.8617, allocations: 20.7 kB / 0.6915 GB, free: 138.5 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0004065/0.8622, allocations: 396.5 kB / 0.6919 GB, free: 138.3 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.8622, allocations: 0 / 0.6919 GB, free: 138.3 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.0007589/0.8629, allocations: 206 kB / 0.6921 GB, free: 138.3 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 2 (volume.medium.p,volume.medium.T) * 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 (47): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005027/0.8634, allocations: 236.2 kB / 0.6923 GB, free: 138.2 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.001086/0.8645, allocations: 0.5987 MB / 0.6929 GB, free: 138 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 3.536e-06/0.8646, allocations: 0 / 0.6929 GB, free: 138 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009777/0.8655, allocations: 476.7 kB / 0.6934 GB, free: 137.8 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001553/0.8671, allocations: 332 kB / 0.6937 GB, free: 137.7 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001991/0.8691, allocations: 1.701 MB / 0.6953 GB, free: 136.8 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003473/0.8695, allocations: 0.9379 MB / 0.6963 GB, free: 136 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001827/0.8697, allocations: 68.59 kB / 0.6963 GB, free: 136 MB / 490.7 MB Notification: Performance of SimCode: time 8.41e-07/0.8697, allocations: 2.734 kB / 0.6963 GB, free: 136 MB / 490.7 MB Notification: Performance of Templates: time 0.02294/0.8926, allocations: 15.16 MB / 0.7111 GB, free: 132.1 MB / 490.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearWater_pT.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearWater_pT.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearWater_pT.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearWater_pT.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearWater_pT.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearWater_pT --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearWater_pT.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearWater_pT_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Media/TestsWithFluid/MediaTestModels/LinearFluid/LinearWater_pT/LinearWater_pT.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearWater_pT.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches