Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestUtilities_TestRegSquare2Derivatives",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestUtilities_TestRegSquare2Derivatives",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001244/0.001245, allocations: 108.5 kB / 17.21 MB, free: 6.27 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001235/0.001235, allocations: 213.7 kB / 18.14 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.327/1.327, allocations: 227.4 MB / 246.3 MB, free: 10.75 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2166/0.2166, allocations: 46.1 MB / 343.6 MB, free: 11.82 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002283/0.002283, allocations: 76.56 kB / 416.9 MB, free: 20.12 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1224/0.1247, allocations: 62.45 MB / 479.4 MB, free: 5.652 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives): time 0.001707/0.1264, allocations: 0.5864 MB / 480 MB, free: 5.062 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006902/0.1272, allocations: 390.7 kB / 480.4 MB, free: 4.68 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.659e-05/0.1272, allocations: 4 kB / 480.4 MB, free: 4.676 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.758e-05/0.1272, allocations: 3.938 kB / 480.4 MB, free: 4.672 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 2.775e-05/0.1273, allocations: 3.938 kB / 480.4 MB, free: 4.668 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003127/0.1276, allocations: 75.8 kB / 480.4 MB, free: 4.594 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.722e-05/0.1276, allocations: 27.92 kB / 480.5 MB, free: 4.566 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.976e-05/0.1277, allocations: 4 kB / 480.5 MB, free: 4.562 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.228e-05/0.1277, allocations: 11.92 kB / 480.5 MB, free: 4.551 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.6e-05/0.1278, allocations: 15.92 kB / 480.5 MB, free: 4.535 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.284e-05/0.1278, allocations: 4 kB / 480.5 MB, free: 4.531 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001995/0.128, allocations: 115.9 kB / 480.6 MB, free: 4.418 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.797e-05/0.128, allocations: 11.98 kB / 480.6 MB, free: 4.406 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.823e-05/0.1281, allocations: 15.86 kB / 480.6 MB, free: 4.391 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001611/0.1282, allocations: 87.81 kB / 480.7 MB, free: 4.305 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.715e-06/0.1282, allocations: 0 / 480.7 MB, free: 4.305 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.1282, allocations: 4 kB / 480.7 MB, free: 4.301 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.486e-06/0.1282, allocations: 0 / 480.7 MB, free: 4.301 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.000386/0.1286, allocations: 367.7 kB / 481.1 MB, free: 3.891 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.9e-05/0.1287, allocations: 8.875 kB / 481.1 MB, free: 3.883 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.872e-05/0.1287, allocations: 34.75 kB / 481.1 MB, free: 3.84 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.411e-05/0.1287, allocations: 4.844 kB / 481.1 MB, free: 3.836 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001037/0.1289, allocations: 180.2 kB / 481.3 MB, free: 3.621 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.083e-05/0.1289, allocations: 4.359 kB / 481.3 MB, free: 3.617 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.012e-05/0.1289, allocations: 4.375 kB / 481.3 MB, free: 3.613 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001127/0.129, allocations: 58.23 kB / 481.4 MB, free: 3.551 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.116e-05/0.129, allocations: 3.938 kB / 481.4 MB, free: 3.547 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.487e-06/0.1291, allocations: 4 kB / 481.4 MB, free: 3.543 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.939e-06/0.1291, allocations: 7.938 kB / 481.4 MB, free: 3.535 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.602e-05/0.1291, allocations: 31.92 kB / 481.4 MB, free: 3.504 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001561/0.1293, allocations: 169.6 kB / 481.6 MB, free: 3.289 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001904/0.1295, allocations: 58.55 kB / 481.6 MB, free: 3.223 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.467e-05/0.1296, allocations: 24.86 kB / 481.7 MB, free: 3.195 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002614/0.1298, allocations: 109.3 kB / 481.8 MB, free: 3.07 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.015e-05/0.1299, allocations: 34.5 kB / 481.8 MB, free: 3.027 MB / 350.1 MB Notification: Performance of pre-optimization done (n=9): time 1.243e-06/0.1299, allocations: 4 kB / 481.8 MB, free: 3.023 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.04499/0.1749, allocations: 2.579 MB / 484.4 MB, free: 424 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.014e-05/0.1749, allocations: 55.41 kB / 484.4 MB, free: 356 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.536e-05/0.175, allocations: 105.8 kB / 484.6 MB, free: 240 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.661e-05/0.1751, allocations: 29.7 kB / 484.6 MB, free: 204 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.68e-05/0.1751, allocations: 84.14 kB / 484.7 MB, free: 116 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.203e-05/0.1752, allocations: 59.11 kB / 484.7 MB, free: 56 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001378/0.1753, allocations: 57.67 kB / 484.8 MB, free: 15.99 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001041/0.1755, allocations: 318.8 kB / 485.1 MB, free: 15.67 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003802/0.1758, allocations: 179.9 kB / 485.3 MB, free: 15.5 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003688/0.1762, allocations: 179.8 kB / 485.4 MB, free: 15.32 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009897/0.1772, allocations: 411.1 kB / 485.8 MB, free: 14.92 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.353e-06/0.1772, allocations: 480 / 485.8 MB, free: 14.92 MB / 366.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001052/0.1783, allocations: 465.3 kB / 486.3 MB, free: 14.46 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.739e-05/0.1783, allocations: 4 kB / 486.3 MB, free: 14.45 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.302e-06/0.1783, allocations: 0 / 486.3 MB, free: 14.45 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.552e-05/0.1784, allocations: 4 kB / 486.3 MB, free: 14.45 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003757/0.1787, allocations: 71.88 kB / 486.4 MB, free: 14.38 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.085e-06/0.1788, allocations: 4 kB / 486.4 MB, free: 14.38 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002282/0.179, allocations: 19.97 kB / 486.4 MB, free: 14.36 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.792e-05/0.179, allocations: 15.98 kB / 486.4 MB, free: 14.34 MB / 366.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.0001315/0.1792, allocations: 125.7 kB / 486.5 MB, free: 14.21 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.314e-05/0.1792, allocations: 8.156 kB / 486.5 MB, free: 14.2 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001281/0.1805, allocations: 0.543 MB / 487.1 MB, free: 13.65 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.557e-06/0.1805, allocations: 0 / 487.1 MB, free: 13.65 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.993e-06/0.1805, allocations: 3.984 kB / 487.1 MB, free: 13.65 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.998e-06/0.1805, allocations: 0 / 487.1 MB, free: 13.65 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002119/0.1827, allocations: 0.8853 MB / 488 MB, free: 12.7 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.665e-06/0.1827, allocations: 0 / 488 MB, free: 12.7 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002867/0.183, allocations: 72.12 kB / 488 MB, free: 12.62 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.691e-06/0.183, allocations: 4 kB / 488.1 MB, free: 12.62 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.774e-05/0.183, allocations: 8 kB / 488.1 MB, free: 12.61 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.271e-06/0.183, allocations: 7.938 kB / 488.1 MB, free: 12.61 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.183, allocations: 0 / 488.1 MB, free: 12.61 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008873/0.1839, allocations: 468.2 kB / 488.5 MB, free: 12.11 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.55e-05/0.184, allocations: 89 kB / 488.6 MB, free: 12.01 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.938e-05/0.184, allocations: 8 kB / 488.6 MB, free: 12 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002137/0.1843, allocations: 15.98 kB / 488.6 MB, free: 11.98 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.43e-05/0.1843, allocations: 11.98 kB / 488.6 MB, free: 11.97 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.797e-05/0.1843, allocations: 23.98 kB / 488.7 MB, free: 11.95 MB / 366.1 MB Notification: Performance of sorting global known variables: time 3.636e-05/0.1844, allocations: 87.2 kB / 488.8 MB, free: 11.86 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1844, allocations: 0 / 488.8 MB, free: 11.86 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008693/0.1852, allocations: 315.9 kB / 489.1 MB, free: 11.55 MB / 366.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.002539/0.1878, allocations: 1.118 MB / 490.2 MB, free: 10.39 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0007703/0.1886, allocations: 343.7 kB / 490.5 MB, free: 10.06 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.1886, allocations: 0 / 490.5 MB, free: 10.06 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003327/0.1889, allocations: 148.2 kB / 490.7 MB, free: 9.914 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002731/0.1892, allocations: 14.66 kB / 490.7 MB, free: 9.902 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001756/0.191, allocations: 0.5211 MB / 491.2 MB, free: 9.316 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000236/0.1912, allocations: 0.7045 MB / 491.9 MB, free: 8.582 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003667/0.1916, allocations: 93.06 kB / 492 MB, free: 8.492 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000204/0.1918, allocations: 59.34 kB / 492 MB, free: 8.434 MB / 366.1 MB Notification: Performance of SimCode: time 3.3e-07/0.1918, allocations: 0 / 492 MB, free: 8.434 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03082/0.2226, allocations: 18.63 MB / 0.4987 GB, free: 5.934 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000222/0.2229, allocations: 217.5 kB / 0.4989 GB, free: 5.68 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.847/2.07, allocations: 3.625 kB / 0.4989 GB, free: 5.68 MB / 382.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestUtilities_TestRegSquare2Derivatives_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_TestUtilities_TestRegSquare2Derivatives.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches