Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Nitrogen.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.IdealGases.Nitrogen,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.p",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Nitrogen") translateModel(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Nitrogen,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.p",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Nitrogen") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001449/0.001449, allocations: 114.9 kB / 18.46 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001862/0.001862, allocations: 210.8 kB / 19.41 MB, free: 3.672 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.343/1.343, allocations: 227.4 MB / 247.6 MB, free: 10.44 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2046/0.2046, allocations: 46.1 MB / 345 MB, free: 11.48 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001549/0.001549, allocations: 75.88 kB / 482 MB, free: 4.043 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3437/0.3453, allocations: 62.43 MB / 0.5317 GB, free: 13.6 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Nitrogen): time 0.1939/0.5392, allocations: 177.3 MB / 0.7048 GB, free: 15.81 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.007034/0.5463, allocations: 5.343 MB / 0.71 GB, free: 10.44 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008909/0.5472, allocations: 19.88 kB / 0.71 GB, free: 10.42 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0009303/0.5482, allocations: 318 kB / 0.7103 GB, free: 10.11 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.003207/0.5514, allocations: 1.349 MB / 0.7116 GB, free: 8.762 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.002531/0.5539, allocations: 1.055 MB / 0.7127 GB, free: 7.711 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.002018/0.556, allocations: 1.863 MB / 0.7145 GB, free: 5.844 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006448/0.5566, allocations: 457.4 kB / 0.7149 GB, free: 5.398 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002065/0.5587, allocations: 1.086 MB / 0.716 GB, free: 4.309 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001247/0.56, allocations: 0.7705 MB / 0.7167 GB, free: 3.535 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0001327/0.5601, allocations: 60 kB / 0.7168 GB, free: 3.477 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001399/0.5615, allocations: 0.6164 MB / 0.7174 GB, free: 2.859 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0002491/0.5618, allocations: 267.3 kB / 0.7176 GB, free: 2.598 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0003936/0.5622, allocations: 398.2 kB / 0.718 GB, free: 2.207 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.001567/0.5638, allocations: 1.305 MB / 0.7193 GB, free: 0.8984 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.065e-06/0.5638, allocations: 0 / 0.7193 GB, free: 0.8984 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.183e-06/0.5638, allocations: 0 / 0.7193 GB, free: 0.8984 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 9.358e-06/0.5638, allocations: 4 kB / 0.7193 GB, free: 0.8945 MB / 0.5606 GB 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.2366/0.8004, allocations: 1.09 MB / 0.7204 GB, free: 186.5 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.542e-05/0.8005, allocations: 8.406 kB / 0.7204 GB, free: 186.5 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009709/0.8015, allocations: 138.3 kB / 0.7205 GB, free: 186.5 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008698/0.8023, allocations: 0.5364 MB / 0.721 GB, free: 186.1 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001035/0.8025, allocations: 106.4 kB / 0.7211 GB, free: 186.1 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001142/0.8026, allocations: 48.38 kB / 0.7212 GB, free: 186 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001325/0.8039, allocations: 0.8163 MB / 0.722 GB, free: 185.6 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.109e-05/0.8039, allocations: 4.969 kB / 0.722 GB, free: 185.6 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.305e-05/0.804, allocations: 28.27 kB / 0.722 GB, free: 185.6 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.079e-05/0.8041, allocations: 36.28 kB / 0.722 GB, free: 185.6 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001024/0.8051, allocations: 0.617 MB / 0.7226 GB, free: 185.4 MB / 0.5606 GB 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.003401/0.8086, allocations: 3.927 MB / 0.7265 GB, free: 181.9 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004944/0.8091, allocations: 364.9 kB / 0.7268 GB, free: 181.7 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002482/0.8093, allocations: 167.9 kB / 0.727 GB, free: 181.6 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 8.52e-05/0.8094, allocations: 91.33 kB / 0.7271 GB, free: 181.5 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.276e-05/0.8094, allocations: 38.34 kB / 0.7271 GB, free: 181.5 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=34): time 1.673e-06/0.8095, allocations: 2.812 kB / 0.7271 GB, free: 181.5 MB / 0.5606 GB Notification: Performance of matching and sorting (n=39): time 0.005069/0.8145, allocations: 1.687 MB / 0.7288 GB, free: 180.4 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.427e-05/0.8146, allocations: 133.4 kB / 0.7289 GB, free: 180.3 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005847/0.8152, allocations: 0.6178 MB / 0.7295 GB, free: 179.9 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 4.636e-05/0.8152, allocations: 32.8 kB / 0.7295 GB, free: 179.9 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001685/0.8154, allocations: 362.6 kB / 0.7299 GB, free: 179.5 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 8.377e-05/0.8155, allocations: 144.9 kB / 0.73 GB, free: 179.4 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001989/0.8157, allocations: 156.3 kB / 0.7302 GB, free: 179.3 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 7.661e-05/0.8158, allocations: 378 kB / 0.7305 GB, free: 179 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003197/0.8161, allocations: 206 kB / 0.7307 GB, free: 178.9 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004396/0.8166, allocations: 0.5049 MB / 0.7312 GB, free: 178.4 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007633/0.8173, allocations: 0.7545 MB / 0.7319 GB, free: 177.8 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.08e-06/0.8173, allocations: 2.281 kB / 0.7319 GB, free: 177.8 MB / 0.5606 GB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001288/0.8186, allocations: 0.8848 MB / 0.7328 GB, free: 177.3 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.854e-05/0.8187, allocations: 9.594 kB / 0.7328 GB, free: 177.3 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.354e-05/0.8187, allocations: 10.12 kB / 0.7328 GB, free: 177.3 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001299/0.82, allocations: 309.8 kB / 0.7331 GB, free: 177.2 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003961/0.8204, allocations: 123.3 kB / 0.7332 GB, free: 177.2 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000913/0.8213, allocations: 0.9407 MB / 0.7342 GB, free: 176.4 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004784/0.8218, allocations: 34.41 kB / 0.7342 GB, free: 176.4 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.508e-05/0.8219, allocations: 65.86 kB / 0.7342 GB, free: 176.4 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 45 * 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 (67): * Single equations (assignments): 66 * 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,17)} Notification: Performance of prepare postOptimizeDAE: time 0.0002781/0.8222, allocations: 244.6 kB / 0.7345 GB, free: 176.2 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001192/0.8223, allocations: 69.89 kB / 0.7345 GB, free: 176.2 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001383/0.8237, allocations: 0.867 MB / 0.7354 GB, free: 175.7 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.392e-06/0.8237, allocations: 3.938 kB / 0.7354 GB, free: 175.7 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.894e-06/0.8237, allocations: 3.938 kB / 0.7354 GB, free: 175.7 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001996/0.8239, allocations: 183.9 kB / 0.7356 GB, free: 175.5 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001054/0.824, allocations: 19.88 kB / 0.7356 GB, free: 175.5 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003698/0.8244, allocations: 11.92 kB / 0.7356 GB, free: 175.5 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.852e-05/0.8245, allocations: 35.7 kB / 0.7356 GB, free: 175.5 MB / 0.5606 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001355/0.8259, allocations: 0.6197 MB / 0.7362 GB, free: 175.1 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0008683/0.8267, allocations: 0.8193 MB / 0.737 GB, free: 174.6 MB / 0.5606 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.000232/0.827, allocations: 181.7 kB / 0.7372 GB, free: 174.5 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0003991/0.8274, allocations: 438 kB / 0.7376 GB, free: 174.2 MB / 0.5606 GB Notification: Performance of Backend: time 6.11e-07/0.8274, allocations: 3.938 kB / 0.7376 GB, free: 174.2 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.001814/0.8292, allocations: 0.7532 MB / 0.7384 GB, free: 173.5 MB / 0.5606 GB Notification: Performance of SimCode: time 0.002177/0.8314, allocations: 1.913 MB / 0.7402 GB, free: 171.6 MB / 0.5606 GB Notification: Performance of Templates: time 0.02175/0.8532, allocations: 18.7 MB / 0.7585 GB, free: 153 MB / 0.5606 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Nitrogen.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Nitrogen.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Nitrogen.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Nitrogen.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Nitrogen.sim & ./ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Nitrogen -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Nitrogen.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Nitrogen_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Media/TestsWithFluid/MediaTestModels/IdealGases/Nitrogen/Nitrogen.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Nitrogen.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:$cse3,T_start,X_start[1],ambient.T,ambient.X[1],ambient.d,ambient.flowDirection,ambient.h,ambient.medium.T,ambient.medium.p,ambient.medium.preferredMediumStates,ambient.medium.standardOrderComponents,ambient.medium.state.T,ambient.medium.state.p,ambient.nPorts,ambient.p,ambient.ports[1].h_outflow,ambient.ports[1].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].h_outflow,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.p,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