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.001653/0.001653, allocations: 114 kB / 17.33 MB, free: 6.016 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002112/0.002112, allocations: 213.8 kB / 18.27 MB, free: 5.098 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.404/1.404, allocations: 227.4 MB / 246.4 MB, free: 10.78 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2109/0.2109, allocations: 46.1 MB / 343.8 MB, free: 11.75 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001431/0.001431, allocations: 72.05 kB / 417.1 MB, free: 19.98 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.112/0.1134, allocations: 62.45 MB / 479.6 MB, free: 5.516 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives): time 0.002317/0.1158, allocations: 0.598 MB / 480.2 MB, free: 4.914 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007168/0.1165, allocations: 366.8 kB / 480.5 MB, free: 4.555 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.152e-05/0.1166, allocations: 0 / 480.5 MB, free: 4.555 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.884e-05/0.1166, allocations: 0 / 480.5 MB, free: 4.555 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 3.728e-05/0.1167, allocations: 3.938 kB / 480.6 MB, free: 4.551 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004918/0.1172, allocations: 95.78 kB / 480.6 MB, free: 4.457 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.784e-05/0.1172, allocations: 23.98 kB / 480.7 MB, free: 4.434 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.694e-05/0.1173, allocations: 4 kB / 480.7 MB, free: 4.43 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.785e-05/0.1173, allocations: 15.92 kB / 480.7 MB, free: 4.414 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.691e-05/0.1174, allocations: 15.92 kB / 480.7 MB, free: 4.398 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.533e-05/0.1174, allocations: 4 kB / 480.7 MB, free: 4.395 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002273/0.1176, allocations: 119.8 kB / 480.8 MB, free: 4.277 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.12e-05/0.1177, allocations: 4 kB / 480.8 MB, free: 4.273 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.909e-05/0.1177, allocations: 19.88 kB / 480.8 MB, free: 4.254 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001917/0.1179, allocations: 96.02 kB / 480.9 MB, free: 4.16 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.101e-06/0.1179, allocations: 0 / 480.9 MB, free: 4.16 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.174e-06/0.1179, allocations: 0 / 480.9 MB, free: 4.16 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.583e-06/0.1179, allocations: 8 kB / 481 MB, free: 4.152 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.0004401/0.1184, allocations: 355.5 kB / 481.3 MB, free: 3.754 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.695e-05/0.1184, allocations: 12.03 kB / 481.3 MB, free: 3.742 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.79e-05/0.1185, allocations: 38.73 kB / 481.3 MB, free: 3.695 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.202e-05/0.1185, allocations: 12.78 kB / 481.4 MB, free: 3.684 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001175/0.1186, allocations: 164.3 kB / 481.5 MB, free: 3.484 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.376e-05/0.1187, allocations: 4.375 kB / 481.5 MB, free: 3.48 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.526e-05/0.1187, allocations: 4.375 kB / 481.5 MB, free: 3.477 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001319/0.1188, allocations: 62.17 kB / 481.6 MB, free: 3.41 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.283e-05/0.1189, allocations: 7.938 kB / 481.6 MB, free: 3.402 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.638e-06/0.1189, allocations: 0 / 481.6 MB, free: 3.402 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.618e-06/0.1189, allocations: 0 / 481.6 MB, free: 3.402 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.001e-05/0.119, allocations: 27.92 kB / 481.6 MB, free: 3.375 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001783/0.1191, allocations: 173.6 kB / 481.8 MB, free: 3.156 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002144/0.1194, allocations: 50.56 kB / 481.8 MB, free: 3.098 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.596e-05/0.1194, allocations: 33.12 kB / 481.9 MB, free: 3.062 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002683/0.1197, allocations: 109 kB / 482 MB, free: 2.938 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.45e-05/0.1197, allocations: 38.55 kB / 482 MB, free: 2.891 MB / 350.1 MB Notification: Performance of pre-optimization done (n=9): time 1.233e-06/0.1198, allocations: 0 / 482 MB, free: 2.891 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.04101/0.1608, allocations: 2.573 MB / 484.6 MB, free: 292 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.914e-05/0.1609, allocations: 59.41 kB / 484.7 MB, free: 220 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.949e-05/0.1609, allocations: 97.86 kB / 484.7 MB, free: 112 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.859e-05/0.161, allocations: 37.7 kB / 484.8 MB, free: 68 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.881e-05/0.161, allocations: 84.12 kB / 484.9 MB, free: 15.98 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.825e-05/0.1611, allocations: 63.09 kB / 484.9 MB, free: 15.92 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001274/0.1613, allocations: 57.69 kB / 485 MB, free: 15.86 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001017/0.1614, allocations: 326.8 kB / 485.3 MB, free: 15.53 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003843/0.1618, allocations: 163.9 kB / 485.5 MB, free: 15.37 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003753/0.1622, allocations: 179.9 kB / 485.6 MB, free: 15.19 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001141/0.1633, allocations: 414.8 kB / 486 MB, free: 14.79 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.1633, allocations: 4 kB / 486 MB, free: 14.78 MB / 366.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001059/0.1644, allocations: 464 kB / 486.5 MB, free: 14.32 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.471e-05/0.1644, allocations: 6.344 kB / 486.5 MB, free: 14.32 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.688e-06/0.1644, allocations: 0 / 486.5 MB, free: 14.32 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.333e-05/0.1645, allocations: 4 kB / 486.5 MB, free: 14.32 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004106/0.1649, allocations: 75.94 kB / 486.6 MB, free: 14.24 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.14e-05/0.1649, allocations: 0 / 486.6 MB, free: 14.24 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002223/0.1651, allocations: 15.92 kB / 486.6 MB, free: 14.23 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.4e-05/0.1652, allocations: 19.98 kB / 486.6 MB, free: 14.21 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.0001405/0.1653, allocations: 121.7 kB / 486.7 MB, free: 14.08 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.924e-05/0.1654, allocations: 11.89 kB / 486.8 MB, free: 14.07 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001391/0.1668, allocations: 0.5446 MB / 487.3 MB, free: 13.52 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.763e-06/0.1668, allocations: 0 / 487.3 MB, free: 13.52 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.559e-06/0.1668, allocations: 3.938 kB / 487.3 MB, free: 13.51 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.383e-06/0.1668, allocations: 7.984 kB / 487.3 MB, free: 13.5 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002262/0.1691, allocations: 0.8737 MB / 488.2 MB, free: 12.56 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.52e-06/0.1691, allocations: 4 kB / 488.2 MB, free: 12.56 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002822/0.1694, allocations: 64.12 kB / 488.2 MB, free: 12.5 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.614e-06/0.1694, allocations: 8 kB / 488.3 MB, free: 12.49 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.505e-05/0.1695, allocations: 19.92 kB / 488.3 MB, free: 12.47 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.318e-06/0.1695, allocations: 4.25 kB / 488.3 MB, free: 12.46 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.326e-06/0.1695, allocations: 4 kB / 488.3 MB, free: 12.46 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009219/0.1704, allocations: 460.2 kB / 488.7 MB, free: 11.98 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.638e-05/0.1705, allocations: 89.02 kB / 488.8 MB, free: 11.87 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.299e-05/0.1705, allocations: 12.47 kB / 488.8 MB, free: 11.86 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002166/0.1708, allocations: 19.97 kB / 488.9 MB, free: 11.84 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.404e-05/0.1708, allocations: 11.98 kB / 488.9 MB, free: 11.83 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.373e-05/0.1708, allocations: 19.98 kB / 488.9 MB, free: 11.81 MB / 366.1 MB Notification: Performance of sorting global known variables: time 5.884e-05/0.1709, allocations: 83.28 kB / 489 MB, free: 11.73 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1709, allocations: 3.938 kB / 489 MB, free: 11.72 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001131/0.172, allocations: 315.9 kB / 489.3 MB, free: 11.41 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.00262/0.1747, allocations: 1.126 MB / 490.4 MB, free: 10.25 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0008391/0.1755, allocations: 347.7 kB / 490.7 MB, free: 9.906 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.356e-06/0.1755, allocations: 0 / 490.7 MB, free: 9.906 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003471/0.1759, allocations: 144.2 kB / 490.9 MB, free: 9.766 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003061/0.1762, allocations: 27.36 kB / 490.9 MB, free: 9.742 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001797/0.178, allocations: 0.5195 MB / 491.4 MB, free: 9.16 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002398/0.1783, allocations: 0.6926 MB / 492.1 MB, free: 8.438 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003696/0.1787, allocations: 96.88 kB / 492.2 MB, free: 8.344 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001934/0.1789, allocations: 55.41 kB / 492.3 MB, free: 8.289 MB / 366.1 MB Notification: Performance of SimCode: time 3.6e-07/0.1789, allocations: 0 / 492.3 MB, free: 8.289 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02986/0.2087, allocations: 18.83 MB / 0.4991 GB, free: 5.609 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.00017/0.2089, allocations: 218.5 kB / 0.4993 GB, free: 5.352 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.817/2.026, allocations: 0 / 0.4993 GB, free: 5.352 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