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: "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestUtilities_TestRegSquare2Derivatives",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives,fileNamePrefix="ModelicaTest_4_0_0_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.000783/0.0007829, allocations: 93.88 kB / 17.35 MB, free: 6.371 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.0008772/0.0008772, allocations: 171.8 kB / 18.25 MB, free: 5.527 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.23/1.23, allocations: 223.3 MB / 242.3 MB, free: 228 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.182/0.182, allocations: 44.25 MB / 337.7 MB, free: 2.66 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002879/0.0002879, allocations: 8 kB / 410.4 MB, free: 27.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1023/0.1026, allocations: 61.92 MB / 472.4 MB, free: 13.26 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives): time 0.0005622/0.1032, allocations: 274.6 kB / 472.6 MB, free: 12.99 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006576/0.1039, allocations: 380.6 kB / 473 MB, free: 12.62 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.549e-05/0.1039, allocations: 0 / 473 MB, free: 12.62 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.085e-05/0.1039, allocations: 0 / 473 MB, free: 12.62 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 2.961e-05/0.1039, allocations: 0 / 473 MB, free: 12.62 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002983/0.1042, allocations: 79.8 kB / 473.1 MB, free: 12.54 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.689e-05/0.1043, allocations: 23.92 kB / 473.1 MB, free: 12.52 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.049e-05/0.1044, allocations: 7.984 kB / 473.1 MB, free: 12.51 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.284e-05/0.1044, allocations: 11.94 kB / 473.1 MB, free: 12.5 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.029e-05/0.1044, allocations: 23.91 kB / 473.1 MB, free: 12.47 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.158e-05/0.1045, allocations: 0 / 473.1 MB, free: 12.47 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001984/0.1047, allocations: 119.9 kB / 473.3 MB, free: 12.36 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.198e-05/0.1047, allocations: 3.938 kB / 473.3 MB, free: 12.35 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.014e-05/0.1047, allocations: 49.61 kB / 473.3 MB, free: 12.3 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001483/0.1049, allocations: 95.75 kB / 473.4 MB, free: 12.2 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.547e-06/0.1049, allocations: 0 / 473.4 MB, free: 12.2 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.1049, allocations: 0 / 473.4 MB, free: 12.2 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.881e-06/0.1049, allocations: 0 / 473.4 MB, free: 12.2 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.0003515/0.1053, allocations: 354 kB / 473.7 MB, free: 11.81 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.495e-05/0.1053, allocations: 12.03 kB / 473.8 MB, free: 11.8 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.143e-05/0.1053, allocations: 34.73 kB / 473.8 MB, free: 11.75 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.068e-05/0.1054, allocations: 4.938 kB / 473.8 MB, free: 11.75 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001067/0.1055, allocations: 176.2 kB / 474 MB, free: 11.54 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.062e-05/0.1055, allocations: 4.375 kB / 474 MB, free: 11.54 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.743e-05/0.1055, allocations: 384 / 474 MB, free: 11.54 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001081/0.1056, allocations: 62.17 kB / 474 MB, free: 11.47 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.948e-06/0.1057, allocations: 3.938 kB / 474 MB, free: 11.46 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.384e-06/0.1057, allocations: 0 / 474 MB, free: 11.46 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.358e-06/0.1057, allocations: 0 / 474 MB, free: 11.46 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.867e-05/0.1057, allocations: 27.98 kB / 474.1 MB, free: 11.44 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000154/0.1059, allocations: 181.5 kB / 474.2 MB, free: 11.21 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00018/0.1061, allocations: 58.59 kB / 474.3 MB, free: 11.14 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.327e-05/0.1061, allocations: 24.84 kB / 474.3 MB, free: 11.12 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002496/0.1064, allocations: 121.1 kB / 474.4 MB, free: 10.98 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.929e-05/0.1064, allocations: 38.55 kB / 474.5 MB, free: 10.93 MB / 350.1 MB Notification: Performance of pre-optimization done (n=9): time 1.242e-06/0.1064, allocations: 0 / 474.5 MB, free: 10.93 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.04329/0.1497, allocations: 2.817 MB / 477.3 MB, free: 8.078 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.312e-05/0.1498, allocations: 51.41 kB / 477.3 MB, free: 8.016 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.271e-05/0.1499, allocations: 98.33 kB / 477.4 MB, free: 7.91 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.925e-05/0.1499, allocations: 29.7 kB / 477.5 MB, free: 7.875 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.644e-05/0.15, allocations: 84.12 kB / 477.6 MB, free: 7.789 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.9e-05/0.1501, allocations: 67.09 kB / 477.6 MB, free: 7.723 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.356e-05/0.1501, allocations: 17.72 kB / 477.6 MB, free: 7.699 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001092/0.1503, allocations: 334.7 kB / 478 MB, free: 7.363 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003895/0.1507, allocations: 187.8 kB / 478.1 MB, free: 7.18 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003819/0.151, allocations: 195.9 kB / 478.3 MB, free: 6.988 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001021/0.1521, allocations: 451.4 kB / 478.8 MB, free: 6.547 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.102e-06/0.1521, allocations: 0 / 478.8 MB, free: 6.547 MB / 350.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001029/0.1531, allocations: 493.3 kB / 479.3 MB, free: 6.059 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.85e-05/0.1532, allocations: 4 kB / 479.3 MB, free: 6.055 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.821e-06/0.1532, allocations: 0 / 479.3 MB, free: 6.055 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.27e-05/0.1532, allocations: 0 / 479.3 MB, free: 6.055 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000361/0.1535, allocations: 83.88 kB / 479.3 MB, free: 5.973 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.977e-06/0.1536, allocations: 3.984 kB / 479.3 MB, free: 5.969 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002077/0.1538, allocations: 27.97 kB / 479.4 MB, free: 5.941 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.581e-05/0.1538, allocations: 23.98 kB / 479.4 MB, free: 5.918 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.0001157/0.1539, allocations: 113.8 kB / 479.5 MB, free: 5.797 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.317e-05/0.154, allocations: 7.906 kB / 479.5 MB, free: 5.789 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001273/0.1553, allocations: 0.5743 MB / 480.1 MB, free: 5.215 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.284e-06/0.1553, allocations: 4.25 kB / 480.1 MB, free: 5.211 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.49e-06/0.1553, allocations: 3.938 kB / 480.1 MB, free: 5.207 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.767e-06/0.1553, allocations: 7.984 kB / 480.1 MB, free: 5.199 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002075/0.1574, allocations: 0.9585 MB / 481.1 MB, free: 4.172 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.836e-06/0.1574, allocations: 0 / 481.1 MB, free: 4.172 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002745/0.1577, allocations: 76.08 kB / 481.1 MB, free: 4.098 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.47e-06/0.1577, allocations: 4 kB / 481.1 MB, free: 4.094 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.812e-05/0.1577, allocations: 19.98 kB / 481.2 MB, free: 4.074 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.575e-06/0.1577, allocations: 0 / 481.2 MB, free: 4.074 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.015e-06/0.1577, allocations: 4 kB / 481.2 MB, free: 4.07 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009011/0.1586, allocations: 496.2 kB / 481.7 MB, free: 3.551 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.973e-05/0.1587, allocations: 92.98 kB / 481.7 MB, free: 3.441 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.237e-05/0.1587, allocations: 8 kB / 481.8 MB, free: 3.434 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002017/0.1589, allocations: 23.98 kB / 481.8 MB, free: 3.41 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.559e-05/0.159, allocations: 15.92 kB / 481.8 MB, free: 3.395 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.687e-05/0.159, allocations: 23.98 kB / 481.8 MB, free: 3.371 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.781e-05/0.1591, allocations: 83.28 kB / 481.9 MB, free: 3.289 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1591, allocations: 0 / 481.9 MB, free: 3.289 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007764/0.1598, allocations: 315.9 kB / 482.2 MB, free: 2.98 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.002333/0.1622, allocations: 1.149 MB / 483.4 MB, free: 1.785 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007826/0.163, allocations: 375.7 kB / 483.7 MB, free: 1.418 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.163, allocations: 0 / 483.7 MB, free: 1.418 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003418/0.1633, allocations: 163.8 kB / 483.9 MB, free: 1.258 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002707/0.1636, allocations: 20.25 kB / 483.9 MB, free: 1.238 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001676/0.1653, allocations: 0.5718 MB / 484.5 MB, free: 0.6055 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002311/0.1655, allocations: 0.7006 MB / 485.2 MB, free: 15.88 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003484/0.1659, allocations: 88.89 kB / 485.3 MB, free: 15.78 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001868/0.1661, allocations: 63.39 kB / 485.3 MB, free: 15.72 MB / 366.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1661, allocations: 0 / 485.3 MB, free: 15.72 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.968/2.134, allocations: 18.56 MB / 0.4921 GB, free: 13.34 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002132/2.134, allocations: 209.9 kB / 0.4923 GB, free: 13.09 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.327/4.462, allocations: 4 kB / 0.4923 GB, free: 13.09 MB / 382.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestUtilities_TestRegSquare2Derivatives_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestUtilities_TestRegSquare2Derivatives.fmu > 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