Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_cpp_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_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002289/0.002294, allocations: 182.8 kB / 16.4 MB, free: 5.75 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.217/2.217, allocations: 205.4 MB / 222.5 MB, free: 9.113 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001145/0.001145, allocations: 85.38 kB / 270.9 MB, free: 8.367 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.5169/0.5169, allocations: 43.55 MB / 362.7 MB, free: 51.96 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004601/0.0004603, allocations: 12 kB / 431.4 MB, free: 5.914 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1273/0.1278, allocations: 58.85 MB / 490.2 MB, free: 10.98 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice): time 0.3499/0.4778, allocations: 14.62 MB / 0.493 GB, free: 35.13 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.008571/0.4864, allocations: 3.809 MB / 0.4967 GB, free: 34.96 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001042/0.4875, allocations: 16.06 kB / 0.4967 GB, free: 34.96 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001295/0.4888, allocations: 231.2 kB / 0.497 GB, free: 34.91 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003044/0.4919, allocations: 0.6208 MB / 0.4976 GB, free: 34.86 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004008/0.496, allocations: 0.7653 MB / 0.4983 GB, free: 34.82 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.002425/0.4984, allocations: 0.8535 MB / 0.4992 GB, free: 34.79 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009301/0.4994, allocations: 361.3 kB / 0.4995 GB, free: 34.76 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001628/0.5011, allocations: 460.5 kB / 0.4999 GB, free: 34.68 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009304/0.502, allocations: 330.3 kB / 0.5003 GB, free: 34.61 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001533/0.5022, allocations: 25.78 kB / 0.5003 GB, free: 34.61 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002168/0.5044, allocations: 0.5051 MB / 0.5008 GB, free: 34.61 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003347/0.5048, allocations: 138.6 kB / 0.5009 GB, free: 34.58 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004375/0.5052, allocations: 144.8 kB / 0.501 GB, free: 34.53 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002107/0.5073, allocations: 0.7583 MB / 0.5018 GB, free: 34.47 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.748e-06/0.5074, allocations: 0 / 0.5018 GB, free: 34.47 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.555e-06/0.5074, allocations: 0 / 0.5018 GB, free: 34.47 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.484e-05/0.5074, allocations: 0.75 kB / 0.5018 GB, free: 34.47 MB / 378.7 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.002078/0.5095, allocations: 0.8879 MB / 0.5027 GB, free: 33.84 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.702e-05/0.5096, allocations: 8.125 kB / 0.5027 GB, free: 33.84 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005146/0.5101, allocations: 87.39 kB / 0.5027 GB, free: 33.8 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001007/0.5111, allocations: 469.8 kB / 0.5032 GB, free: 33.54 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.519e-05/0.5112, allocations: 37.06 kB / 0.5032 GB, free: 33.54 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.415e-05/0.5113, allocations: 47.62 kB / 0.5033 GB, free: 33.54 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001492/0.5128, allocations: 0.6445 MB / 0.5039 GB, free: 33.36 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.635e-05/0.5129, allocations: 1.406 kB / 0.5039 GB, free: 33.36 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001028/0.513, allocations: 23.88 kB / 0.5039 GB, free: 33.36 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.78e-05/0.513, allocations: 9.531 kB / 0.5039 GB, free: 33.36 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001152/0.5142, allocations: 0.5336 MB / 0.5045 GB, free: 33.17 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005153/0.5193, allocations: 3.171 MB / 0.5076 GB, free: 30.71 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006214/0.52, allocations: 225.7 kB / 0.5078 GB, free: 30.62 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003213/0.5204, allocations: 343.3 kB / 0.5081 GB, free: 30.23 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006295/0.521, allocations: 290.8 kB / 0.5084 GB, free: 30.05 MB / 378.7 MB Notification: Performance of pre-optimization done (n=28): time 2.936e-06/0.521, allocations: 2.781 kB / 0.5084 GB, free: 30.05 MB / 378.7 MB Notification: Performance of matching and sorting (n=28): time 0.001546/0.5226, allocations: 0.6154 MB / 0.509 GB, free: 29.73 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.862e-05/0.5227, allocations: 292.4 kB / 0.5093 GB, free: 29.38 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000919/0.5236, allocations: 0.5542 MB / 0.5098 GB, free: 29.12 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 9.335e-05/0.5238, allocations: 28.39 kB / 0.5098 GB, free: 29.09 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002584/0.524, allocations: 373.2 kB / 0.5102 GB, free: 28.76 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001225/0.5242, allocations: 97.25 kB / 0.5103 GB, free: 28.69 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.116e-05/0.5242, allocations: 10.66 kB / 0.5103 GB, free: 28.68 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.892e-05/0.5243, allocations: 334.6 kB / 0.5106 GB, free: 28.36 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004261/0.5248, allocations: 160.6 kB / 0.5108 GB, free: 28.3 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005964/0.5254, allocations: 380.1 kB / 0.5111 GB, free: 27.98 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005476/0.5259, allocations: 248.8 kB / 0.5114 GB, free: 27.84 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.683e-06/0.526, allocations: 1.156 kB / 0.5114 GB, free: 27.84 MB / 378.7 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001533/0.5275, allocations: 0.5976 MB / 0.5119 GB, free: 27.59 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004801/0.528, allocations: 2.126 MB / 0.514 GB, free: 25.32 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.6e-05/0.528, allocations: 6.344 kB / 0.514 GB, free: 25.32 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.31e-05/0.5281, allocations: 13.78 kB / 0.514 GB, free: 25.31 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002461/0.5306, allocations: 202.8 kB / 0.5142 GB, free: 25.3 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005665/0.5311, allocations: 0.6214 MB / 0.5148 GB, free: 24.7 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001044/0.5322, allocations: 79.09 kB / 0.5149 GB, free: 24.65 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001089/0.5323, allocations: 29.22 kB / 0.5149 GB, free: 24.64 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.373e-05/0.5324, allocations: 3.156 kB / 0.5149 GB, free: 24.64 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001359/0.5337, allocations: 0.5647 MB / 0.5155 GB, free: 24.41 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.046e-05/0.5338, allocations: 7 kB / 0.5155 GB, free: 24.41 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.474e-05/0.5338, allocations: 6.25 kB / 0.5155 GB, free: 24.41 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007081/0.5345, allocations: 117.2 kB / 0.5156 GB, free: 24.4 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.597e-05/0.5346, allocations: 9.688 kB / 0.5156 GB, free: 24.4 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006427/0.5352, allocations: 59.45 kB / 0.5157 GB, free: 24.37 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.557e-05/0.5353, allocations: 26.47 kB / 0.5157 GB, free: 24.36 MB / 378.7 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 ($whenCondition1,p_table.a,p_table.b,p_table.last,$PRE.p_table.nextEvent,p_table.nextEvent,p_table.nextEventScaled) * 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 (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005251/0.5358, allocations: 304.9 kB / 0.516 GB, free: 24.1 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001765/0.536, allocations: 56.75 kB / 0.5161 GB, free: 24.07 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002003/0.538, allocations: 0.7953 MB / 0.5168 GB, free: 23.75 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.348e-05/0.5381, allocations: 3.188 kB / 0.5168 GB, free: 23.75 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.812e-06/0.5381, allocations: 0 / 0.5168 GB, free: 23.75 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.165e-05/0.5381, allocations: 7.234 kB / 0.5168 GB, free: 23.75 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009268/0.5391, allocations: 0.5507 MB / 0.5174 GB, free: 23.42 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.981e-06/0.5391, allocations: 0 / 0.5174 GB, free: 23.42 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00112/0.5402, allocations: 121.4 kB / 0.5175 GB, free: 23.41 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.476e-06/0.5403, allocations: 0 / 0.5175 GB, free: 23.41 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.782e-05/0.5403, allocations: 13.05 kB / 0.5175 GB, free: 23.41 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003363/0.5407, allocations: 0.6 MB / 0.5181 GB, free: 22.8 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.853e-06/0.5407, allocations: 0 / 0.5181 GB, free: 22.8 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001191/0.5419, allocations: 0.5483 MB / 0.5186 GB, free: 22.54 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004132/0.5423, allocations: 224.6 kB / 0.5188 GB, free: 22.37 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001535/0.5425, allocations: 7.188 kB / 0.5188 GB, free: 22.36 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005728/0.5431, allocations: 39.03 kB / 0.5189 GB, free: 22.34 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.959e-05/0.5432, allocations: 29.31 kB / 0.5189 GB, free: 22.34 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.87e-05/0.5432, allocations: 17.17 kB / 0.5189 GB, free: 22.34 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0006974/0.544, allocations: 413.8 kB / 0.5193 GB, free: 22.14 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.544, allocations: 7.094 kB / 0.5193 GB, free: 22.14 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001845/0.5458, allocations: 414.8 kB / 0.5197 GB, free: 22.07 MB / 378.7 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 (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001148/0.547, allocations: 335.6 kB / 0.52 GB, free: 21.92 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.004403/0.5514, allocations: 0.9586 MB / 0.521 GB, free: 21.53 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 8.506e-06/0.5515, allocations: 0 / 0.521 GB, free: 21.53 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001712/0.5532, allocations: 385.7 kB / 0.5213 GB, free: 21.38 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00243/0.5557, allocations: 266.6 kB / 0.5216 GB, free: 21.31 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004766/0.5605, allocations: 1.302 MB / 0.5229 GB, free: 20.58 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000553/0.5612, allocations: 0.9024 MB / 0.5238 GB, free: 19.87 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005183/0.5617, allocations: 77.47 kB / 0.5238 GB, free: 19.86 MB / 378.7 MB Notification: Performance of SimCode: time 1.443e-06/0.5617, allocations: 0 / 0.5238 GB, free: 19.86 MB / 378.7 MB Notification: Performance of Templates: time 0.03768/0.5994, allocations: 14.57 MB / 0.5381 GB, free: 17.12 MB / 378.7 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestComponents/Fittings/TestSimpleGenericOrifice/TestSimpleGenericOrifice.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches