Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.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.Fittings.TestSimpleGenericOrifice,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|p_table.a|p_table.b|p_table.last|p_table.nextEvent",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice") translateModel(ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|p_table.a|p_table.b|p_table.last|p_table.nextEvent",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007194/0.0007194, allocations: 97.2 kB / 18.01 MB, free: 5.602 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.0007728/0.0007728, allocations: 177.6 kB / 18.91 MB, free: 4.738 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.367/1.367, allocations: 223.3 MB / 243 MB, free: 14.3 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.2114/0.2114, allocations: 44.25 MB / 338.3 MB, free: 2.398 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003442/0.0003442, allocations: 8 kB / 411 MB, free: 27.27 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1186/0.119, allocations: 61.94 MB / 472.9 MB, free: 13.31 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice): time 0.0165/0.1355, allocations: 16.99 MB / 489.9 MB, free: 12.25 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.00639/0.142, allocations: 4.472 MB / 494.4 MB, free: 7.766 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007491/0.1428, allocations: 19.81 kB / 494.4 MB, free: 7.746 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008076/0.1436, allocations: 250.6 kB / 494.6 MB, free: 7.5 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001827/0.1454, allocations: 0.6919 MB / 495.3 MB, free: 6.805 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002475/0.1479, allocations: 0.8547 MB / 496.2 MB, free: 5.957 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.002105/0.15, allocations: 1.879 MB / 498.1 MB, free: 4.07 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006011/0.1507, allocations: 365.3 kB / 498.4 MB, free: 3.711 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009262/0.1516, allocations: 0.5018 MB / 498.9 MB, free: 3.207 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005638/0.1522, allocations: 454 kB / 499.4 MB, free: 2.762 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 6.535e-05/0.1522, allocations: 28 kB / 499.4 MB, free: 2.734 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001353/0.1536, allocations: 0.6202 MB / 0.4883 GB, free: 2.113 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001726/0.1538, allocations: 147.4 kB / 0.4884 GB, free: 1.969 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003468/0.1541, allocations: 344 kB / 0.4888 GB, free: 1.625 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009932/0.1551, allocations: 0.7913 MB / 0.4895 GB, free: 0.832 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.976e-06/0.1552, allocations: 0 / 0.4895 GB, free: 0.832 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.1552, allocations: 0 / 0.4895 GB, free: 0.832 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.306e-06/0.1552, allocations: 0 / 0.4895 GB, free: 0.832 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 117 * Number of variables: 117 Notification: Performance of Generate backend data structure: time 0.001433/0.1566, allocations: 0.8861 MB / 0.4904 GB, free: 15.89 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.087e-05/0.1567, allocations: 8.031 kB / 0.4904 GB, free: 15.88 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003212/0.157, allocations: 80.19 kB / 0.4905 GB, free: 15.8 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006284/0.1576, allocations: 485.6 kB / 0.491 GB, free: 15.29 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.465e-05/0.1577, allocations: 37.38 kB / 0.491 GB, free: 15.25 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.718e-05/0.1578, allocations: 40.38 kB / 0.491 GB, free: 15.21 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009661/0.1587, allocations: 0.6611 MB / 0.4917 GB, free: 14.5 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.329e-05/0.1588, allocations: 0 / 0.4917 GB, free: 14.5 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.049e-05/0.1588, allocations: 23.98 kB / 0.4917 GB, free: 14.48 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.353e-05/0.1588, allocations: 16 kB / 0.4917 GB, free: 14.46 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000783/0.1596, allocations: 0.5308 MB / 0.4922 GB, free: 13.93 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003468/0.1631, allocations: 3.093 MB / 0.4953 GB, free: 10.65 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003866/0.1635, allocations: 230.7 kB / 0.4955 GB, free: 10.42 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002531/0.1638, allocations: 161 kB / 0.4956 GB, free: 10.26 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000313/0.1641, allocations: 344.6 kB / 0.496 GB, free: 9.848 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004283/0.1645, allocations: 302.5 kB / 0.4962 GB, free: 9.516 MB / 382.1 MB Notification: Performance of pre-optimization done (n=28): time 2.935e-06/0.1646, allocations: 0 / 0.4962 GB, free: 9.516 MB / 382.1 MB Notification: Performance of matching and sorting (n=28): time 0.0009899/0.1656, allocations: 0.5394 MB / 0.4968 GB, free: 8.965 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001627/0.1657, allocations: 298.7 kB / 0.4971 GB, free: 8.605 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006475/0.1664, allocations: 0.5614 MB / 0.4976 GB, free: 8.031 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.349e-05/0.1664, allocations: 33.7 kB / 0.4976 GB, free: 7.992 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002514/0.1667, allocations: 339 kB / 0.498 GB, free: 7.656 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.24e-05/0.1668, allocations: 86.75 kB / 0.498 GB, free: 7.57 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.139e-05/0.1669, allocations: 45.7 kB / 0.4981 GB, free: 7.52 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001594/0.167, allocations: 366.8 kB / 0.4984 GB, free: 7.152 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002669/0.1673, allocations: 161 kB / 0.4986 GB, free: 6.992 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000443/0.1678, allocations: 396.9 kB / 0.499 GB, free: 6.508 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006808/0.1685, allocations: 0.5504 MB / 0.4995 GB, free: 5.871 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.128e-06/0.1685, allocations: 0 / 0.4995 GB, free: 5.871 MB / 382.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001026/0.1695, allocations: 0.6461 MB / 0.5001 GB, free: 5.211 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001838/0.1697, allocations: 275.2 kB / 0.5004 GB, free: 4.859 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.554e-05/0.1697, allocations: 7.938 kB / 0.5004 GB, free: 4.852 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.115e-05/0.1697, allocations: 11.94 kB / 0.5004 GB, free: 4.84 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001413/0.1712, allocations: 203.7 kB / 0.5006 GB, free: 4.641 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004984/0.1717, allocations: 0.6249 MB / 0.5012 GB, free: 3.992 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005452/0.1722, allocations: 79.3 kB / 0.5013 GB, free: 3.914 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.651e-05/0.1723, allocations: 35.98 kB / 0.5013 GB, free: 3.879 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.079e-05/0.1724, allocations: 6.5 kB / 0.5013 GB, free: 3.875 MB / 382.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008825/0.1733, allocations: 0.5557 MB / 0.5019 GB, free: 3.312 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.815e-06/0.1733, allocations: 8 kB / 0.5019 GB, free: 3.305 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.101e-05/0.1733, allocations: 11.94 kB / 0.5019 GB, free: 3.293 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003668/0.1737, allocations: 111.8 kB / 0.502 GB, free: 3.184 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.05e-05/0.1737, allocations: 11.94 kB / 0.502 GB, free: 3.172 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004299/0.1741, allocations: 67.98 kB / 0.5021 GB, free: 3.105 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.955e-05/0.1742, allocations: 31.98 kB / 0.5021 GB, free: 3.074 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * Number of states: 0 () * Number of discrete variables: 7 (p_table.nextEventScaled,p_table.nextEvent,$PRE.p_table.nextEvent,p_table.last,p_table.b,p_table.a,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (56): * Single equations (assignments): 54 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003628/0.1746, allocations: 299.1 kB / 0.5024 GB, free: 2.766 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001014/0.1747, allocations: 67.25 kB / 0.5025 GB, free: 2.699 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001327/0.176, allocations: 0.7801 MB / 0.5032 GB, free: 1.949 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.03e-05/0.176, allocations: 8 kB / 0.5032 GB, free: 1.941 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.531e-06/0.176, allocations: 0 / 0.5032 GB, free: 1.941 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.644e-06/0.176, allocations: 7.984 kB / 0.5032 GB, free: 1.934 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006372/0.1767, allocations: 0.5325 MB / 0.5038 GB, free: 1.352 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.947e-06/0.1767, allocations: 0 / 0.5038 GB, free: 1.352 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006444/0.1773, allocations: 131.8 kB / 0.5039 GB, free: 1.223 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.479e-06/0.1774, allocations: 0 / 0.5039 GB, free: 1.223 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.607e-05/0.1774, allocations: 19.92 kB / 0.5039 GB, free: 1.203 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003232/0.1777, allocations: 0.5898 MB / 0.5045 GB, free: 0.5898 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.1778, allocations: 0 / 0.5045 GB, free: 0.5898 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2473/0.425, allocations: 0.5664 MB / 0.505 GB, free: 49.52 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005444/0.4256, allocations: 204.6 kB / 0.5052 GB, free: 49.43 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002309/0.4259, allocations: 12.89 kB / 0.5052 GB, free: 49.43 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004665/0.4263, allocations: 22.17 kB / 0.5053 GB, free: 49.43 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001078/0.4265, allocations: 26.88 kB / 0.5053 GB, free: 49.43 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.498e-05/0.4265, allocations: 18 kB / 0.5053 GB, free: 49.43 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0008262/0.4274, allocations: 417.4 kB / 0.5057 GB, free: 49.33 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.4274, allocations: 0 / 0.5057 GB, free: 49.33 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001732/0.4291, allocations: 427.2 kB / 0.5061 GB, free: 49.33 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,p_table.a,p_table.b,p_table.last,p_table.nextEvent,p_table.nextEventScaled) * Number of discrete states: 6 (p_table.nextEvent,p_table.last,p_table.nextEventScaled,p_table.b,p_table.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001006/0.4301, allocations: 338.1 kB / 0.5064 GB, free: 49.25 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002856/0.433, allocations: 0.9716 MB / 0.5074 GB, free: 49.12 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.089e-06/0.433, allocations: 1.031 kB / 0.5074 GB, free: 49.12 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001075/0.4341, allocations: 387.9 kB / 0.5078 GB, free: 49.05 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001647/0.4358, allocations: 271.3 kB / 0.508 GB, free: 49.04 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002463/0.4383, allocations: 1.374 MB / 0.5094 GB, free: 48.36 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004505/0.4387, allocations: 0.8914 MB / 0.5102 GB, free: 47.66 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002569/0.439, allocations: 72.05 kB / 0.5103 GB, free: 47.66 MB / 382.1 MB Notification: Performance of SimCode: time 1.012e-06/0.439, allocations: 0 / 0.5103 GB, free: 47.66 MB / 382.1 MB Notification: Performance of Templates: time 0.02791/0.4669, allocations: 14.61 MB / 0.5246 GB, free: 42.26 MB / 382.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.sim & ./ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Fittings/TestSimpleGenericOrifice/TestSimpleGenericOrifice.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches