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.001026/0.001026, allocations: 110.1 kB / 17.86 MB, free: 5.504 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.00101/0.00101, allocations: 201.9 kB / 18.78 MB, free: 4.586 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.338/1.338, allocations: 222.9 MB / 242.5 MB, free: 13.64 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.202/0.202, allocations: 44.18 MB / 336.8 MB, free: 2.738 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001236/0.001236, allocations: 56.16 kB / 408.3 MB, free: 27.67 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1045/0.1057, allocations: 60.83 MB / 469.2 MB, free: 14.81 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives): time 0.001718/0.1075, allocations: 0.6024 MB / 469.8 MB, free: 14.2 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006996/0.1082, allocations: 389.3 kB / 470.2 MB, free: 13.82 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.708e-05/0.1082, allocations: 0 / 470.2 MB, free: 13.82 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.904e-05/0.1083, allocations: 3.938 kB / 470.2 MB, free: 13.82 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 2.952e-05/0.1083, allocations: 4 kB / 470.2 MB, free: 13.82 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000318/0.1086, allocations: 79.8 kB / 470.2 MB, free: 13.74 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.194e-05/0.1087, allocations: 23.92 kB / 470.3 MB, free: 13.71 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.358e-05/0.1087, allocations: 0 / 470.3 MB, free: 13.71 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.203e-05/0.1088, allocations: 15.98 kB / 470.3 MB, free: 13.7 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.123e-05/0.1088, allocations: 19.84 kB / 470.3 MB, free: 13.68 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.45e-05/0.1089, allocations: 4 kB / 470.3 MB, free: 13.68 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000217/0.1091, allocations: 111.9 kB / 470.4 MB, free: 13.57 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.795e-05/0.1091, allocations: 8 kB / 470.4 MB, free: 13.56 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.722e-05/0.1091, allocations: 19.86 kB / 470.4 MB, free: 13.54 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001261/0.1093, allocations: 63.91 kB / 470.5 MB, free: 13.48 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.1093, allocations: 0 / 470.5 MB, free: 13.48 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.1093, allocations: 0 / 470.5 MB, free: 13.48 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.938e-06/0.1093, allocations: 0 / 470.5 MB, free: 13.48 MB / 350.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.0004078/0.1097, allocations: 367.7 kB / 470.9 MB, free: 13.07 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.689e-05/0.1097, allocations: 8.031 kB / 470.9 MB, free: 13.06 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.614e-05/0.1098, allocations: 8.844 kB / 470.9 MB, free: 13.05 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001083/0.1099, allocations: 168.3 kB / 471 MB, free: 12.85 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.364e-05/0.1099, allocations: 4.375 kB / 471 MB, free: 12.84 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.403e-05/0.1099, allocations: 8.375 kB / 471.1 MB, free: 12.84 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001237/0.1101, allocations: 58.17 kB / 471.1 MB, free: 12.77 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.65e-05/0.1101, allocations: 192 / 471.1 MB, free: 12.77 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.367e-05/0.1101, allocations: 11.88 kB / 471.1 MB, free: 12.76 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.508e-06/0.1101, allocations: 0 / 471.1 MB, free: 12.76 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.403e-05/0.1102, allocations: 27.97 kB / 471.2 MB, free: 12.73 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001692/0.1104, allocations: 169.6 kB / 471.3 MB, free: 12.52 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002058/0.1106, allocations: 58.83 kB / 471.4 MB, free: 12.45 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.803e-05/0.1106, allocations: 28.8 kB / 471.4 MB, free: 12.42 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002577/0.1109, allocations: 105.1 kB / 471.5 MB, free: 12.3 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.146e-05/0.1109, allocations: 34.56 kB / 471.5 MB, free: 12.26 MB / 350.1 MB Notification: Performance of pre-optimization done (n=9): time 1.333e-06/0.1109, allocations: 0 / 471.5 MB, free: 12.26 MB / 350.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.04121/0.1522, allocations: 2.572 MB / 474.1 MB, free: 9.645 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.535e-05/0.1522, allocations: 55.41 kB / 474.2 MB, free: 9.578 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.625e-05/0.1523, allocations: 109.8 kB / 474.3 MB, free: 9.461 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.924e-05/0.1524, allocations: 29.7 kB / 474.3 MB, free: 9.426 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.375e-05/0.1524, allocations: 80.14 kB / 474.4 MB, free: 9.344 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.585e-05/0.1525, allocations: 67.08 kB / 474.4 MB, free: 9.277 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001165/0.1526, allocations: 57.69 kB / 474.5 MB, free: 9.215 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.944e-05/0.1527, allocations: 322.8 kB / 474.8 MB, free: 8.891 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003598/0.1531, allocations: 171.9 kB / 475 MB, free: 8.723 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003542/0.1535, allocations: 182.6 kB / 475.2 MB, free: 8.547 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009401/0.1544, allocations: 412.7 kB / 475.6 MB, free: 8.141 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.052e-06/0.1544, allocations: 3.938 kB / 475.6 MB, free: 8.137 MB / 350.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0009863/0.1554, allocations: 459.9 kB / 476 MB, free: 7.684 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.891e-05/0.1554, allocations: 4 kB / 476 MB, free: 7.68 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.694e-06/0.1555, allocations: 8 kB / 476 MB, free: 7.672 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.791e-05/0.1555, allocations: 3.984 kB / 476 MB, free: 7.668 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003766/0.1559, allocations: 67.95 kB / 476.1 MB, free: 7.602 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.051e-05/0.1559, allocations: 3.984 kB / 476.1 MB, free: 7.598 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002149/0.1561, allocations: 15.92 kB / 476.1 MB, free: 7.582 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.624e-05/0.1561, allocations: 19.98 kB / 476.1 MB, free: 7.562 MB / 350.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.0001239/0.1563, allocations: 117.8 kB / 476.3 MB, free: 7.438 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.467e-05/0.1563, allocations: 11.91 kB / 476.3 MB, free: 7.426 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001243/0.1576, allocations: 0.5445 MB / 476.8 MB, free: 6.879 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.098e-06/0.1576, allocations: 0 / 476.8 MB, free: 6.879 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.574e-06/0.1576, allocations: 4 kB / 476.8 MB, free: 6.875 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.226e-06/0.1576, allocations: 0 / 476.8 MB, free: 6.875 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002043/0.1597, allocations: 0.8891 MB / 477.7 MB, free: 5.914 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.859e-06/0.1597, allocations: 4 kB / 477.7 MB, free: 5.91 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002834/0.16, allocations: 72.06 kB / 477.8 MB, free: 5.84 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.412e-06/0.16, allocations: 4 kB / 477.8 MB, free: 5.836 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.32e-05/0.16, allocations: 19.98 kB / 477.8 MB, free: 5.816 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.687e-06/0.16, allocations: 256 / 477.8 MB, free: 5.816 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.487e-06/0.16, allocations: 4 kB / 477.8 MB, free: 5.812 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008936/0.1609, allocations: 474.9 kB / 478.3 MB, free: 5.316 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.764e-05/0.161, allocations: 85.02 kB / 478.4 MB, free: 5.215 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.957e-05/0.161, allocations: 8.469 kB / 478.4 MB, free: 5.207 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002158/0.1613, allocations: 19.97 kB / 478.4 MB, free: 5.188 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.478e-05/0.1613, allocations: 11.98 kB / 478.4 MB, free: 5.176 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.815e-05/0.1613, allocations: 16 kB / 478.4 MB, free: 5.16 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.728e-05/0.1614, allocations: 87.27 kB / 478.5 MB, free: 5.074 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.1614, allocations: 7.938 kB / 478.5 MB, free: 5.066 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008869/0.1623, allocations: 308 kB / 478.8 MB, free: 4.766 MB / 350.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.001438/0.1637, allocations: 239.5 kB / 479 MB, free: 4.52 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008092/0.1645, allocations: 335.7 kB / 479.4 MB, free: 4.191 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.936e-06/0.1645, allocations: 0 / 479.4 MB, free: 4.191 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003455/0.1649, allocations: 151.8 kB / 479.5 MB, free: 4.043 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002842/0.1652, allocations: 15 kB / 479.5 MB, free: 4.031 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001305/0.1665, allocations: 474.1 kB / 480 MB, free: 3.516 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002299/0.1667, allocations: 0.6968 MB / 480.7 MB, free: 2.789 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001936/0.1669, allocations: 47.41 kB / 480.7 MB, free: 2.742 MB / 350.1 MB Notification: Performance of SimCode: time 3.4e-07/0.1669, allocations: 0 / 480.7 MB, free: 2.742 MB / 350.1 MB Notification: Performance of Templates: time 0.0104/0.1774, allocations: 6.53 MB / 487.3 MB, free: 12.27 MB / 366.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