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.001193/0.001194, allocations: 118.4 kB / 17.78 MB, free: 5.262 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.00115/0.00115, allocations: 183.8 kB / 18.71 MB, free: 4.34 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.328/1.328, allocations: 222.9 MB / 242.4 MB, free: 15.07 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.2041/0.2041, allocations: 44.19 MB / 336.7 MB, free: 2.664 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001202/0.001202, allocations: 56.14 kB / 470.5 MB, free: 13.19 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.326/0.3272, allocations: 60.83 MB / 0.5189 GB, free: 3.594 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives): time 0.001495/0.3287, allocations: 0.5367 MB / 0.5194 GB, free: 3.266 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006037/0.3293, allocations: 370.5 kB / 0.5198 GB, free: 3.02 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.673e-05/0.3294, allocations: 5.219 kB / 0.5198 GB, free: 3.016 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.842e-05/0.3294, allocations: 3.938 kB / 0.5198 GB, free: 3.012 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 2.762e-05/0.3294, allocations: 0 / 0.5198 GB, free: 3.012 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000424/0.3299, allocations: 104.5 kB / 0.5199 GB, free: 2.969 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 6.325e-05/0.33, allocations: 28.05 kB / 0.5199 GB, free: 2.957 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.309e-05/0.33, allocations: 3.969 kB / 0.5199 GB, free: 2.957 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.18e-05/0.33, allocations: 14.64 kB / 0.5199 GB, free: 2.949 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.391e-05/0.3301, allocations: 12.75 kB / 0.5199 GB, free: 2.945 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.396e-05/0.3301, allocations: 6.188 kB / 0.5199 GB, free: 2.941 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002154/0.3303, allocations: 126 kB / 0.5201 GB, free: 2.902 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.665e-05/0.3303, allocations: 6.844 kB / 0.5201 GB, free: 2.898 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.363e-05/0.3304, allocations: 12.83 kB / 0.5201 GB, free: 2.891 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001915/0.3306, allocations: 98.73 kB / 0.5202 GB, free: 2.855 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.3306, allocations: 1.188 kB / 0.5202 GB, free: 2.855 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.3306, allocations: 0 / 0.5202 GB, free: 2.855 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.38e-06/0.3306, allocations: 0 / 0.5202 GB, free: 2.855 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.0003384/0.3309, allocations: 362 kB / 0.5205 GB, free: 2.48 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.792e-05/0.331, allocations: 12.81 kB / 0.5205 GB, free: 2.477 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.847e-05/0.331, allocations: 5.406 kB / 0.5205 GB, free: 2.477 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.301e-05/0.3311, allocations: 169.2 kB / 0.5207 GB, free: 2.277 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.118e-05/0.3311, allocations: 9.969 kB / 0.5207 GB, free: 2.27 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.829e-05/0.3312, allocations: 4.281 kB / 0.5207 GB, free: 2.27 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001319/0.3313, allocations: 52.17 kB / 0.5208 GB, free: 2.23 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.355e-05/0.3313, allocations: 1.688 kB / 0.5208 GB, free: 2.23 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.268e-05/0.3313, allocations: 7.938 kB / 0.5208 GB, free: 2.223 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.281e-06/0.3314, allocations: 2.203 kB / 0.5208 GB, free: 2.223 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.031e-05/0.3314, allocations: 28.88 kB / 0.5208 GB, free: 2.215 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001513/0.3316, allocations: 180.7 kB / 0.521 GB, free: 2.004 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002037/0.3318, allocations: 58.83 kB / 0.521 GB, free: 1.969 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.403e-05/0.3319, allocations: 24.31 kB / 0.5211 GB, free: 1.957 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000228/0.3321, allocations: 104.2 kB / 0.5212 GB, free: 1.863 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.454e-05/0.3321, allocations: 40.31 kB / 0.5212 GB, free: 1.816 MB / 382.1 MB Notification: Performance of pre-optimization done (n=9): time 1.232e-06/0.3321, allocations: 0 / 0.5212 GB, free: 1.816 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.04341/0.3755, allocations: 2.572 MB / 0.5237 GB, free: 1.105 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.176e-05/0.3756, allocations: 54.12 kB / 0.5238 GB, free: 1.043 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.174e-05/0.3757, allocations: 104.1 kB / 0.5239 GB, free: 0.9375 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.154e-05/0.3757, allocations: 25.7 kB / 0.5239 GB, free: 0.9062 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.429e-05/0.3758, allocations: 86.08 kB / 0.524 GB, free: 0.8203 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.079e-05/0.3758, allocations: 67.61 kB / 0.524 GB, free: 0.7617 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001096/0.376, allocations: 54.75 kB / 0.5241 GB, free: 0.7305 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.373e-05/0.376, allocations: 328.5 kB / 0.5244 GB, free: 412 kB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003681/0.3764, allocations: 174.4 kB / 0.5246 GB, free: 320 kB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003485/0.3767, allocations: 175.4 kB / 0.5247 GB, free: 228 kB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009128/0.3777, allocations: 419.1 kB / 0.5251 GB, free: 20 kB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.002e-06/0.3777, allocations: 0 / 0.5251 GB, free: 20 kB / 382.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0011/0.3788, allocations: 466.2 kB / 0.5256 GB, free: 15.78 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.849e-05/0.3788, allocations: 5.5 kB / 0.5256 GB, free: 15.78 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.735e-06/0.3788, allocations: 0 / 0.5256 GB, free: 15.78 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.929e-05/0.3789, allocations: 5.312 kB / 0.5256 GB, free: 15.77 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000381/0.3792, allocations: 66.66 kB / 0.5256 GB, free: 15.76 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.251e-06/0.3793, allocations: 1.469 kB / 0.5256 GB, free: 15.76 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002098/0.3795, allocations: 21.64 kB / 0.5257 GB, free: 15.75 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.634e-05/0.3795, allocations: 17.33 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.0001242/0.3796, allocations: 120.6 kB / 0.5258 GB, free: 15.62 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.379e-05/0.3797, allocations: 20.64 kB / 0.5258 GB, free: 15.6 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001264/0.381, allocations: 0.5384 MB / 0.5263 GB, free: 15.3 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.238e-06/0.381, allocations: 5.562 kB / 0.5263 GB, free: 15.3 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.437e-06/0.381, allocations: 1.562 kB / 0.5263 GB, free: 15.3 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.687e-06/0.381, allocations: 0 / 0.5263 GB, free: 15.3 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002129/0.3831, allocations: 0.8751 MB / 0.5272 GB, free: 14.64 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.486e-06/0.3831, allocations: 2.469 kB / 0.5272 GB, free: 14.64 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002814/0.3834, allocations: 73.03 kB / 0.5273 GB, free: 14.62 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.546e-06/0.3834, allocations: 3.25 kB / 0.5273 GB, free: 14.62 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.027e-05/0.3835, allocations: 14.67 kB / 0.5273 GB, free: 14.62 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.657e-06/0.3835, allocations: 3.375 kB / 0.5273 GB, free: 14.62 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.667e-06/0.3835, allocations: 5.25 kB / 0.5273 GB, free: 14.61 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009885/0.3845, allocations: 465.4 kB / 0.5277 GB, free: 14.3 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.723e-05/0.3845, allocations: 89.3 kB / 0.5278 GB, free: 14.2 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.692e-05/0.3846, allocations: 3.188 kB / 0.5278 GB, free: 14.2 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002092/0.3848, allocations: 22.06 kB / 0.5279 GB, free: 14.19 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.855e-05/0.3848, allocations: 15.11 kB / 0.5279 GB, free: 14.18 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.96e-05/0.3849, allocations: 26.08 kB / 0.5279 GB, free: 14.17 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.491e-05/0.3849, allocations: 78.84 kB / 0.528 GB, free: 14.1 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3849, allocations: 0 / 0.528 GB, free: 14.1 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0009714/0.3859, allocations: 314.2 kB / 0.5283 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.001317/0.3872, allocations: 237.6 kB / 0.5285 GB, free: 13.92 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0007979/0.388, allocations: 344.3 kB / 0.5288 GB, free: 13.76 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.388, allocations: 1.031 kB / 0.5288 GB, free: 13.76 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003499/0.3884, allocations: 150.2 kB / 0.529 GB, free: 13.7 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002744/0.3887, allocations: 9.594 kB / 0.529 GB, free: 13.7 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001234/0.3899, allocations: 414.3 kB / 0.5294 GB, free: 13.42 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002624/0.3902, allocations: 0.698 MB / 0.53 GB, free: 12.71 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0003095/0.3905, allocations: 93.5 kB / 0.5301 GB, free: 12.66 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000182/0.3907, allocations: 59.59 kB / 0.5302 GB, free: 12.64 MB / 398.1 MB Notification: Performance of SimCode: time 2.6e-07/0.3907, allocations: 0 / 0.5302 GB, free: 12.64 MB / 398.1 MB Notification: Performance of Templates: time 0.02318/0.4139, allocations: 17.8 MB / 0.5476 GB, free: 14.27 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