Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.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.TestRegRoot2Derivatives,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.TestRegRoot2Derivatives") translateModel(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives,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.TestRegRoot2Derivatives") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009262/0.0009266, allocations: 178.2 kB / 17.41 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.283/1.283, allocations: 225.7 MB / 243.9 MB, free: 10.21 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.0007388/0.0007389, allocations: 89.7 kB / 295 MB, free: 9.734 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.3072/0.3072, allocations: 44.32 MB / 390.5 MB, free: 38.34 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003123/0.0003123, allocations: 8 kB / 463.1 MB, free: 488 kB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3127/0.313, allocations: 61.9 MB / 0.5127 GB, free: 37.86 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives): time 0.0005057/0.3136, allocations: 267.4 kB / 0.513 GB, free: 37.68 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006543/0.3142, allocations: 0.6324 MB / 0.5136 GB, free: 37.14 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.721e-05/0.3143, allocations: 0 / 0.5136 GB, free: 37.14 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 1.162e-05/0.3143, allocations: 3.938 kB / 0.5136 GB, free: 37.13 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 2.91e-05/0.3143, allocations: 3.344 kB / 0.5136 GB, free: 37.13 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003338/0.3147, allocations: 91.95 kB / 0.5137 GB, free: 37.09 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 5.495e-05/0.3147, allocations: 23.81 kB / 0.5137 GB, free: 37.09 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.707e-05/0.3148, allocations: 3.188 kB / 0.5137 GB, free: 37.09 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.79e-05/0.3148, allocations: 13.77 kB / 0.5137 GB, free: 37.08 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.471e-05/0.3149, allocations: 17.3 kB / 0.5138 GB, free: 37.07 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 1.045e-05/0.3149, allocations: 4 kB / 0.5138 GB, free: 37.07 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002074/0.3151, allocations: 161.2 kB / 0.5139 GB, free: 37.02 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 1.342e-05/0.3151, allocations: 14.22 kB / 0.5139 GB, free: 37.01 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 3.337e-05/0.3152, allocations: 36.36 kB / 0.514 GB, free: 36.97 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001687/0.3153, allocations: 121.8 kB / 0.5141 GB, free: 36.93 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.3153, allocations: 0 / 0.5141 GB, free: 36.93 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.044e-06/0.3153, allocations: 0 / 0.5141 GB, free: 36.93 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.959e-06/0.3154, allocations: 0 / 0.5141 GB, free: 36.93 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.0003306/0.3157, allocations: 363.2 kB / 0.5144 GB, free: 36.55 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.684e-05/0.3157, allocations: 12.5 kB / 0.5144 GB, free: 36.55 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.005e-05/0.3158, allocations: 7.906 kB / 0.5145 GB, free: 36.55 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.892e-05/0.3159, allocations: 171.1 kB / 0.5146 GB, free: 36.35 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.334e-05/0.3159, allocations: 4.375 kB / 0.5146 GB, free: 36.34 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.036e-05/0.3159, allocations: 7.25 kB / 0.5146 GB, free: 36.34 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001067/0.316, allocations: 51.81 kB / 0.5147 GB, free: 36.3 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.452e-05/0.316, allocations: 7.266 kB / 0.5147 GB, free: 36.3 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.037e-05/0.3161, allocations: 0 / 0.5147 GB, free: 36.3 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.823e-06/0.3161, allocations: 2.875 kB / 0.5147 GB, free: 36.3 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.067e-05/0.3161, allocations: 29.52 kB / 0.5147 GB, free: 36.29 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001311/0.3163, allocations: 170.2 kB / 0.5149 GB, free: 36.09 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001797/0.3165, allocations: 56.45 kB / 0.5149 GB, free: 36.05 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.783e-05/0.3165, allocations: 24.09 kB / 0.515 GB, free: 36.04 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000232/0.3167, allocations: 123.1 kB / 0.5151 GB, free: 35.94 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.379e-05/0.3168, allocations: 32.72 kB / 0.5151 GB, free: 35.9 MB / 378.7 MB Notification: Performance of pre-optimization done (n=9): time 1.052e-06/0.3168, allocations: 0 / 0.5151 GB, free: 35.9 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.1138/0.4305, allocations: 6.621 MB / 0.5216 GB, free: 35.02 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.561e-05/0.4306, allocations: 54.22 kB / 0.5216 GB, free: 34.96 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.173e-05/0.4307, allocations: 99.77 kB / 0.5217 GB, free: 34.86 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.469e-05/0.4308, allocations: 33.7 kB / 0.5217 GB, free: 34.82 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.19e-05/0.4308, allocations: 86.08 kB / 0.5218 GB, free: 34.74 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.276e-05/0.4309, allocations: 64.45 kB / 0.5219 GB, free: 34.68 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.569e-05/0.4309, allocations: 6.781 kB / 0.5219 GB, free: 34.68 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.38e-05/0.431, allocations: 322 kB / 0.5222 GB, free: 34.36 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004981/0.4315, allocations: 244.4 kB / 0.5224 GB, free: 34.28 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004821/0.432, allocations: 253.3 kB / 0.5227 GB, free: 34.19 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001816/0.4338, allocations: 0.5859 MB / 0.5232 GB, free: 34 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.383e-06/0.4338, allocations: 0 / 0.5232 GB, free: 34 MB / 378.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001568/0.4354, allocations: 0.6426 MB / 0.5239 GB, free: 33.78 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.712e-05/0.4354, allocations: 5.125 kB / 0.5239 GB, free: 33.78 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.061e-06/0.4354, allocations: 0 / 0.5239 GB, free: 33.78 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.562e-05/0.4355, allocations: 0 / 0.5239 GB, free: 33.78 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005953/0.4361, allocations: 120.5 kB / 0.524 GB, free: 33.77 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.242e-06/0.4361, allocations: 3.328 kB / 0.524 GB, free: 33.77 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003956/0.4365, allocations: 30.59 kB / 0.524 GB, free: 33.77 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.536e-05/0.4365, allocations: 32.05 kB / 0.5241 GB, free: 33.77 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 0.0001084/0.4367, allocations: 125.2 kB / 0.5242 GB, free: 33.64 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.114e-05/0.4367, allocations: 13.25 kB / 0.5242 GB, free: 33.64 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00185/0.4386, allocations: 0.7538 MB / 0.5249 GB, free: 33.39 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.839e-06/0.4386, allocations: 7.031 kB / 0.5249 GB, free: 33.39 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-06/0.4386, allocations: 3.938 kB / 0.5249 GB, free: 33.38 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.197e-06/0.4386, allocations: 0 / 0.5249 GB, free: 33.38 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003491/0.4421, allocations: 1.224 MB / 0.5261 GB, free: 32.8 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.947e-06/0.4421, allocations: 2.594 kB / 0.5261 GB, free: 32.8 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00048/0.4426, allocations: 107.3 kB / 0.5262 GB, free: 32.8 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.769e-06/0.4426, allocations: 2.562 kB / 0.5262 GB, free: 32.8 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.422e-05/0.4427, allocations: 30.56 kB / 0.5263 GB, free: 32.79 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.719e-06/0.4427, allocations: 10.69 kB / 0.5263 GB, free: 32.79 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.326e-06/0.4427, allocations: 6.734 kB / 0.5263 GB, free: 32.78 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001439/0.4441, allocations: 0.6083 MB / 0.5269 GB, free: 32.5 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.708e-05/0.4442, allocations: 89.72 kB / 0.527 GB, free: 32.4 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.127e-05/0.4442, allocations: 6.531 kB / 0.527 GB, free: 32.4 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003831/0.4446, allocations: 38.19 kB / 0.527 GB, free: 32.39 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.801e-05/0.4446, allocations: 8.984 kB / 0.527 GB, free: 32.39 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.664e-05/0.4447, allocations: 31.53 kB / 0.527 GB, free: 32.39 MB / 378.7 MB Notification: Performance of sorting global known variables: time 2.529e-05/0.4447, allocations: 81.91 kB / 0.5271 GB, free: 32.31 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4447, allocations: 0 / 0.5271 GB, free: 32.31 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.00155/0.4463, allocations: 0.6536 MB / 0.5278 GB, free: 32.28 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.002772/0.4491, allocations: 308.8 kB / 0.5281 GB, free: 32.14 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001059/0.4501, allocations: 479.7 kB / 0.5285 GB, free: 32.01 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/0.4501, allocations: 4 kB / 0.5285 GB, free: 32 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004427/0.4506, allocations: 219.2 kB / 0.5287 GB, free: 31.95 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002796/0.4509, allocations: 12.56 kB / 0.5287 GB, free: 31.95 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002111/0.453, allocations: 0.5994 MB / 0.5293 GB, free: 31.68 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000101/0.4531, allocations: 0.6973 MB / 0.53 GB, free: 30.97 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0005083/0.4536, allocations: 124.2 kB / 0.5301 GB, free: 30.92 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000277/0.4539, allocations: 88.39 kB / 0.5302 GB, free: 30.91 MB / 378.7 MB Notification: Performance of SimCode: time 6.71e-07/0.4539, allocations: 3.938 kB / 0.5302 GB, free: 30.91 MB / 378.7 MB Notification: Performance of Templates: time 0.06208/0.516, allocations: 57.03 MB / 0.5859 GB, free: 2.422 MB / 394.7 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.sim & ./ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestUtilities/TestRegRoot2Derivatives/TestRegRoot2Derivatives.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches