Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearColdWater.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearColdWater,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.p",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearColdWater") translateModel(ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearColdWater,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.p",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearColdWater") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00195/0.00195, allocations: 110.3 kB / 18.45 MB, free: 4.695 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.003208/0.003208, allocations: 210.8 kB / 19.4 MB, free: 3.742 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.726/2.726, allocations: 227.4 MB / 247.6 MB, free: 10.46 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.4714/0.4714, allocations: 46.09 MB / 344.9 MB, free: 11.51 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003331/0.003331, allocations: 79.86 kB / 482 MB, free: 4.07 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.641/0.6443, allocations: 62.44 MB / 0.5317 GB, free: 13.59 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearColdWater): time 0.06249/0.7069, allocations: 20.36 MB / 0.5515 GB, free: 13.19 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.01275/0.7197, allocations: 4.293 MB / 0.5557 GB, free: 9.008 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001379/0.7211, allocations: 19.88 kB / 0.5558 GB, free: 8.988 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001985/0.7231, allocations: 310 kB / 0.5561 GB, free: 8.684 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004898/0.7281, allocations: 0.8706 MB / 0.5569 GB, free: 7.809 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00572/0.7339, allocations: 0.9054 MB / 0.5578 GB, free: 6.91 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.004461/0.7384, allocations: 1.805 MB / 0.5595 GB, free: 5.098 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001595/0.74, allocations: 461.4 kB / 0.56 GB, free: 4.645 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004445/0.7445, allocations: 0.9418 MB / 0.5609 GB, free: 3.699 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002296/0.7468, allocations: 0.6382 MB / 0.5615 GB, free: 3.059 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005231/0.7474, allocations: 60 kB / 0.5616 GB, free: 3 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002456/0.7499, allocations: 311.6 kB / 0.5619 GB, free: 2.695 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009403/0.7509, allocations: 259.3 kB / 0.5621 GB, free: 2.441 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001543/0.7524, allocations: 390.2 kB / 0.5625 GB, free: 2.059 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003891/0.7564, allocations: 1.098 MB / 0.5636 GB, free: 0.9609 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.144e-06/0.7564, allocations: 0 / 0.5636 GB, free: 0.9609 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.184e-06/0.7564, allocations: 3.938 kB / 0.5636 GB, free: 0.957 MB / 414.1 MB Notification: Performance of Transformations before backend: time 4.757e-05/0.7565, allocations: 0 / 0.5636 GB, free: 0.957 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: 130 * Number of variables: 130 Notification: Performance of Generate backend data structure: time 0.00506/0.7616, allocations: 1.078 MB / 0.5646 GB, free: 15.83 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.929e-05/0.7617, allocations: 8.031 kB / 0.5646 GB, free: 15.82 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008665/0.7625, allocations: 88.47 kB / 0.5647 GB, free: 15.73 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001889/0.7645, allocations: 0.5331 MB / 0.5652 GB, free: 15.16 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000208/0.7647, allocations: 101 kB / 0.5653 GB, free: 15.05 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002013/0.7649, allocations: 52.73 kB / 0.5654 GB, free: 15 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002657/0.7676, allocations: 0.8246 MB / 0.5662 GB, free: 14.11 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.82e-05/0.7676, allocations: 3.938 kB / 0.5662 GB, free: 14.11 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001377/0.7678, allocations: 23.98 kB / 0.5662 GB, free: 14.08 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001338/0.768, allocations: 36.98 kB / 0.5663 GB, free: 14.04 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00224/0.7702, allocations: 0.6517 MB / 0.5669 GB, free: 13.39 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.01004/0.7803, allocations: 4.214 MB / 0.571 GB, free: 8.887 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001637/0.7819, allocations: 418.3 kB / 0.5714 GB, free: 8.473 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000641/0.7826, allocations: 205.4 kB / 0.5716 GB, free: 8.27 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008959/0.7835, allocations: 0.4951 MB / 0.5721 GB, free: 7.664 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.288e-05/0.7836, allocations: 38.83 kB / 0.5721 GB, free: 7.617 MB / 430.1 MB Notification: Performance of pre-optimization done (n=40): time 5.61e-06/0.7837, allocations: 4 kB / 0.5721 GB, free: 7.613 MB / 430.1 MB Notification: Performance of matching and sorting (n=45): time 0.006382/0.7901, allocations: 1.537 MB / 0.5736 GB, free: 6.02 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001235/0.7903, allocations: 132.5 kB / 0.5738 GB, free: 5.859 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001295/0.7916, allocations: 0.5694 MB / 0.5743 GB, free: 5.277 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 8.346e-05/0.7917, allocations: 37.7 kB / 0.5744 GB, free: 5.234 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003972/0.7921, allocations: 363.8 kB / 0.5747 GB, free: 4.875 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000226/0.7923, allocations: 170.6 kB / 0.5749 GB, free: 4.707 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003235/0.7927, allocations: 142.5 kB / 0.575 GB, free: 4.562 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0002652/0.7929, allocations: 374.8 kB / 0.5754 GB, free: 4.188 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006681/0.7936, allocations: 225.9 kB / 0.5756 GB, free: 3.969 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001114/0.7948, allocations: 0.5201 MB / 0.5761 GB, free: 3.312 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002136/0.7969, allocations: 0.7757 MB / 0.5768 GB, free: 2.41 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.88e-05/0.7969, allocations: 11.88 kB / 0.5768 GB, free: 2.398 MB / 430.1 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.003068/0.8, allocations: 0.9458 MB / 0.5778 GB, free: 1.445 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.658e-05/0.8001, allocations: 8 kB / 0.5778 GB, free: 1.438 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.986e-05/0.8001, allocations: 8 kB / 0.5778 GB, free: 1.43 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001904/0.802, allocations: 268.6 kB / 0.578 GB, free: 1.164 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000719/0.8028, allocations: 123.8 kB / 0.5782 GB, free: 1.043 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001565/0.8044, allocations: 0.8593 MB / 0.579 GB, free: 164 kB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008825/0.8053, allocations: 24 kB / 0.579 GB, free: 140 kB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001131/0.8054, allocations: 43.98 kB / 0.5791 GB, free: 96 kB / 430.1 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 (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,14)} Notification: Performance of prepare postOptimizeDAE: time 0.0006976/0.8061, allocations: 245.6 kB / 0.5793 GB, free: 15.84 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003673/0.8065, allocations: 75.55 kB / 0.5794 GB, free: 15.77 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002348/0.8089, allocations: 0.7122 MB / 0.5801 GB, free: 15.05 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.212e-05/0.8089, allocations: 0 / 0.5801 GB, free: 15.05 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.158e-06/0.8089, allocations: 4 kB / 0.5801 GB, free: 15.05 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005709/0.8095, allocations: 204.5 kB / 0.5803 GB, free: 14.83 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002306/0.8097, allocations: 8 kB / 0.5803 GB, free: 14.82 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006452/0.8104, allocations: 19.98 kB / 0.5803 GB, free: 14.8 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001349/0.8106, allocations: 36.33 kB / 0.5803 GB, free: 14.77 MB / 446.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.003019/0.8136, allocations: 0.712 MB / 0.581 GB, free: 14.04 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.002419/0.816, allocations: 0.9783 MB / 0.582 GB, free: 13.05 MB / 446.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0006007/0.8166, allocations: 239.3 kB / 0.5822 GB, free: 12.81 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001029/0.8177, allocations: 398.8 kB / 0.5826 GB, free: 12.43 MB / 446.1 MB Notification: Performance of Backend: time 1.342e-06/0.8177, allocations: 0 / 0.5826 GB, free: 12.43 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003413/0.8211, allocations: 0.6423 MB / 0.5832 GB, free: 11.78 MB / 446.1 MB Notification: Performance of SimCode: time 0.005326/0.8265, allocations: 1.898 MB / 0.5851 GB, free: 9.848 MB / 446.1 MB Notification: Performance of Templates: time 0.05131/0.8778, allocations: 14.24 MB / 0.599 GB, free: 11.76 MB / 462.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearColdWater.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearColdWater.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearColdWater.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearColdWater.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearColdWater.sim & ./ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearColdWater -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearColdWater.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearColdWater_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Media/TestsWithFluid/MediaTestModels/LinearFluid/LinearColdWater/LinearColdWater.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearColdWater.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,volume.medium.T,volume.medium.p Variables in the result:T_start,X_start[1],ambient.T,ambient.X[1],ambient.d,ambient.flowDirection,ambient.h,ambient.medium.T,ambient.medium.preferredMediumStates,ambient.medium.standardOrderComponents,ambient.nPorts,ambient.p,ambient.state.T,ambient.state.p,ambient.use_T,ambient.use_p,fixedMassFlowRate.T,fixedMassFlowRate.T_in_internal,fixedMassFlowRate.X[1],fixedMassFlowRate.X_in_internal[1],fixedMassFlowRate.flowDirection,fixedMassFlowRate.m_flow,fixedMassFlowRate.m_flow_in_internal,fixedMassFlowRate.medium.T,fixedMassFlowRate.medium.preferredMediumStates,fixedMassFlowRate.medium.standardOrderComponents,fixedMassFlowRate.medium.state.T,fixedMassFlowRate.nPorts,fixedMassFlowRate.ports[1].m_flow,h_start,p_start,shortPipe.V,shortPipe.allowFlowReversal,shortPipe.crossArea,shortPipe.diameter,shortPipe.flowModel.Re_turbulent,shortPipe.flowModel.allowFlowReversal,shortPipe.flowModel.crossAreas[1],shortPipe.flowModel.crossAreas[2],shortPipe.flowModel.dheights[1],shortPipe.flowModel.dp_nominal,shortPipe.flowModel.g,shortPipe.flowModel.m,shortPipe.flowModel.m_flow_nominal,shortPipe.flowModel.m_flow_start,shortPipe.flowModel.momentumDynamics,shortPipe.flowModel.mu_nominal,shortPipe.flowModel.mus[1],shortPipe.flowModel.mus[2],shortPipe.flowModel.mus_act[1],shortPipe.flowModel.n,shortPipe.flowModel.nParallel,shortPipe.flowModel.p_a_start,shortPipe.flowModel.p_b_start,shortPipe.flowModel.pathLengths[1],shortPipe.flowModel.rho_nominal,shortPipe.flowModel.roughnesses[1],shortPipe.flowModel.roughnesses[2],shortPipe.flowModel.show_Res,shortPipe.flowModel.states[2].p,shortPipe.flowModel.useUpstreamScheme,shortPipe.flowModel.use_Ib_flows,shortPipe.flowModel.use_mu_nominal,shortPipe.flowModel.use_rho_nominal,shortPipe.height_ab,shortPipe.isCircular,shortPipe.length,shortPipe.m_flow_start,shortPipe.nParallel,shortPipe.p_a_start,shortPipe.p_b_start,shortPipe.perimeter,shortPipe.port_a_exposesState,shortPipe.port_b_exposesState,shortPipe.roughness,shortPipe.showDesignFlowDirection,system.T_ambient,system.T_start,system.allowFlowReversal,system.dp_small,system.energyDynamics,system.eps_m_flow,system.g,system.m_flow_nominal,system.m_flow_small,system.m_flow_start,system.massDynamics,system.momentumDynamics,system.p_ambient,system.p_start,system.substanceDynamics,system.traceDynamics,system.use_eps_Re,time,volume.T_start,volume.V,volume.X_start[1],volume.energyDynamics,volume.fluidLevel_max,volume.fluidVolume,volume.h_start,volume.heatTransfer.T_ambient,volume.heatTransfer.k,volume.heatTransfer.n,volume.heatTransfer.use_k,volume.initialize_p,volume.m_flow_nominal,volume.m_flow_small,volume.massDynamics,volume.medium.T,volume.medium.p,volume.medium.preferredMediumStates,volume.medium.standardOrderComponents,volume.nPorts,volume.p_start,volume.ports[1].m_flow,volume.substanceDynamics,volume.traceDynamics,volume.use_HeatTransfer,volume.use_Re,volume.use_T_start,volume.use_portsData,volume.vesselArea