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.001203/0.001203, allocations: 110.6 kB / 18.46 MB, free: 4.598 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.001284/0.001284, allocations: 187.1 kB / 19.38 MB, free: 3.68 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.391/1.391, allocations: 222.9 MB / 243.1 MB, free: 15.1 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.2102/0.2102, allocations: 44.18 MB / 337.4 MB, free: 2.672 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001325/0.001325, allocations: 63.91 kB / 471.2 MB, free: 13.17 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3147/0.3161, allocations: 60.82 MB / 0.5196 GB, free: 3.609 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice): time 0.01697/0.3331, allocations: 17.05 MB / 0.5362 GB, free: 6.801 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0063/0.3394, allocations: 4.406 MB / 0.5405 GB, free: 3.219 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007034/0.3402, allocations: 16.62 kB / 0.5405 GB, free: 3.211 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008672/0.3411, allocations: 287.1 kB / 0.5408 GB, free: 2.969 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001834/0.3429, allocations: 0.759 MB / 0.5416 GB, free: 2.355 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002868/0.3458, allocations: 0.9932 MB / 0.5425 GB, free: 1.66 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002942/0.3488, allocations: 1.452 MB / 0.5439 GB, free: 0.8242 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009663/0.3498, allocations: 428.8 kB / 0.5443 GB, free: 0.5469 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001415/0.3512, allocations: 0.565 MB / 0.5449 GB, free: 240 kB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001269/0.3525, allocations: 448.7 kB / 0.5453 GB, free: 15.98 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002955/0.3528, allocations: 49.72 kB / 0.5454 GB, free: 15.98 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001926/0.3547, allocations: 0.6385 MB / 0.546 GB, free: 15.66 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003295/0.3551, allocations: 157.9 kB / 0.5462 GB, free: 15.54 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008466/0.3559, allocations: 351.4 kB / 0.5465 GB, free: 15.32 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002832/0.3588, allocations: 1.105 MB / 0.5476 GB, free: 14.63 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.241e-06/0.3588, allocations: 0 / 0.5476 GB, free: 14.63 MB / 414.1 MB Notification: Performance of FrontEnd: time 5.139e-06/0.3588, allocations: 1.062 kB / 0.5476 GB, free: 14.63 MB / 414.1 MB Notification: Performance of Transformations before backend: time 4.307e-05/0.3589, allocations: 11.88 kB / 0.5476 GB, free: 14.62 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.002493/0.3614, allocations: 1.022 MB / 0.5486 GB, free: 13.77 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.819e-05/0.3614, allocations: 9.125 kB / 0.5486 GB, free: 13.77 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004371/0.3619, allocations: 79.5 kB / 0.5487 GB, free: 13.74 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001018/0.3629, allocations: 0.497 MB / 0.5491 GB, free: 13.3 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.454e-05/0.363, allocations: 32.16 kB / 0.5492 GB, free: 13.29 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.922e-05/0.3631, allocations: 57.72 kB / 0.5492 GB, free: 13.27 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001276/0.3643, allocations: 0.6607 MB / 0.5499 GB, free: 12.8 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.897e-05/0.3644, allocations: 1.125 kB / 0.5499 GB, free: 12.8 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.043e-05/0.3644, allocations: 27.19 kB / 0.5499 GB, free: 12.79 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.854e-05/0.3645, allocations: 12.53 kB / 0.5499 GB, free: 12.79 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008113/0.3653, allocations: 0.5271 MB / 0.5504 GB, free: 12.26 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00384/0.3691, allocations: 3.089 MB / 0.5534 GB, free: 8.988 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004281/0.3696, allocations: 234.7 kB / 0.5537 GB, free: 8.75 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002474/0.3698, allocations: 157 kB / 0.5538 GB, free: 8.594 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002806/0.3701, allocations: 340.4 kB / 0.5541 GB, free: 8.188 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004419/0.3706, allocations: 310.8 kB / 0.5544 GB, free: 7.848 MB / 414.1 MB Notification: Performance of pre-optimization done (n=28): time 1.894e-06/0.3706, allocations: 0 / 0.5544 GB, free: 7.848 MB / 414.1 MB Notification: Performance of matching and sorting (n=28): time 0.001035/0.3716, allocations: 0.5313 MB / 0.555 GB, free: 7.305 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001457/0.3718, allocations: 294.7 kB / 0.5552 GB, free: 6.949 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006655/0.3725, allocations: 0.5614 MB / 0.5558 GB, free: 6.379 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 5.854e-05/0.3725, allocations: 37.7 kB / 0.5558 GB, free: 6.336 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002417/0.3728, allocations: 335 kB / 0.5561 GB, free: 6.004 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.288e-05/0.3729, allocations: 102.7 kB / 0.5562 GB, free: 5.902 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001867/0.3731, allocations: 122.1 kB / 0.5564 GB, free: 5.777 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001625/0.3733, allocations: 370.8 kB / 0.5567 GB, free: 5.406 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002804/0.3735, allocations: 163 kB / 0.5569 GB, free: 5.242 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000458/0.374, allocations: 392.9 kB / 0.5572 GB, free: 4.758 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007314/0.3748, allocations: 0.5503 MB / 0.5578 GB, free: 4.121 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.542e-06/0.3748, allocations: 4 kB / 0.5578 GB, free: 4.117 MB / 414.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001093/0.3759, allocations: 0.6423 MB / 0.5584 GB, free: 3.461 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.386e-05/0.3759, allocations: 41.69 kB / 0.5585 GB, free: 3.414 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.123e-05/0.3759, allocations: 4 kB / 0.5585 GB, free: 3.41 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.135e-05/0.376, allocations: 8 kB / 0.5585 GB, free: 3.402 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001355/0.3773, allocations: 196.3 kB / 0.5586 GB, free: 3.211 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004907/0.3778, allocations: 0.6287 MB / 0.5593 GB, free: 2.559 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005501/0.3784, allocations: 71.27 kB / 0.5593 GB, free: 2.488 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.103e-05/0.3785, allocations: 28.09 kB / 0.5594 GB, free: 2.461 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004127/0.3789, allocations: 293.2 kB / 0.5596 GB, free: 2.172 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004242/0.3793, allocations: 376.9 kB / 0.56 GB, free: 1.707 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0006517/0.38, allocations: 0.5307 MB / 0.5605 GB, free: 1.09 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.587e-06/0.38, allocations: 0 / 0.5605 GB, free: 1.09 MB / 414.1 MB Notification: Performance of matching and sorting (n=61) (initialization_lambda0): time 0.001038/0.381, allocations: 0.6189 MB / 0.5611 GB, free: 468 kB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.942e-05/0.3811, allocations: 42.41 kB / 0.5612 GB, free: 420 kB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.11e-05/0.3811, allocations: 11.94 kB / 0.5612 GB, free: 408 kB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.178e-05/0.3811, allocations: 12 kB / 0.5612 GB, free: 396 kB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003805/0.3815, allocations: 111.8 kB / 0.5613 GB, free: 284 kB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.08e-05/0.3815, allocations: 11.94 kB / 0.5613 GB, free: 272 kB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006295/0.3822, allocations: 47.67 kB / 0.5613 GB, free: 224 kB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.732e-05/0.3823, allocations: 31.98 kB / 0.5614 GB, free: 192 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.0002535/0.3825, allocations: 241.9 kB / 0.5616 GB, free: 15.93 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001385/0.3827, allocations: 75.06 kB / 0.5617 GB, free: 15.86 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001399/0.3841, allocations: 0.7729 MB / 0.5624 GB, free: 15.11 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.655e-06/0.3841, allocations: 0 / 0.5624 GB, free: 15.11 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.797e-06/0.3841, allocations: 0 / 0.5624 GB, free: 15.11 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000332/0.3845, allocations: 204.1 kB / 0.5626 GB, free: 14.89 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001334/0.3846, allocations: 16 kB / 0.5626 GB, free: 14.88 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000299/0.3849, allocations: 12 kB / 0.5627 GB, free: 14.87 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.965e-05/0.385, allocations: 24.3 kB / 0.5627 GB, free: 14.84 MB / 430.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001069/0.3861, allocations: 0.6485 MB / 0.5633 GB, free: 14.16 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001262/0.3873, allocations: 0.9128 MB / 0.5642 GB, free: 13.23 MB / 430.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0002946/0.3876, allocations: 225.3 kB / 0.5644 GB, free: 13.01 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0006722/0.3883, allocations: 415.1 kB / 0.5648 GB, free: 12.61 MB / 430.1 MB Notification: Performance of Backend: time 7.01e-07/0.3883, allocations: 0 / 0.5648 GB, free: 12.61 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003785/0.3921, allocations: 1.109 MB / 0.5659 GB, free: 11.48 MB / 430.1 MB Notification: Performance of SimCode: time 0.002919/0.3951, allocations: 1.684 MB / 0.5675 GB, free: 9.738 MB / 430.1 MB Notification: Performance of Templates: time 0.03134/0.4264, allocations: 16.83 MB / 0.584 GB, free: 9.043 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