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.001646/0.001647, allocations: 113.9 kB / 18.46 MB, free: 4.617 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.001581/0.001582, allocations: 190 kB / 19.39 MB, free: 3.688 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.403/1.403, allocations: 222.9 MB / 243.1 MB, free: 15.06 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.2171/0.2171, allocations: 44.19 MB / 337.4 MB, free: 2.672 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001526/0.001526, allocations: 63.91 kB / 471.2 MB, free: 13.18 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3505/0.352, allocations: 60.82 MB / 0.5196 GB, free: 3.625 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice): time 0.01636/0.3684, allocations: 17.05 MB / 0.5362 GB, free: 6.82 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.006658/0.3751, allocations: 4.405 MB / 0.5405 GB, free: 3.238 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004875/0.3756, allocations: 17.81 kB / 0.5405 GB, free: 3.23 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008334/0.3765, allocations: 286.9 kB / 0.5408 GB, free: 2.988 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001708/0.3782, allocations: 0.7582 MB / 0.5416 GB, free: 2.375 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002872/0.3811, allocations: 0.9908 MB / 0.5425 GB, free: 1.68 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.00194/0.383, allocations: 1.451 MB / 0.5439 GB, free: 0.8438 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007149/0.3838, allocations: 433.5 kB / 0.5444 GB, free: 0.5625 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001156/0.3849, allocations: 0.5574 MB / 0.5449 GB, free: 264 kB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00108/0.386, allocations: 453.3 kB / 0.5453 GB, free: 15.99 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002342/0.3863, allocations: 48.94 kB / 0.5454 GB, free: 15.99 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001701/0.388, allocations: 0.6391 MB / 0.546 GB, free: 15.68 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002994/0.3883, allocations: 157.6 kB / 0.5462 GB, free: 15.56 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008219/0.3891, allocations: 356 kB / 0.5465 GB, free: 15.34 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002696/0.3918, allocations: 1.109 MB / 0.5476 GB, free: 14.64 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.561e-06/0.3918, allocations: 0 / 0.5476 GB, free: 14.64 MB / 414.1 MB Notification: Performance of FrontEnd: time 5.32e-06/0.3919, allocations: 5.312 kB / 0.5476 GB, free: 14.64 MB / 414.1 MB Notification: Performance of Transformations before backend: time 3.895e-05/0.3919, allocations: 3.938 kB / 0.5476 GB, free: 14.63 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: 117 * Number of variables: 117 Notification: Performance of Generate backend data structure: time 0.002243/0.3942, allocations: 1.04 MB / 0.5486 GB, free: 13.77 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.773e-05/0.3942, allocations: 8.875 kB / 0.5486 GB, free: 13.77 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004624/0.3947, allocations: 85.12 kB / 0.5487 GB, free: 13.73 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0011/0.3958, allocations: 0.5009 MB / 0.5492 GB, free: 13.29 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.794e-05/0.3958, allocations: 40.22 kB / 0.5492 GB, free: 13.27 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.483e-05/0.3959, allocations: 45.22 kB / 0.5493 GB, free: 13.26 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001102/0.397, allocations: 0.6571 MB / 0.5499 GB, free: 12.8 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.922e-05/0.3971, allocations: 5 kB / 0.5499 GB, free: 12.8 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.039e-05/0.3971, allocations: 19.25 kB / 0.5499 GB, free: 12.79 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.372e-05/0.3972, allocations: 11.06 kB / 0.5499 GB, free: 12.78 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008527/0.398, allocations: 0.5308 MB / 0.5505 GB, free: 12.24 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003994/0.402, allocations: 3.105 MB / 0.5535 GB, free: 8.953 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004111/0.4025, allocations: 238.6 kB / 0.5537 GB, free: 8.711 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002296/0.4027, allocations: 153 kB / 0.5539 GB, free: 8.559 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002707/0.403, allocations: 344.4 kB / 0.5542 GB, free: 8.148 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004456/0.4034, allocations: 302.8 kB / 0.5545 GB, free: 7.816 MB / 414.1 MB Notification: Performance of pre-optimization done (n=28): time 2.034e-06/0.4034, allocations: 3.938 kB / 0.5545 GB, free: 7.812 MB / 414.1 MB Notification: Performance of matching and sorting (n=28): time 0.001043/0.4045, allocations: 0.5356 MB / 0.555 GB, free: 7.266 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001435/0.4046, allocations: 294.7 kB / 0.5553 GB, free: 6.91 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006427/0.4053, allocations: 0.5615 MB / 0.5558 GB, free: 6.34 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.268e-05/0.4053, allocations: 33.7 kB / 0.5559 GB, free: 6.301 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002438/0.4056, allocations: 347.8 kB / 0.5562 GB, free: 5.957 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.299e-05/0.4057, allocations: 91.22 kB / 0.5563 GB, free: 5.867 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00018/0.4059, allocations: 122.2 kB / 0.5564 GB, free: 5.742 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001666/0.4061, allocations: 366.8 kB / 0.5568 GB, free: 5.375 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002869/0.4064, allocations: 175 kB / 0.5569 GB, free: 5.199 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004567/0.4068, allocations: 388.9 kB / 0.5573 GB, free: 4.719 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007536/0.4076, allocations: 0.5541 MB / 0.5578 GB, free: 4.078 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.917e-06/0.4076, allocations: 3.938 kB / 0.5578 GB, free: 4.074 MB / 414.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001158/0.4088, allocations: 0.6504 MB / 0.5585 GB, free: 3.41 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.266e-05/0.4088, allocations: 37.69 kB / 0.5585 GB, free: 3.367 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.285e-05/0.4088, allocations: 8 kB / 0.5585 GB, free: 3.359 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.696e-05/0.4089, allocations: 8.719 kB / 0.5585 GB, free: 3.352 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001346/0.4102, allocations: 195.7 kB / 0.5587 GB, free: 3.16 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005251/0.4108, allocations: 0.621 MB / 0.5593 GB, free: 2.516 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005575/0.4113, allocations: 75.59 kB / 0.5594 GB, free: 2.441 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.743e-05/0.4114, allocations: 28 kB / 0.5594 GB, free: 2.414 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004227/0.4118, allocations: 293.2 kB / 0.5597 GB, free: 2.125 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004836/0.4123, allocations: 368.9 kB / 0.56 GB, free: 1.668 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007449/0.4131, allocations: 0.5307 MB / 0.5606 GB, free: 1.051 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.558e-06/0.4131, allocations: 4 kB / 0.5606 GB, free: 1.047 MB / 414.1 MB Notification: Performance of matching and sorting (n=61) (initialization_lambda0): time 0.001068/0.4142, allocations: 0.6199 MB / 0.5612 GB, free: 424 kB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.486e-05/0.4143, allocations: 53.75 kB / 0.5612 GB, free: 364 kB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.041e-05/0.4143, allocations: 7.938 kB / 0.5612 GB, free: 356 kB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.117e-05/0.4143, allocations: 8 kB / 0.5612 GB, free: 348 kB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003613/0.4147, allocations: 111.9 kB / 0.5613 GB, free: 236 kB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.618e-06/0.4147, allocations: 11.94 kB / 0.5614 GB, free: 224 kB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004664/0.4151, allocations: 47.77 kB / 0.5614 GB, free: 176 kB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.846e-05/0.4152, allocations: 27.98 kB / 0.5614 GB, free: 148 kB / 414.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.0002422/0.4154, allocations: 260.8 kB / 0.5617 GB, free: 15.88 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001124/0.4156, allocations: 71.52 kB / 0.5617 GB, free: 15.81 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00129/0.4169, allocations: 0.7807 MB / 0.5625 GB, free: 15.05 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.221e-06/0.4169, allocations: 0 / 0.5625 GB, free: 15.05 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.497e-06/0.4169, allocations: 0 / 0.5625 GB, free: 15.05 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002628/0.4172, allocations: 204.5 kB / 0.5627 GB, free: 14.83 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001041/0.4173, allocations: 12 kB / 0.5627 GB, free: 14.82 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000262/0.4175, allocations: 12 kB / 0.5627 GB, free: 14.81 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001147/0.4177, allocations: 32.28 kB / 0.5628 GB, free: 14.78 MB / 430.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0009102/0.4186, allocations: 0.6486 MB / 0.5634 GB, free: 14.1 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001186/0.4198, allocations: 0.9132 MB / 0.5643 GB, free: 13.16 MB / 430.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0003045/0.4201, allocations: 221.2 kB / 0.5645 GB, free: 12.95 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0004563/0.4206, allocations: 419 kB / 0.5649 GB, free: 12.54 MB / 430.1 MB Notification: Performance of Backend: time 2.2e-07/0.4206, allocations: 0 / 0.5649 GB, free: 12.54 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.00336/0.4239, allocations: 1.117 MB / 0.566 GB, free: 11.41 MB / 430.1 MB Notification: Performance of SimCode: time 0.002418/0.4264, allocations: 1.682 MB / 0.5676 GB, free: 9.664 MB / 430.1 MB Notification: Performance of Templates: time 0.02681/0.4532, allocations: 16.85 MB / 0.5841 GB, free: 8.953 MB / 446.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