Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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: "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestUtilities_TestRegSquare2Derivatives",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestUtilities_TestRegSquare2Derivatives",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005616/0.005616, allocations: 101.1 kB / 15.87 MB, free: 6.309 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.001334/0.001334, allocations: 190.8 kB / 16.79 MB, free: 6.238 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.189/1.189, allocations: 205.1 MB / 222.6 MB, free: 4.699 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2667/0.2667, allocations: 43.5 MB / 313.5 MB, free: 8.32 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001223/0.001223, allocations: 63.91 kB / 382.1 MB, free: 8.398 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07799/0.07923, allocations: 57.77 MB / 439.9 MB, free: 14.52 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives): time 0.001344/0.08061, allocations: 0.6164 MB / 440.5 MB, free: 13.9 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005543/0.08117, allocations: 394.1 kB / 440.9 MB, free: 13.52 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.34e-05/0.0812, allocations: 0 / 440.9 MB, free: 13.52 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.404e-05/0.08122, allocations: 3.938 kB / 440.9 MB, free: 13.51 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 2.453e-05/0.08125, allocations: 7.938 kB / 440.9 MB, free: 13.5 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002502/0.08151, allocations: 75.8 kB / 441 MB, free: 13.43 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 3.907e-05/0.08156, allocations: 23.97 kB / 441 MB, free: 13.41 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.334e-05/0.08159, allocations: 0 / 441 MB, free: 13.41 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.689e-05/0.08162, allocations: 15.94 kB / 441 MB, free: 13.39 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.077e-05/0.08166, allocations: 15.92 kB / 441 MB, free: 13.38 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.026e-05/0.08168, allocations: 0 / 441 MB, free: 13.38 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001715/0.08185, allocations: 119.9 kB / 441.2 MB, free: 13.26 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.432e-05/0.08188, allocations: 11.92 kB / 441.2 MB, free: 13.25 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.032e-05/0.0819, allocations: 11.94 kB / 441.2 MB, free: 13.23 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001344/0.08204, allocations: 104 kB / 441.3 MB, free: 13.13 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.076e-06/0.08205, allocations: 0 / 441.3 MB, free: 13.13 MB / 382.1 MB Notification: Performance of FrontEnd: time 6.41e-07/0.08206, allocations: 0 / 441.3 MB, free: 13.13 MB / 382.1 MB Notification: Performance of Transformations before backend: time 3.055e-06/0.08206, allocations: 0 / 441.3 MB, free: 13.13 MB / 382.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.0003173/0.08238, allocations: 363.5 kB / 441.6 MB, free: 12.73 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.986e-05/0.08242, allocations: 8.031 kB / 441.7 MB, free: 12.72 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.806e-05/0.08245, allocations: 38.75 kB / 441.7 MB, free: 12.67 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.096e-05/0.08248, allocations: 4.875 kB / 441.7 MB, free: 12.67 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.569e-05/0.08257, allocations: 176.2 kB / 441.9 MB, free: 12.46 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.031e-06/0.08258, allocations: 384 / 441.9 MB, free: 12.46 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.975e-05/0.0826, allocations: 8.359 kB / 441.9 MB, free: 12.45 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.371e-05/0.0827, allocations: 50.25 kB / 441.9 MB, free: 12.39 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.137e-06/0.08272, allocations: 3.938 kB / 441.9 MB, free: 12.39 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.236e-06/0.08273, allocations: 8 kB / 441.9 MB, free: 12.38 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.401e-06/0.08274, allocations: 4 kB / 441.9 MB, free: 12.38 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.706e-05/0.0828, allocations: 31.91 kB / 442 MB, free: 12.35 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000128/0.08294, allocations: 161.7 kB / 442.1 MB, free: 12.14 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001692/0.08311, allocations: 58.55 kB / 442.2 MB, free: 12.07 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.012e-05/0.08316, allocations: 25.14 kB / 442.2 MB, free: 12.05 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002167/0.08338, allocations: 113 kB / 442.3 MB, free: 11.92 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.506e-05/0.08341, allocations: 30.56 kB / 442.4 MB, free: 11.88 MB / 382.1 MB Notification: Performance of pre-optimization done (n=9): time 1.022e-06/0.08341, allocations: 0 / 442.4 MB, free: 11.88 MB / 382.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.04091/0.1243, allocations: 2.582 MB / 444.9 MB, free: 9.258 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.556e-05/0.1244, allocations: 55.41 kB / 445 MB, free: 9.191 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.113e-05/0.1245, allocations: 101.8 kB / 445.1 MB, free: 9.082 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.194e-05/0.1245, allocations: 29.7 kB / 445.1 MB, free: 9.047 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.573e-05/0.1246, allocations: 88.14 kB / 445.2 MB, free: 8.957 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.028e-05/0.1247, allocations: 59.09 kB / 445.3 MB, free: 8.898 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001555/0.1248, allocations: 61.69 kB / 445.3 MB, free: 8.832 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001137/0.125, allocations: 314.8 kB / 445.6 MB, free: 8.516 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005211/0.1255, allocations: 175.9 kB / 445.8 MB, free: 8.344 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005217/0.126, allocations: 179.9 kB / 446 MB, free: 8.168 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001443/0.1275, allocations: 412.3 kB / 446.4 MB, free: 7.766 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.313e-06/0.1275, allocations: 480 / 446.4 MB, free: 7.766 MB / 382.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001462/0.1289, allocations: 465.3 kB / 446.8 MB, free: 7.305 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.004e-05/0.129, allocations: 7.281 kB / 446.8 MB, free: 7.301 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.297e-06/0.129, allocations: 3.984 kB / 446.8 MB, free: 7.297 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.435e-05/0.129, allocations: 3.984 kB / 446.8 MB, free: 7.293 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005004/0.1295, allocations: 67.89 kB / 446.9 MB, free: 7.227 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.846e-06/0.1296, allocations: 7.984 kB / 446.9 MB, free: 7.219 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002464/0.1298, allocations: 19.98 kB / 446.9 MB, free: 7.199 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.369e-05/0.1299, allocations: 15.98 kB / 447 MB, free: 7.184 MB / 382.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.0001173/0.13, allocations: 125.7 kB / 447.1 MB, free: 7.051 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.973e-05/0.13, allocations: 11.84 kB / 447.1 MB, free: 7.039 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001176/0.1312, allocations: 0.5407 MB / 447.6 MB, free: 6.492 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.041e-06/0.1312, allocations: 4.25 kB / 447.6 MB, free: 6.488 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/0.1312, allocations: 3.938 kB / 447.6 MB, free: 6.484 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.338e-06/0.1312, allocations: 4 kB / 447.6 MB, free: 6.48 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001887/0.1331, allocations: 0.893 MB / 448.5 MB, free: 5.512 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.515e-06/0.1331, allocations: 0 / 448.5 MB, free: 5.512 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002686/0.1334, allocations: 67.94 kB / 448.6 MB, free: 5.445 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.418e-06/0.1334, allocations: 0 / 448.6 MB, free: 5.445 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.022e-05/0.1335, allocations: 24.11 kB / 448.6 MB, free: 5.422 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.857e-06/0.1335, allocations: 8 kB / 448.6 MB, free: 5.414 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.1335, allocations: 0 / 448.6 MB, free: 5.414 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008081/0.1343, allocations: 467.7 kB / 449.1 MB, free: 4.926 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.277e-05/0.1343, allocations: 85.02 kB / 449.2 MB, free: 4.824 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.441e-05/0.1344, allocations: 4 kB / 449.2 MB, free: 4.82 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001932/0.1346, allocations: 23.97 kB / 449.2 MB, free: 4.797 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.41e-05/0.1346, allocations: 15.98 kB / 449.2 MB, free: 4.781 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.921e-05/0.1346, allocations: 12 kB / 449.2 MB, free: 4.77 MB / 382.1 MB Notification: Performance of sorting global known variables: time 3.224e-05/0.1347, allocations: 83.27 kB / 449.3 MB, free: 4.688 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1347, allocations: 0 / 449.3 MB, free: 4.688 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007572/0.1354, allocations: 319.9 kB / 449.6 MB, free: 4.375 MB / 382.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.00217/0.1376, allocations: 1.123 MB / 450.7 MB, free: 3.207 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0006917/0.1383, allocations: 339.7 kB / 451.1 MB, free: 2.875 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.1383, allocations: 0 / 451.1 MB, free: 2.875 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003049/0.1386, allocations: 143.8 kB / 451.2 MB, free: 2.734 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002531/0.1389, allocations: 15.94 kB / 451.2 MB, free: 2.719 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001493/0.1404, allocations: 0.5176 MB / 451.8 MB, free: 2.141 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001799/0.1406, allocations: 0.6968 MB / 452.4 MB, free: 1.414 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003324/0.1409, allocations: 92.88 kB / 452.5 MB, free: 1.324 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001846/0.1411, allocations: 59.39 kB / 452.6 MB, free: 1.266 MB / 382.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1411, allocations: 4 kB / 452.6 MB, free: 1.262 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.584/2.725, allocations: 18.62 MB / 471.2 MB, free: 46.58 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001455/2.726, allocations: 211.8 kB / 471.4 MB, free: 46.33 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.737/4.462, allocations: 4 kB / 471.4 MB, free: 46.32 MB / 382.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Fluid_TestUtilities_TestRegSquare2Derivatives_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Fluid_TestUtilities_TestRegSquare2Derivatives.fmu > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives_res.mat","/var/lib/jenkins1/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