Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.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.TestUtilities.TestRegSquare2Derivatives,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|x|y|yd|ydd|k1|k2|y2|y2d|y2dd",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives") translateModel(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|x|y|yd|ydd|k1|k2|y2|y2d|y2dd",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001293/0.001292, allocations: 108.8 kB / 17.78 MB, free: 5.281 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.001376/0.001376, allocations: 180.9 kB / 18.71 MB, free: 4.363 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.305/1.305, allocations: 222.9 MB / 242.4 MB, free: 15.14 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.1921/0.1921, allocations: 44.19 MB / 336.7 MB, free: 2.652 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001208/0.001208, allocations: 63.89 kB / 470.5 MB, free: 13.16 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2923/0.2935, allocations: 60.82 MB / 0.5189 GB, free: 3.598 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives): time 0.001481/0.295, allocations: 0.556 MB / 0.5194 GB, free: 3.25 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005474/0.2956, allocations: 362.6 kB / 0.5198 GB, free: 3.012 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.661e-05/0.2956, allocations: 1.312 kB / 0.5198 GB, free: 3.012 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.384e-05/0.2956, allocations: 3.938 kB / 0.5198 GB, free: 3.008 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 2.927e-05/0.2957, allocations: 3.938 kB / 0.5198 GB, free: 3.004 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003619/0.296, allocations: 103.6 kB / 0.5199 GB, free: 2.961 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 5.346e-05/0.2961, allocations: 29.94 kB / 0.5199 GB, free: 2.949 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.98e-05/0.2962, allocations: 2.891 kB / 0.5199 GB, free: 2.949 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.988e-05/0.2962, allocations: 14.81 kB / 0.5199 GB, free: 2.941 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.905e-05/0.2962, allocations: 16.88 kB / 0.5199 GB, free: 2.934 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.235e-05/0.2962, allocations: 2.281 kB / 0.5199 GB, free: 2.934 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002064/0.2965, allocations: 121.6 kB / 0.5201 GB, free: 2.898 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.32e-05/0.2965, allocations: 7.828 kB / 0.5201 GB, free: 2.895 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.059e-05/0.2965, allocations: 12.19 kB / 0.5201 GB, free: 2.887 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001644/0.2967, allocations: 104.5 kB / 0.5202 GB, free: 2.855 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.296e-06/0.2967, allocations: 0 / 0.5202 GB, free: 2.855 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.2967, allocations: 4 kB / 0.5202 GB, free: 2.852 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.469e-06/0.2967, allocations: 0 / 0.5202 GB, free: 2.852 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0002981/0.297, allocations: 365.4 kB / 0.5205 GB, free: 2.469 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.194e-05/0.297, allocations: 9.656 kB / 0.5205 GB, free: 2.469 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.201e-05/0.2971, allocations: 11.2 kB / 0.5206 GB, free: 2.461 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.709e-05/0.2971, allocations: 168 kB / 0.5207 GB, free: 2.262 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.037e-05/0.2972, allocations: 2.5 kB / 0.5207 GB, free: 2.262 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.043e-05/0.2972, allocations: 3.625 kB / 0.5207 GB, free: 2.262 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001038/0.2973, allocations: 53.19 kB / 0.5208 GB, free: 2.223 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.098e-05/0.2973, allocations: 9.172 kB / 0.5208 GB, free: 2.215 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.407e-06/0.2973, allocations: 8.453 kB / 0.5208 GB, free: 2.207 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.747e-06/0.2973, allocations: 1.281 kB / 0.5208 GB, free: 2.207 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.113e-05/0.2974, allocations: 30.25 kB / 0.5208 GB, free: 2.199 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001197/0.2975, allocations: 169.1 kB / 0.521 GB, free: 2 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001756/0.2977, allocations: 54.52 kB / 0.521 GB, free: 1.969 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.252e-05/0.2978, allocations: 31.08 kB / 0.5211 GB, free: 1.949 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002045/0.298, allocations: 108.9 kB / 0.5212 GB, free: 1.852 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.284e-05/0.298, allocations: 32.66 kB / 0.5212 GB, free: 1.812 MB / 382.1 MB Notification: Performance of pre-optimization done (n=9): time 1.232e-06/0.298, allocations: 3.938 kB / 0.5212 GB, free: 1.809 MB / 382.1 MB Warning: Some equations could not be differentiated for following variables having attribute stateSelect=StateSelect.prefer. They will be treated as if they had stateSelect=StateSelect.default ======================================== 1: k2 2: k1 3: x Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=19): time 0.03874/0.3367, allocations: 2.571 MB / 0.5237 GB, free: 1.098 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.618e-05/0.3368, allocations: 54.16 kB / 0.5238 GB, free: 1.035 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.55e-05/0.3369, allocations: 100.7 kB / 0.5239 GB, free: 0.9336 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.35e-05/0.3369, allocations: 33.7 kB / 0.5239 GB, free: 0.8945 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.912e-05/0.3369, allocations: 85.5 kB / 0.524 GB, free: 0.8086 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.626e-05/0.337, allocations: 66.3 kB / 0.524 GB, free: 0.75 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001097/0.3371, allocations: 55.03 kB / 0.5241 GB, free: 0.7188 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.368e-05/0.3371, allocations: 325.5 kB / 0.5244 GB, free: 404 kB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003276/0.3375, allocations: 174.4 kB / 0.5246 GB, free: 312 kB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003177/0.3378, allocations: 176.8 kB / 0.5247 GB, free: 220 kB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009164/0.3387, allocations: 415.1 kB / 0.5251 GB, free: 16 kB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.092e-06/0.3387, allocations: 7.938 kB / 0.5251 GB, free: 8 kB / 382.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001018/0.3398, allocations: 462.1 kB / 0.5256 GB, free: 15.77 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.944e-05/0.3398, allocations: 5.125 kB / 0.5256 GB, free: 15.77 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.372e-06/0.3398, allocations: 0 / 0.5256 GB, free: 15.77 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.095e-05/0.3398, allocations: 5.469 kB / 0.5256 GB, free: 15.77 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00035/0.3402, allocations: 71.66 kB / 0.5257 GB, free: 15.75 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.582e-06/0.3402, allocations: 1.375 kB / 0.5257 GB, free: 15.75 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001821/0.3404, allocations: 17.61 kB / 0.5257 GB, free: 15.74 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.561e-05/0.3404, allocations: 16.36 kB / 0.5257 GB, free: 15.74 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * 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 (19): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001149/0.3406, allocations: 128.5 kB / 0.5258 GB, free: 15.61 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.648e-05/0.3406, allocations: 12.02 kB / 0.5258 GB, free: 15.6 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001151/0.3418, allocations: 0.5348 MB / 0.5263 GB, free: 15.3 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.168e-06/0.3418, allocations: 2.656 kB / 0.5263 GB, free: 15.3 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.308e-06/0.3418, allocations: 0 / 0.5263 GB, free: 15.3 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.831e-06/0.3418, allocations: 5.422 kB / 0.5264 GB, free: 15.3 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001925/0.3437, allocations: 0.8827 MB / 0.5272 GB, free: 14.63 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.258e-06/0.3437, allocations: 1.594 kB / 0.5272 GB, free: 14.63 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002731/0.344, allocations: 66.09 kB / 0.5273 GB, free: 14.62 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.608e-06/0.344, allocations: 2.312 kB / 0.5273 GB, free: 14.62 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.245e-05/0.3441, allocations: 19.8 kB / 0.5273 GB, free: 14.61 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.268e-06/0.3441, allocations: 6.094 kB / 0.5273 GB, free: 14.61 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.04e-06/0.3441, allocations: 6.219 kB / 0.5273 GB, free: 14.6 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008466/0.3449, allocations: 468.8 kB / 0.5278 GB, free: 14.29 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.742e-05/0.345, allocations: 85.19 kB / 0.5278 GB, free: 14.19 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.475e-05/0.345, allocations: 8.453 kB / 0.5278 GB, free: 14.19 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001839/0.3452, allocations: 22.08 kB / 0.5279 GB, free: 14.18 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.984e-05/0.3452, allocations: 18.52 kB / 0.5279 GB, free: 14.16 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.917e-05/0.3453, allocations: 18.77 kB / 0.5279 GB, free: 14.16 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.113e-05/0.3453, allocations: 82.72 kB / 0.528 GB, free: 14.08 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3453, allocations: 0 / 0.528 GB, free: 14.08 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0009623/0.3463, allocations: 320.8 kB / 0.5283 GB, free: 14.04 MB / 398.1 MB 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 (19): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00121/0.3475, allocations: 242.3 kB / 0.5285 GB, free: 13.89 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0007237/0.3482, allocations: 332.8 kB / 0.5288 GB, free: 13.75 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.3483, allocations: 0 / 0.5288 GB, free: 13.75 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003161/0.3486, allocations: 151.1 kB / 0.529 GB, free: 13.68 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002532/0.3488, allocations: 12.16 kB / 0.529 GB, free: 13.68 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001107/0.35, allocations: 430.5 kB / 0.5294 GB, free: 13.38 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002256/0.3502, allocations: 0.6968 MB / 0.5301 GB, free: 12.67 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002637/0.3505, allocations: 94.22 kB / 0.5302 GB, free: 12.63 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001683/0.3506, allocations: 47.81 kB / 0.5302 GB, free: 12.61 MB / 398.1 MB Notification: Performance of SimCode: time 2.11e-07/0.3506, allocations: 0 / 0.5302 GB, free: 12.61 MB / 398.1 MB Notification: Performance of Templates: time 0.02161/0.3723, allocations: 17.8 MB / 0.5476 GB, free: 14.23 MB / 414.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.sim & ./ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestUtilities/TestRegSquare2Derivatives/TestRegSquare2Derivatives.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches