Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.Dissipation.TestCases.PressureLoss.Orifice.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.Dissipation.TestCases.PressureLoss.Orifice,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10100,variableFilter="time|input_mflow.y|input_p.y|IN_p.ports.1..m_flow|IN_p.ports.1..p|IN_p.ports.1..h_outflow|OUT_dp.ports.1..m_flow|OUT_dp.ports.1..p|OUT_dp.ports.1..h_outflow|OUT_mflow.ports.1..m_flow|OUT_mflow.ports.1..p|OUT_mflow.ports.1..h_outflow|IN_mflow.ports.1..m_flow|IN_mflow.ports.1..p|IN_mflow.ports.1..h_outflow|from_dp.port_b.m_flow|from_dp.port_b.p|from_dp.port_b.h_outflow|from_mflow.port_b.m_flow|from_mflow.port_b.p|from_mflow.port_b.h_outflow",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Fluid.Dissipation.TestCases.PressureLoss.Orifice") translateModel(ModelicaTest.Fluid.Dissipation.TestCases.PressureLoss.Orifice,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10100,variableFilter="time|input_mflow.y|input_p.y|IN_p.ports.1..m_flow|IN_p.ports.1..p|IN_p.ports.1..h_outflow|OUT_dp.ports.1..m_flow|OUT_dp.ports.1..p|OUT_dp.ports.1..h_outflow|OUT_mflow.ports.1..m_flow|OUT_mflow.ports.1..p|OUT_mflow.ports.1..h_outflow|IN_mflow.ports.1..m_flow|IN_mflow.ports.1..p|IN_mflow.ports.1..h_outflow|from_dp.port_b.m_flow|from_dp.port_b.p|from_dp.port_b.h_outflow|from_mflow.port_b.m_flow|from_mflow.port_b.p|from_mflow.port_b.h_outflow",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Fluid.Dissipation.TestCases.PressureLoss.Orifice") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00143/0.00143, allocations: 101.5 kB / 17.85 MB, free: 5.66 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.001633/0.001633, allocations: 194 kB / 18.77 MB, free: 4.742 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.394/1.394, allocations: 222.9 MB / 242.4 MB, free: 15.49 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.2174/0.2174, allocations: 44.18 MB / 336.8 MB, free: 3.031 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001309/0.001309, allocations: 60.69 kB / 408.4 MB, free: 27.73 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1215/0.1228, allocations: 60.84 MB / 469.2 MB, free: 14.85 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.Dissipation.TestCases.PressureLoss.Orifice): time 0.4539/0.5767, allocations: 179 MB / 0.633 GB, free: 14.3 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.007199/0.584, allocations: 4.71 MB / 0.6376 GB, free: 9.574 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008046/0.5848, allocations: 19.81 kB / 0.6376 GB, free: 9.555 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009952/0.5858, allocations: 290.4 kB / 0.6379 GB, free: 9.27 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005111/0.591, allocations: 1.569 MB / 0.6394 GB, free: 7.699 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002629/0.5937, allocations: 0.8716 MB / 0.6403 GB, free: 6.836 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.002606/0.5963, allocations: 2.182 MB / 0.6424 GB, free: 4.645 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005848/0.5969, allocations: 386.6 kB / 0.6428 GB, free: 4.266 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001506/0.5984, allocations: 0.7707 MB / 0.6435 GB, free: 3.492 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006297/0.599, allocations: 0.5097 MB / 0.644 GB, free: 2.98 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 8.691e-05/0.5991, allocations: 28 kB / 0.6441 GB, free: 2.953 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002583/0.6017, allocations: 1.197 MB / 0.6452 GB, free: 1.754 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001835/0.6019, allocations: 159.4 kB / 0.6454 GB, free: 1.598 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004159/0.6023, allocations: 354.3 kB / 0.6457 GB, free: 1.25 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001541/0.6039, allocations: 1.165 MB / 0.6469 GB, free: 84 kB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.096e-06/0.6039, allocations: 0 / 0.6469 GB, free: 84 kB / 478.1 MB Notification: Performance of FrontEnd: time 9.52e-07/0.6039, allocations: 0 / 0.6469 GB, free: 84 kB / 478.1 MB Notification: Performance of Transformations before backend: time 1.109e-05/0.6039, allocations: 0 / 0.6469 GB, free: 84 kB / 478.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 112 * Number of variables: 112 Notification: Performance of Generate backend data structure: time 0.001978/0.6059, allocations: 1.103 MB / 0.6479 GB, free: 14.93 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.851e-05/0.606, allocations: 12.03 kB / 0.6479 GB, free: 14.91 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001179/0.6071, allocations: 159.1 kB / 0.6481 GB, free: 14.76 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006861/0.6078, allocations: 488.4 kB / 0.6486 GB, free: 14.24 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.58e-05/0.6079, allocations: 29 kB / 0.6486 GB, free: 14.21 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.948e-05/0.6079, allocations: 44 kB / 0.6486 GB, free: 14.17 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001141/0.6091, allocations: 0.64 MB / 0.6493 GB, free: 13.48 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.543e-05/0.6091, allocations: 3.938 kB / 0.6493 GB, free: 13.48 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.167e-05/0.6092, allocations: 24 kB / 0.6493 GB, free: 13.46 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.407e-05/0.6092, allocations: 15.94 kB / 0.6493 GB, free: 13.44 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009058/0.6101, allocations: 0.4956 MB / 0.6498 GB, free: 12.95 MB / 494.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.003163/0.6133, allocations: 2.652 MB / 0.6524 GB, free: 10.11 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007044/0.614, allocations: 326.7 kB / 0.6527 GB, free: 9.777 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002824/0.6143, allocations: 160.8 kB / 0.6528 GB, free: 9.617 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004798/0.6148, allocations: 437.5 kB / 0.6533 GB, free: 9.098 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.087e-05/0.6148, allocations: 34.56 kB / 0.6533 GB, free: 9.055 MB / 494.1 MB Notification: Performance of pre-optimization done (n=35): time 1.764e-06/0.6149, allocations: 4 kB / 0.6533 GB, free: 9.051 MB / 494.1 MB Notification: Performance of matching and sorting (n=35): time 0.001688/0.6166, allocations: 0.7054 MB / 0.654 GB, free: 8.316 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.975e-05/0.6167, allocations: 162.2 kB / 0.6541 GB, free: 8.121 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006117/0.6173, allocations: 0.5184 MB / 0.6546 GB, free: 7.59 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 5.096e-05/0.6173, allocations: 37.7 kB / 0.6547 GB, free: 7.547 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002102/0.6175, allocations: 299.6 kB / 0.655 GB, free: 7.25 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000112/0.6177, allocations: 126.2 kB / 0.6551 GB, free: 7.125 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001782/0.6179, allocations: 114.1 kB / 0.6552 GB, free: 7.008 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001566/0.618, allocations: 374.8 kB / 0.6555 GB, free: 6.633 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002791/0.6183, allocations: 141.1 kB / 0.6557 GB, free: 6.496 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004216/0.6187, allocations: 318.9 kB / 0.656 GB, free: 6.105 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007089/0.6194, allocations: 478.8 kB / 0.6564 GB, free: 5.574 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.278e-06/0.6195, allocations: 1.875 kB / 0.6564 GB, free: 5.574 MB / 494.1 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.001049/0.6205, allocations: 0.5715 MB / 0.657 GB, free: 4.992 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.99e-05/0.6205, allocations: 11.94 kB / 0.657 GB, free: 4.98 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.928e-06/0.6206, allocations: 4 kB / 0.657 GB, free: 4.977 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001644/0.6222, allocations: 244.9 kB / 0.6573 GB, free: 4.734 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004061/0.6226, allocations: 111.9 kB / 0.6574 GB, free: 4.625 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004787/0.6231, allocations: 0.5913 MB / 0.6579 GB, free: 4.008 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000419/0.6235, allocations: 67.36 kB / 0.658 GB, free: 3.941 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.746e-05/0.6237, allocations: 51.98 kB / 0.658 GB, free: 3.891 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (52): * Single equations (assignments): 51 * 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 {(1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.000275/0.6239, allocations: 193.6 kB / 0.6582 GB, free: 3.691 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001351/0.6241, allocations: 67.34 kB / 0.6583 GB, free: 3.625 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002071/0.6262, allocations: 1.098 MB / 0.6594 GB, free: 2.508 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.49e-06/0.6262, allocations: 4 kB / 0.6594 GB, free: 2.504 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.3e-06/0.6262, allocations: 7.938 kB / 0.6594 GB, free: 2.496 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.903e-06/0.6262, allocations: 3.984 kB / 0.6594 GB, free: 2.492 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001421/0.6276, allocations: 1.008 MB / 0.6604 GB, free: 1.406 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.316e-06/0.6276, allocations: 192 / 0.6604 GB, free: 1.406 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002191/0.6279, allocations: 55.91 kB / 0.6604 GB, free: 1.352 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003422/0.6313, allocations: 448.1 kB / 0.6609 GB, free: 0.9102 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.463e-05/0.6313, allocations: 8 kB / 0.6609 GB, free: 0.9023 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004729/0.6318, allocations: 0.5914 MB / 0.6614 GB, free: 292 kB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.11e-06/0.6318, allocations: 7.922 kB / 0.6614 GB, free: 284 kB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008655/0.6327, allocations: 0.5011 MB / 0.6619 GB, free: 15.74 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001724/0.6329, allocations: 144.3 kB / 0.6621 GB, free: 15.58 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001142/0.633, allocations: 11.91 kB / 0.6621 GB, free: 15.57 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003944/0.6334, allocations: 27.97 kB / 0.6621 GB, free: 15.54 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.518e-05/0.6335, allocations: 31.84 kB / 0.6621 GB, free: 15.51 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.951e-05/0.6336, allocations: 16 kB / 0.6622 GB, free: 15.49 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0005835/0.6341, allocations: 442.8 kB / 0.6626 GB, free: 15.06 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.41e-07/0.6342, allocations: 0 / 0.6626 GB, free: 15.06 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0009994/0.6352, allocations: 295.7 kB / 0.6629 GB, free: 14.77 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 0 () * 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 (28): * Single equations (assignments): 27 * 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 {(1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001024/0.6362, allocations: 394.5 kB / 0.6632 GB, free: 14.39 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0008593/0.6371, allocations: 373.2 kB / 0.6636 GB, free: 14.02 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 4.94e-06/0.6371, allocations: 4 kB / 0.6636 GB, free: 14.02 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0003203/0.6374, allocations: 151.9 kB / 0.6637 GB, free: 13.87 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001922/0.6393, allocations: 394.3 kB / 0.6641 GB, free: 13.49 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001731/0.6411, allocations: 1.143 MB / 0.6652 GB, free: 12.29 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004455/0.6415, allocations: 0.8676 MB / 0.6661 GB, free: 11.4 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004587/0.642, allocations: 139.3 kB / 0.6662 GB, free: 11.26 MB / 0.4981 GB Notification: Performance of SimCode: time 6.81e-07/0.642, allocations: 0 / 0.6662 GB, free: 11.26 MB / 0.4981 GB Notification: Performance of Templates: time 0.02332/0.6653, allocations: 15.49 MB / 0.6813 GB, free: 11.85 MB / 0.5137 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Fluid.Dissipation.TestCases.PressureLoss.Orifice.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.Dissipation.TestCases.PressureLoss.Orifice.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.Dissipation.TestCases.PressureLoss.Orifice.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.Dissipation.TestCases.PressureLoss.Orifice.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.Dissipation.TestCases.PressureLoss.Orifice.sim & ./ModelicaTest_4.0.0_ModelicaTest.Fluid.Dissipation.TestCases.PressureLoss.Orifice -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Fluid.Dissipation.TestCases.PressureLoss.Orifice.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.Dissipation.TestCases.PressureLoss.Orifice_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/Dissipation/TestCases/PressureLoss/Orifice/Orifice.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Fluid.Dissipation.TestCases.PressureLoss.Orifice.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches