Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_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_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009854/0.0009854, allocations: 170.4 kB / 16.07 MB, free: 5.73 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.231/1.231, allocations: 205.6 MB / 222.4 MB, free: 8.941 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007631/0.0007633, allocations: 87.14 kB / 270.8 MB, free: 8.141 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2933/0.2933, allocations: 43.66 MB / 362.7 MB, free: 52.19 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002823/0.0002823, allocations: 15.98 kB / 432.3 MB, free: 5.035 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09368/0.09398, allocations: 58.84 MB / 491.2 MB, free: 10.06 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives): time 0.0005557/0.09457, allocations: 268.4 kB / 491.4 MB, free: 9.801 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006883/0.09527, allocations: 0.5989 MB / 492 MB, free: 9.148 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.558e-05/0.0953, allocations: 3.938 kB / 492 MB, free: 9.145 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 1.049e-05/0.09532, allocations: 0 / 492 MB, free: 9.145 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 3.127e-05/0.09536, allocations: 0 / 492 MB, free: 9.145 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002898/0.09566, allocations: 83.72 kB / 492.1 MB, free: 9.062 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 4.385e-05/0.09571, allocations: 19.98 kB / 492.1 MB, free: 9.043 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.07e-05/0.09576, allocations: 4 kB / 492.1 MB, free: 9.039 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.086e-05/0.09578, allocations: 11.94 kB / 492.1 MB, free: 9.027 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.575e-05/0.09584, allocations: 23.91 kB / 492.2 MB, free: 9.004 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 8.997e-06/0.09585, allocations: 7.938 kB / 492.2 MB, free: 8.996 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001813/0.09604, allocations: 111.8 kB / 492.3 MB, free: 8.887 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 1.298e-05/0.09606, allocations: 4 kB / 492.3 MB, free: 8.883 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 3.731e-05/0.09611, allocations: 49.55 kB / 492.3 MB, free: 8.828 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001438/0.09626, allocations: 92.09 kB / 492.4 MB, free: 8.738 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.028e-06/0.09627, allocations: 4 kB / 492.4 MB, free: 8.734 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.302e-06/0.09628, allocations: 0 / 492.4 MB, free: 8.734 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.316e-06/0.09628, allocations: 0 / 492.4 MB, free: 8.734 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.0003239/0.09661, allocations: 355.5 kB / 492.8 MB, free: 8.336 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.084e-05/0.09665, allocations: 15.97 kB / 492.8 MB, free: 8.32 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.611e-05/0.09668, allocations: 4.844 kB / 492.8 MB, free: 8.316 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.399e-05/0.09678, allocations: 172.3 kB / 493 MB, free: 8.109 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.081e-05/0.0968, allocations: 384 / 493 MB, free: 8.109 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.836e-05/0.09682, allocations: 8.281 kB / 493 MB, free: 8.102 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001025/0.09693, allocations: 54.19 kB / 493 MB, free: 8.043 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.132e-05/0.09695, allocations: 4.172 kB / 493 MB, free: 8.039 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.488e-06/0.09696, allocations: 7.938 kB / 493 MB, free: 8.031 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.027e-06/0.09698, allocations: 4 kB / 493 MB, free: 8.027 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.038e-05/0.09704, allocations: 27.98 kB / 493.1 MB, free: 8 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001448/0.09719, allocations: 165.7 kB / 493.2 MB, free: 7.789 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001788/0.09738, allocations: 66.56 kB / 493.3 MB, free: 7.715 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.562e-05/0.09744, allocations: 28.84 kB / 493.3 MB, free: 7.684 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002328/0.09768, allocations: 113.1 kB / 493.4 MB, free: 7.555 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.141e-05/0.09771, allocations: 30.56 kB / 493.5 MB, free: 7.516 MB / 378.7 MB Notification: Performance of pre-optimization done (n=9): time 1.122e-06/0.09771, allocations: 0 / 493.5 MB, free: 7.516 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.0373/0.135, allocations: 2.815 MB / 496.3 MB, free: 4.648 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.244e-05/0.1351, allocations: 59.39 kB / 496.3 MB, free: 4.578 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.07e-05/0.1352, allocations: 105.8 kB / 496.4 MB, free: 4.465 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.637e-05/0.1352, allocations: 25.7 kB / 496.5 MB, free: 4.434 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.304e-05/0.1352, allocations: 88.14 kB / 496.5 MB, free: 4.344 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.871e-05/0.1353, allocations: 70.98 kB / 496.6 MB, free: 4.273 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.24e-05/0.1353, allocations: 0 / 496.6 MB, free: 4.273 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.614e-05/0.1354, allocations: 322.8 kB / 496.9 MB, free: 3.949 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003756/0.1358, allocations: 191.9 kB / 497.1 MB, free: 3.762 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003596/0.1362, allocations: 195.2 kB / 497.3 MB, free: 3.574 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009733/0.1372, allocations: 440.6 kB / 497.7 MB, free: 3.141 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.513e-06/0.1372, allocations: 0 / 497.7 MB, free: 3.141 MB / 378.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0009995/0.1382, allocations: 0.4892 MB / 498.2 MB, free: 2.648 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.67e-05/0.1382, allocations: 4 kB / 498.2 MB, free: 2.645 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.23e-06/0.1382, allocations: 0 / 498.2 MB, free: 2.645 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.598e-05/0.1382, allocations: 0 / 498.2 MB, free: 2.645 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003815/0.1386, allocations: 83.88 kB / 498.3 MB, free: 2.562 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.531e-06/0.1386, allocations: 0 / 498.3 MB, free: 2.562 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002151/0.1389, allocations: 27.97 kB / 498.3 MB, free: 2.535 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.931e-05/0.1389, allocations: 19.98 kB / 498.4 MB, free: 2.516 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.0001056/0.139, allocations: 122.2 kB / 498.5 MB, free: 2.387 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.105e-05/0.1391, allocations: 7.906 kB / 498.5 MB, free: 2.379 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001263/0.1403, allocations: 0.5719 MB / 499.1 MB, free: 1.801 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.437e-06/0.1403, allocations: 0 / 499.1 MB, free: 1.801 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.847e-06/0.1404, allocations: 0 / 499.1 MB, free: 1.801 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.296e-06/0.1404, allocations: 3.938 kB / 499.1 MB, free: 1.797 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00206/0.1424, allocations: 0.9554 MB / 0.4883 GB, free: 0.7617 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.146e-06/0.1425, allocations: 4.188 kB / 0.4883 GB, free: 0.7578 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003343/0.1428, allocations: 80.12 kB / 0.4884 GB, free: 0.6797 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.479e-06/0.1428, allocations: 0 / 0.4884 GB, free: 0.6797 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.25e-05/0.1428, allocations: 16 kB / 0.4884 GB, free: 0.6641 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.14e-06/0.1429, allocations: 11.92 kB / 0.4884 GB, free: 0.6523 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.924e-06/0.1429, allocations: 0 / 0.4884 GB, free: 0.6523 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008768/0.1437, allocations: 0.4924 MB / 0.4889 GB, free: 128 kB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.909e-05/0.1438, allocations: 85.02 kB / 0.489 GB, free: 24 kB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.232e-05/0.1438, allocations: 0 / 0.489 GB, free: 24 kB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.1643/0.3081, allocations: 25.98 kB / 0.489 GB, free: 42.82 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.836e-05/0.3082, allocations: 15.61 kB / 0.489 GB, free: 42.82 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.264e-05/0.3083, allocations: 20.02 kB / 0.489 GB, free: 42.82 MB / 378.7 MB Notification: Performance of sorting global known variables: time 4.097e-05/0.3083, allocations: 82.05 kB / 0.4891 GB, free: 42.75 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3083, allocations: 0 / 0.4891 GB, free: 42.75 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0008535/0.3092, allocations: 313.1 kB / 0.4894 GB, free: 42.75 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.001309/0.3105, allocations: 251.2 kB / 0.4896 GB, free: 42.64 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.000832/0.3113, allocations: 369.1 kB / 0.49 GB, free: 42.64 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.035e-06/0.3114, allocations: 0 / 0.49 GB, free: 42.64 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003494/0.3117, allocations: 167.5 kB / 0.4902 GB, free: 42.64 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002607/0.312, allocations: 11.97 kB / 0.4902 GB, free: 42.64 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001227/0.3132, allocations: 486.2 kB / 0.4906 GB, free: 42.46 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001021/0.3133, allocations: 0.6984 MB / 0.4913 GB, free: 41.76 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0003658/0.3137, allocations: 90.73 kB / 0.4914 GB, free: 41.75 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001757/0.3139, allocations: 52.86 kB / 0.4914 GB, free: 41.75 MB / 378.7 MB Notification: Performance of SimCode: time 7.01e-07/0.3139, allocations: 3.562 kB / 0.4915 GB, free: 41.75 MB / 378.7 MB Notification: Performance of Templates: time 0.0205/0.3344, allocations: 17.56 MB / 0.5086 GB, free: 40.55 MB / 378.7 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.sim & ./ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestUtilities/TestRegSquare2Derivatives/TestRegSquare2Derivatives.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches