Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestTemperature2.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) 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(ModelicaTest.Fluid.TestComponents.Sensors.TestTemperature2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Tmix1_1.T|Tmix1_2.T|Tmix2.T|Tdiff|volume1_1.medium.h|volume1_2.medium.h|volume2_1.medium.h|volume2_2.medium.h",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestTemperature2") translateModel(ModelicaTest.Fluid.TestComponents.Sensors.TestTemperature2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Tmix1_1.T|Tmix1_2.T|Tmix2.T|Tdiff|volume1_1.medium.h|volume1_2.medium.h|volume2_1.medium.h|volume2_2.medium.h",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestTemperature2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001083/0.001083, allocations: 96.92 kB / 16.99 MB, free: 5.941 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.001209/0.001209, allocations: 181.5 kB / 17.87 MB, free: 5.609 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.397/1.397, allocations: 223.2 MB / 241.8 MB, free: 14.63 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2461/0.2461, allocations: 44.23 MB / 337.1 MB, free: 2.652 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003191/0.0003191, allocations: 13.64 kB / 409.5 MB, free: 27.67 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1605/0.1608, allocations: 61.92 MB / 471.5 MB, free: 13.72 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Sensors.TestTemperature2): time 0.3995/0.5603, allocations: 63.4 MB / 0.5223 GB, free: 12.55 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0332/0.5936, allocations: 28.51 MB / 0.5502 GB, free: 1.16 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002735/0.5964, allocations: 50.25 kB / 0.5502 GB, free: 1.133 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003369/0.5998, allocations: 0.9077 MB / 0.5511 GB, free: 408 kB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0205/0.6203, allocations: 4.012 MB / 0.555 GB, free: 13.2 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0192/0.6395, allocations: 5.308 MB / 0.5602 GB, free: 9.234 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.006715/0.6462, allocations: 2.999 MB / 0.5631 GB, free: 7.301 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002805/0.6491, allocations: 1.079 MB / 0.5642 GB, free: 6.602 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01489/0.664, allocations: 7.193 MB / 0.5712 GB, free: 400 kB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002953/0.667, allocations: 1.055 MB / 0.5722 GB, free: 15.33 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005918/0.6676, allocations: 100 kB / 0.5723 GB, free: 15.23 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01768/0.6853, allocations: 6.992 MB / 0.5792 GB, free: 8.234 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001121/0.6865, allocations: 0.5844 MB / 0.5797 GB, free: 7.648 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000955/0.6874, allocations: 408.8 kB / 0.5801 GB, free: 7.242 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01166/0.6991, allocations: 4.592 MB / 0.5846 GB, free: 2.641 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.4e-06/0.6992, allocations: 0 / 0.5846 GB, free: 2.641 MB / 414.1 MB Notification: Performance of FrontEnd: time 3.977e-06/0.6992, allocations: 0 / 0.5846 GB, free: 2.641 MB / 414.1 MB Notification: Performance of Transformations before backend: time 9.753e-05/0.6993, allocations: 0 / 0.5846 GB, free: 2.641 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 441 * Number of variables: 441 Notification: Performance of Generate backend data structure: time 0.006839/0.7061, allocations: 2.464 MB / 0.587 GB, free: 124 kB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.41e-05/0.7062, allocations: 8.031 kB / 0.587 GB, free: 116 kB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006334/0.7125, allocations: 0.8447 MB / 0.5878 GB, free: 15.27 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002248/0.7148, allocations: 1.017 MB / 0.5888 GB, free: 14.2 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000359/0.7152, allocations: 460.4 kB / 0.5893 GB, free: 13.69 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002568/0.7154, allocations: 171.9 kB / 0.5894 GB, free: 13.52 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006406/0.7219, allocations: 3.185 MB / 0.5925 GB, free: 10.08 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.581e-05/0.7219, allocations: 11.88 kB / 0.5926 GB, free: 10.07 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001929/0.7221, allocations: 84 kB / 0.5926 GB, free: 9.984 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001109/0.7222, allocations: 78.72 kB / 0.5927 GB, free: 9.906 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006888/0.7291, allocations: 2.8 MB / 0.5954 GB, free: 7.098 MB / 430.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.01859/0.7478, allocations: 15.81 MB / 0.6109 GB, free: 6.191 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004393/0.7522, allocations: 1.479 MB / 0.6123 GB, free: 4.699 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001191/0.7534, allocations: 0.7141 MB / 0.613 GB, free: 3.875 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.84e-05/0.7535, allocations: 51.5 kB / 0.6131 GB, free: 3.816 MB / 446.1 MB Notification: Performance of pre-optimization done (n=101): time 3.046e-06/0.7535, allocations: 0 / 0.6131 GB, free: 3.816 MB / 446.1 MB Notification: Performance of matching and sorting (n=117): time 0.01728/0.7708, allocations: 5.5 MB / 0.6184 GB, free: 14.24 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.939e-05/0.7709, allocations: 167.2 kB / 0.6186 GB, free: 14.04 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00195/0.7729, allocations: 1.445 MB / 0.62 GB, free: 12.58 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001369/0.773, allocations: 49.7 kB / 0.6201 GB, free: 12.53 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006967/0.7737, allocations: 0.9322 MB / 0.621 GB, free: 11.58 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003529/0.7741, allocations: 430.2 kB / 0.6214 GB, free: 11.16 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001061/0.7742, allocations: 44 kB / 0.6214 GB, free: 11.11 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001869/0.7744, allocations: 398.5 kB / 0.6218 GB, free: 10.72 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00156/0.7759, allocations: 0.711 MB / 0.6225 GB, free: 10 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002347/0.7783, allocations: 1.946 MB / 0.6244 GB, free: 7.441 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001958/0.7803, allocations: 1.037 MB / 0.6254 GB, free: 6.402 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.654e-05/0.7803, allocations: 12 kB / 0.6254 GB, free: 6.391 MB / 462.1 MB Notification: Performance of matching and sorting (n=293) (initialization): time 0.005999/0.7863, allocations: 2.894 MB / 0.6283 GB, free: 3.48 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.295e-05/0.7864, allocations: 24 kB / 0.6283 GB, free: 3.457 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.946e-05/0.7865, allocations: 40 kB / 0.6283 GB, free: 3.418 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001421/0.7879, allocations: 443.2 kB / 0.6287 GB, free: 2.973 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00185/0.7898, allocations: 0.5499 MB / 0.6293 GB, free: 2.422 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002207/0.792, allocations: 2.744 MB / 0.632 GB, free: 15.57 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002105/0.7941, allocations: 227.7 kB / 0.6322 GB, free: 15.35 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002305/0.7943, allocations: 140 kB / 0.6323 GB, free: 15.21 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 193 * Number of states: 0 () * Number of discrete variables: 28 (sink2.medium.phase,source2.medium.phase,sink1.medium.phase,source1.medium.phase,volume1_1.heatTransfer.states[1].phase,volume1_2.heatTransfer.states[1].phase,volume2_1.heatTransfer.states[1].phase,volume2_2.heatTransfer.states[1].phase,volume1_1.regularFlow[1],volume1_1.regularFlow[2],volume1_1.regularFlow[3],volume1_2.regularFlow[1],volume1_2.regularFlow[2],volume1_2.regularFlow[3],volume2_1.regularFlow[1],volume2_1.regularFlow[2],volume2_2.regularFlow[1],volume2_2.regularFlow[2],volume2_2.inFlow[2],volume2_2.inFlow[1],volume2_1.inFlow[2],volume2_1.inFlow[1],volume1_2.inFlow[3],volume1_2.inFlow[2],volume1_2.inFlow[1],volume1_1.inFlow[3],volume1_1.inFlow[2],volume1_1.inFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (265): * Single equations (assignments): 261 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 7,1 7,1 7,1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0009142/0.7953, allocations: 0.5318 MB / 0.6328 GB, free: 14.67 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002668/0.7955, allocations: 173.9 kB / 0.633 GB, free: 14.5 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006938/0.8025, allocations: 5.09 MB / 0.638 GB, free: 9.344 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.488e-05/0.8025, allocations: 51.92 kB / 0.638 GB, free: 9.293 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.598e-06/0.8026, allocations: 0 / 0.638 GB, free: 9.293 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.241e-05/0.8026, allocations: 8.031 kB / 0.638 GB, free: 9.285 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01003/0.8126, allocations: 7.224 MB / 0.6451 GB, free: 1.918 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.075e-06/0.8127, allocations: 0 / 0.6451 GB, free: 1.918 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001074/0.8137, allocations: 303.9 kB / 0.6454 GB, free: 1.621 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001332/0.8151, allocations: 443 kB / 0.6458 GB, free: 1.176 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.747e-05/0.8152, allocations: 31.98 kB / 0.6458 GB, free: 1.145 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002379/0.8176, allocations: 2.779 MB / 0.6485 GB, free: 14.26 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.053e-06/0.8176, allocations: 7.953 kB / 0.6485 GB, free: 14.25 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006891/0.8245, allocations: 4.36 MB / 0.6528 GB, free: 9.703 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001282/0.8258, allocations: 0.5555 MB / 0.6533 GB, free: 9.125 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002511/0.826, allocations: 32 kB / 0.6534 GB, free: 9.094 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001085/0.8271, allocations: 135.7 kB / 0.6535 GB, free: 8.961 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002277/0.8274, allocations: 112.7 kB / 0.6536 GB, free: 8.852 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.107e-05/0.8275, allocations: 47.97 kB / 0.6536 GB, free: 8.805 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.00189/0.8294, allocations: 1.221 MB / 0.6548 GB, free: 7.562 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.8294, allocations: 4 kB / 0.6548 GB, free: 7.559 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.005395/0.8348, allocations: 1.406 MB / 0.6562 GB, free: 6.152 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * Number of states: 4 (volume1_1.medium.h,volume1_2.medium.h,volume2_1.medium.h,volume2_2.medium.h) * Number of discrete variables: 32 ($cse3.phase,$cse3.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region,$cse8.phase,$cse8.region,$cse10.phase,$cse10.region,$cse13.phase,$cse13.region,$cse15.phase,$cse15.region,$cse16.phase,$cse16.region,$cse17.phase,$cse17.region,$cse19.phase,$cse19.region,$cse20.phase,$cse20.region,volume1_1.heatTransfer.states[1].phase,source1.medium.phase,volume1_2.heatTransfer.states[1].phase,sink1.medium.phase,volume2_1.heatTransfer.states[1].phase,source2.medium.phase,volume2_2.heatTransfer.states[1].phase,sink2.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (103): * Single equations (assignments): 87 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 12 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {2 5,2 5,2 5,2 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.005172/0.84, allocations: 1.377 MB / 0.6576 GB, free: 4.777 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.005086/0.8451, allocations: 2.293 MB / 0.6598 GB, free: 2.48 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.203e-05/0.8451, allocations: 4.625 kB / 0.6598 GB, free: 2.473 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002618/0.8477, allocations: 1.382 MB / 0.6612 GB, free: 1.094 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00461/0.8524, allocations: 0.8692 MB / 0.662 GB, free: 240 kB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008236/0.8606, allocations: 5.606 MB / 0.6675 GB, free: 10.55 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001288/0.8619, allocations: 1.695 MB / 0.6691 GB, free: 8.824 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.002417/0.8644, allocations: 0.9697 MB / 0.6701 GB, free: 7.855 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003221/0.8647, allocations: 143.4 kB / 0.6702 GB, free: 7.719 MB / 0.4981 GB Notification: Performance of SimCode: time 9.01e-07/0.8647, allocations: 0 / 0.6702 GB, free: 7.719 MB / 0.4981 GB Notification: Performance of Templates: time 0.3268/1.191, allocations: 65.19 MB / 0.7339 GB, free: 185.8 MB / 0.5294 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestTemperature2.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestTemperature2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestTemperature2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestTemperature2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestTemperature2.sim & ./ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestTemperature2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestTemperature2.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestTemperature2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Sensors/TestTemperature2/TestTemperature2.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestTemperature2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches