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.001262/0.001262, allocations: 109.3 kB / 18.45 MB, free: 4.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.001211/0.001212, allocations: 183 kB / 19.38 MB, free: 3.684 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.276/1.276, allocations: 222.9 MB / 243.1 MB, free: 15.04 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.1941/0.1941, allocations: 44.18 MB / 337.4 MB, free: 2.641 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001296/0.001296, allocations: 63.91 kB / 471.2 MB, free: 13.16 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3234/0.3247, allocations: 60.81 MB / 0.5195 GB, free: 3.613 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives): time 0.001749/0.3265, allocations: 0.5491 MB / 0.5201 GB, free: 3.27 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007187/0.3273, allocations: 363.2 kB / 0.5204 GB, free: 3.031 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.791e-05/0.3273, allocations: 0 / 0.5204 GB, free: 3.031 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.867e-05/0.3273, allocations: 4.906 kB / 0.5204 GB, free: 3.027 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 2.954e-05/0.3274, allocations: 0 / 0.5204 GB, free: 3.027 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004001/0.3278, allocations: 108.4 kB / 0.5205 GB, free: 2.98 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 6.086e-05/0.3279, allocations: 23.94 kB / 0.5206 GB, free: 2.973 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.633e-05/0.3279, allocations: 4.359 kB / 0.5206 GB, free: 2.973 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.463e-05/0.3279, allocations: 19.22 kB / 0.5206 GB, free: 2.961 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.218e-05/0.328, allocations: 19.91 kB / 0.5206 GB, free: 2.949 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.351e-05/0.328, allocations: 2.188 kB / 0.5206 GB, free: 2.949 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002398/0.3283, allocations: 121 kB / 0.5207 GB, free: 2.914 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.261e-05/0.3283, allocations: 8.281 kB / 0.5207 GB, free: 2.91 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.418e-05/0.3283, allocations: 13.8 kB / 0.5207 GB, free: 2.902 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001743/0.3285, allocations: 98.33 kB / 0.5208 GB, free: 2.867 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.457e-06/0.3285, allocations: 4 kB / 0.5208 GB, free: 2.863 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.3285, allocations: 0 / 0.5208 GB, free: 2.863 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.642e-06/0.3285, allocations: 1.891 kB / 0.5208 GB, free: 2.863 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.0003576/0.3289, allocations: 362.8 kB / 0.5212 GB, free: 2.488 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.617e-05/0.3289, allocations: 10.22 kB / 0.5212 GB, free: 2.488 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.619e-05/0.329, allocations: 7.562 kB / 0.5212 GB, free: 2.484 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.35e-05/0.3291, allocations: 173.8 kB / 0.5214 GB, free: 2.281 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.018e-05/0.3291, allocations: 1.688 kB / 0.5214 GB, free: 2.281 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.98e-05/0.3291, allocations: 3.312 kB / 0.5214 GB, free: 2.281 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001184/0.3292, allocations: 62.53 kB / 0.5214 GB, free: 2.234 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.044e-05/0.3292, allocations: 192 / 0.5214 GB, free: 2.234 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.015e-05/0.3293, allocations: 5.062 kB / 0.5214 GB, free: 2.23 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.889e-06/0.3293, allocations: 1.125 kB / 0.5214 GB, free: 2.23 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.823e-05/0.3293, allocations: 28.73 kB / 0.5215 GB, free: 2.223 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001363/0.3295, allocations: 174.2 kB / 0.5216 GB, free: 2.02 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001965/0.3297, allocations: 59.3 kB / 0.5217 GB, free: 1.984 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.397e-05/0.3297, allocations: 26.91 kB / 0.5217 GB, free: 1.969 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002376/0.33, allocations: 108.8 kB / 0.5218 GB, free: 1.871 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.565e-05/0.33, allocations: 32 kB / 0.5218 GB, free: 1.832 MB / 382.1 MB Notification: Performance of pre-optimization done (n=9): time 1.052e-06/0.33, allocations: 0 / 0.5218 GB, free: 1.832 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.0419/0.3719, allocations: 2.573 MB / 0.5244 GB, free: 1.113 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.9e-05/0.372, allocations: 54.19 kB / 0.5244 GB, free: 1.051 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.312e-05/0.372, allocations: 103.5 kB / 0.5245 GB, free: 0.9453 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.049e-05/0.3721, allocations: 31.11 kB / 0.5245 GB, free: 0.9102 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.994e-05/0.3721, allocations: 84.14 kB / 0.5246 GB, free: 0.8242 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.127e-05/0.3722, allocations: 59.17 kB / 0.5247 GB, free: 0.7734 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001081/0.3723, allocations: 62.77 kB / 0.5247 GB, free: 0.7344 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.489e-05/0.3723, allocations: 320.2 kB / 0.525 GB, free: 424 kB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003372/0.3727, allocations: 178.7 kB / 0.5252 GB, free: 328 kB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003274/0.373, allocations: 181.1 kB / 0.5254 GB, free: 232 kB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008995/0.3739, allocations: 405.3 kB / 0.5258 GB, free: 36 kB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.192e-06/0.3739, allocations: 5.375 kB / 0.5258 GB, free: 32 kB / 382.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001039/0.375, allocations: 460.4 kB / 0.5262 GB, free: 15.79 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.668e-05/0.375, allocations: 8.094 kB / 0.5262 GB, free: 15.79 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.971e-06/0.375, allocations: 0 / 0.5262 GB, free: 15.79 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.706e-05/0.375, allocations: 1.188 kB / 0.5262 GB, free: 15.79 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003673/0.3754, allocations: 74.78 kB / 0.5263 GB, free: 15.77 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.272e-06/0.3754, allocations: 1.531 kB / 0.5263 GB, free: 15.77 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002023/0.3756, allocations: 21.81 kB / 0.5263 GB, free: 15.76 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.83e-05/0.3757, allocations: 17.27 kB / 0.5263 GB, free: 15.75 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.0001251/0.3758, allocations: 125.2 kB / 0.5265 GB, free: 15.62 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.977e-05/0.3759, allocations: 11.97 kB / 0.5265 GB, free: 15.62 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001205/0.3771, allocations: 0.5398 MB / 0.527 GB, free: 15.32 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.33e-06/0.3771, allocations: 6.406 kB / 0.527 GB, free: 15.32 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.609e-06/0.3771, allocations: 0 / 0.527 GB, free: 15.32 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.399e-06/0.3771, allocations: 0 / 0.527 GB, free: 15.32 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002086/0.3792, allocations: 0.8837 MB / 0.5279 GB, free: 14.65 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.989e-06/0.3792, allocations: 2.25 kB / 0.5279 GB, free: 14.65 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002808/0.3795, allocations: 70.12 kB / 0.5279 GB, free: 14.63 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.205e-06/0.3795, allocations: 2.375 kB / 0.5279 GB, free: 14.63 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.277e-05/0.3796, allocations: 18.75 kB / 0.5279 GB, free: 14.62 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.812e-06/0.3796, allocations: 11.27 kB / 0.528 GB, free: 14.62 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.537e-06/0.3796, allocations: 2.125 kB / 0.528 GB, free: 14.62 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009501/0.3805, allocations: 461.4 kB / 0.5284 GB, free: 14.31 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.169e-05/0.3806, allocations: 85.58 kB / 0.5285 GB, free: 14.21 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.725e-05/0.3806, allocations: 3.469 kB / 0.5285 GB, free: 14.21 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002072/0.3809, allocations: 26.25 kB / 0.5285 GB, free: 14.2 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.502e-05/0.3809, allocations: 14.58 kB / 0.5285 GB, free: 14.19 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.006e-05/0.3809, allocations: 18 kB / 0.5285 GB, free: 14.18 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.148e-05/0.381, allocations: 83.3 kB / 0.5286 GB, free: 14.11 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.381, allocations: 0 / 0.5286 GB, free: 14.11 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0011/0.3821, allocations: 313.5 kB / 0.5289 GB, free: 14.07 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.00156/0.3837, allocations: 235.1 kB / 0.5291 GB, free: 13.93 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0008626/0.3845, allocations: 342.9 kB / 0.5295 GB, free: 13.78 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.707e-06/0.3845, allocations: 0 / 0.5295 GB, free: 13.78 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003456/0.3849, allocations: 155.1 kB / 0.5296 GB, free: 13.71 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002771/0.3852, allocations: 12.58 kB / 0.5296 GB, free: 13.71 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001268/0.3865, allocations: 448.8 kB / 0.5301 GB, free: 13.39 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002545/0.3867, allocations: 0.6981 MB / 0.5307 GB, free: 12.68 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002218/0.387, allocations: 48.88 kB / 0.5308 GB, free: 12.66 MB / 398.1 MB Notification: Performance of SimCode: time 2.6e-07/0.387, allocations: 0 / 0.5308 GB, free: 12.66 MB / 398.1 MB Notification: Performance of Templates: time 0.01247/0.3994, allocations: 6.557 MB / 0.5372 GB, free: 9.301 MB / 398.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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestUtilities/TestRegSquare2Derivatives/TestRegSquare2Derivatives.csv","/var/lib/jenkins1/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