Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.000912/0.0009119, allocations: 173.5 kB / 17.4 MB, free: 4.293 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.289/1.289, allocations: 225.7 MB / 243.9 MB, free: 8.457 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008126/0.0008127, allocations: 96.7 kB / 295.1 MB, free: 9.508 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2864/0.2864, allocations: 44.32 MB / 390.5 MB, free: 38.04 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002864/0.0002864, allocations: 8 kB / 463.1 MB, free: 472 kB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2526/0.2529, allocations: 61.9 MB / 0.5127 GB, free: 37.94 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives): time 0.0005071/0.2534, allocations: 265.8 kB / 0.513 GB, free: 37.77 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005783/0.254, allocations: 0.5921 MB / 0.5136 GB, free: 37.25 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.78e-05/0.254, allocations: 3.938 kB / 0.5136 GB, free: 37.25 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 1.443e-05/0.2541, allocations: 0 / 0.5136 GB, free: 37.25 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 2.564e-05/0.2541, allocations: 0 / 0.5136 GB, free: 37.25 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002756/0.2544, allocations: 77.61 kB / 0.5137 GB, free: 37.21 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 4.228e-05/0.2544, allocations: 23.95 kB / 0.5137 GB, free: 37.2 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.617e-05/0.2545, allocations: 2.469 kB / 0.5137 GB, free: 37.2 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.992e-05/0.2545, allocations: 12.62 kB / 0.5137 GB, free: 37.2 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.56e-05/0.2545, allocations: 20.86 kB / 0.5137 GB, free: 37.18 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 1.014e-05/0.2546, allocations: 3.938 kB / 0.5137 GB, free: 37.18 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001684/0.2547, allocations: 110.6 kB / 0.5138 GB, free: 37.16 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 1.182e-05/0.2548, allocations: 7.938 kB / 0.5138 GB, free: 37.15 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 2.623e-05/0.2548, allocations: 42.16 kB / 0.5139 GB, free: 37.11 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001309/0.2549, allocations: 98.92 kB / 0.514 GB, free: 37.07 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.078e-06/0.2549, allocations: 0 / 0.514 GB, free: 37.07 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.583e-06/0.2549, allocations: 0 / 0.514 GB, free: 37.07 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.216e-06/0.255, allocations: 3.812 kB / 0.514 GB, free: 37.07 MB / 378.7 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.0002684/0.2552, allocations: 355 kB / 0.5143 GB, free: 36.7 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.979e-05/0.2553, allocations: 10.75 kB / 0.5143 GB, free: 36.7 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.33e-05/0.2553, allocations: 3.844 kB / 0.5143 GB, free: 36.7 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.479e-05/0.2554, allocations: 164.4 kB / 0.5145 GB, free: 36.5 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.201e-05/0.2554, allocations: 7.281 kB / 0.5145 GB, free: 36.49 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.131e-05/0.2554, allocations: 11.59 kB / 0.5145 GB, free: 36.48 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.762e-05/0.2555, allocations: 60.08 kB / 0.5145 GB, free: 36.44 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.091e-05/0.2555, allocations: 3.188 kB / 0.5146 GB, free: 36.44 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.554e-06/0.2555, allocations: 3.938 kB / 0.5146 GB, free: 36.43 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.747e-06/0.2555, allocations: 0 / 0.5146 GB, free: 36.43 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.552e-05/0.2556, allocations: 27.66 kB / 0.5146 GB, free: 36.43 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000114/0.2557, allocations: 170.5 kB / 0.5147 GB, free: 36.23 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001696/0.2559, allocations: 63.55 kB / 0.5148 GB, free: 36.19 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.672e-05/0.256, allocations: 23.17 kB / 0.5148 GB, free: 36.18 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002203/0.2562, allocations: 112.7 kB / 0.5149 GB, free: 36.08 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.218e-05/0.2562, allocations: 37.41 kB / 0.515 GB, free: 36.04 MB / 378.7 MB Notification: Performance of pre-optimization done (n=9): time 1.223e-06/0.2562, allocations: 4 kB / 0.515 GB, free: 36.04 MB / 378.7 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.03759/0.2938, allocations: 2.825 MB / 0.5177 GB, free: 35.31 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.031e-05/0.2939, allocations: 54.81 kB / 0.5178 GB, free: 35.25 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.373e-05/0.2939, allocations: 102.9 kB / 0.5179 GB, free: 35.14 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.559e-05/0.294, allocations: 29.7 kB / 0.5179 GB, free: 35.11 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.018e-05/0.294, allocations: 84.12 kB / 0.518 GB, free: 35.02 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.584e-05/0.2941, allocations: 58.59 kB / 0.518 GB, free: 34.98 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.254e-05/0.2941, allocations: 4 kB / 0.5181 GB, free: 34.97 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.582e-05/0.2941, allocations: 324.4 kB / 0.5184 GB, free: 34.65 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003349/0.2945, allocations: 187.9 kB / 0.5185 GB, free: 34.59 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003262/0.2948, allocations: 196.8 kB / 0.5187 GB, free: 34.52 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008685/0.2957, allocations: 454.9 kB / 0.5192 GB, free: 34.35 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.112e-06/0.2957, allocations: 0 / 0.5192 GB, free: 34.35 MB / 378.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0008728/0.2966, allocations: 489.9 kB / 0.5196 GB, free: 34.17 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.467e-05/0.2966, allocations: 6.875 kB / 0.5196 GB, free: 34.17 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.621e-06/0.2966, allocations: 2.812 kB / 0.5196 GB, free: 34.17 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.418e-05/0.2966, allocations: 0 / 0.5196 GB, free: 34.17 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003573/0.297, allocations: 82.12 kB / 0.5197 GB, free: 34.16 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.82e-06/0.297, allocations: 0 / 0.5197 GB, free: 34.16 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002052/0.2972, allocations: 28.19 kB / 0.5197 GB, free: 34.16 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.302e-05/0.2973, allocations: 19.28 kB / 0.5198 GB, free: 34.15 MB / 378.7 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 8.123e-05/0.2974, allocations: 117.2 kB / 0.5199 GB, free: 34.03 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.933e-05/0.2974, allocations: 17.03 kB / 0.5199 GB, free: 34.02 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001107/0.2985, allocations: 0.5757 MB / 0.5205 GB, free: 33.81 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.018e-06/0.2985, allocations: 3.062 kB / 0.5205 GB, free: 33.81 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.007e-06/0.2985, allocations: 0 / 0.5205 GB, free: 33.81 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.176e-06/0.2985, allocations: 0 / 0.5205 GB, free: 33.81 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001761/0.3003, allocations: 0.9511 MB / 0.5214 GB, free: 33.3 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.354e-06/0.3003, allocations: 0 / 0.5214 GB, free: 33.3 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002593/0.3006, allocations: 76 kB / 0.5215 GB, free: 33.3 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.807e-06/0.3006, allocations: 6.969 kB / 0.5215 GB, free: 33.29 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.506e-05/0.3006, allocations: 15.94 kB / 0.5215 GB, free: 33.29 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.695e-06/0.3006, allocations: 2.938 kB / 0.5215 GB, free: 33.29 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.3006, allocations: 3.031 kB / 0.5215 GB, free: 33.29 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007404/0.3014, allocations: 496.6 kB / 0.522 GB, free: 33.02 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.732e-05/0.3014, allocations: 83.08 kB / 0.522 GB, free: 32.93 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.399e-05/0.3015, allocations: 14.17 kB / 0.522 GB, free: 32.92 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001915/0.3017, allocations: 20.83 kB / 0.5221 GB, free: 32.92 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.055e-05/0.3017, allocations: 16.02 kB / 0.5221 GB, free: 32.92 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.468e-05/0.3017, allocations: 18 kB / 0.5221 GB, free: 32.92 MB / 378.7 MB Notification: Performance of sorting global known variables: time 2.228e-05/0.3017, allocations: 86.28 kB / 0.5222 GB, free: 32.84 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3017, allocations: 2.656 kB / 0.5222 GB, free: 32.84 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0007945/0.3025, allocations: 312.3 kB / 0.5225 GB, free: 32.81 MB / 378.7 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.001159/0.3037, allocations: 249.5 kB / 0.5227 GB, free: 32.68 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0007115/0.3044, allocations: 373.1 kB / 0.5231 GB, free: 32.56 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.3044, allocations: 0 / 0.5231 GB, free: 32.56 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003076/0.3048, allocations: 167.6 kB / 0.5232 GB, free: 32.52 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002442/0.305, allocations: 13.84 kB / 0.5233 GB, free: 32.52 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001159/0.3062, allocations: 496 kB / 0.5237 GB, free: 32.26 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001091/0.3063, allocations: 0.6989 MB / 0.5244 GB, free: 31.55 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0003573/0.3067, allocations: 97.81 kB / 0.5245 GB, free: 31.51 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001664/0.3068, allocations: 49.11 kB / 0.5245 GB, free: 31.5 MB / 378.7 MB Notification: Performance of SimCode: time 3.41e-07/0.3068, allocations: 4 kB / 0.5246 GB, free: 31.5 MB / 378.7 MB Notification: Performance of Templates: time 0.0202/0.327, allocations: 17.56 MB / 0.5417 GB, free: 26.82 MB / 378.7 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","../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches