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.001466/0.001466, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001612/0.001613, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.467/1.467, allocations: 227.4 MB / 246.8 MB, free: 10.64 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2012/0.2012, allocations: 46.11 MB / 344.1 MB, free: 11.62 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002449/0.002449, allocations: 74.5 kB / 417.7 MB, free: 19.68 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1196/0.1221, allocations: 62.43 MB / 480.1 MB, free: 5.223 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives): time 0.002035/0.1241, allocations: 0.5371 MB / 480.7 MB, free: 4.684 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007088/0.1249, allocations: 373.4 kB / 481 MB, free: 4.32 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.351e-05/0.1249, allocations: 0 / 481 MB, free: 4.32 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.408e-05/0.125, allocations: 7.938 kB / 481 MB, free: 4.312 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 2.871e-05/0.125, allocations: 0 / 481 MB, free: 4.312 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003807/0.1254, allocations: 103.6 kB / 481.1 MB, free: 4.211 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.344e-05/0.1255, allocations: 23.92 kB / 481.2 MB, free: 4.188 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.707e-05/0.1255, allocations: 4 kB / 481.2 MB, free: 4.184 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.19e-05/0.1255, allocations: 15.92 kB / 481.2 MB, free: 4.168 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.131e-05/0.1256, allocations: 23.91 kB / 481.2 MB, free: 4.145 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.208e-05/0.1256, allocations: 3.938 kB / 481.2 MB, free: 4.141 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002052/0.1258, allocations: 115.9 kB / 481.3 MB, free: 4.027 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.346e-05/0.1258, allocations: 3.984 kB / 481.3 MB, free: 4.023 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.424e-05/0.1259, allocations: 23.86 kB / 481.3 MB, free: 4 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001654/0.126, allocations: 96.03 kB / 481.4 MB, free: 3.906 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.336e-06/0.126, allocations: 0 / 481.4 MB, free: 3.906 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.293e-06/0.1261, allocations: 0 / 481.4 MB, free: 3.906 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.378e-06/0.1261, allocations: 0 / 481.4 MB, free: 3.906 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.0004899/0.1266, allocations: 359.5 kB / 481.8 MB, free: 3.504 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.771e-05/0.1266, allocations: 8.031 kB / 481.8 MB, free: 3.496 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.284e-05/0.1266, allocations: 42.73 kB / 481.8 MB, free: 3.445 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.646e-05/0.1267, allocations: 4.844 kB / 481.8 MB, free: 3.441 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001212/0.1268, allocations: 172.3 kB / 482 MB, free: 3.234 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.955e-06/0.1268, allocations: 4.375 kB / 482 MB, free: 3.23 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.422e-05/0.1269, allocations: 8.375 kB / 482 MB, free: 3.223 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001671/0.127, allocations: 58.17 kB / 482.1 MB, free: 3.16 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.281e-05/0.127, allocations: 3.938 kB / 482.1 MB, free: 3.156 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.155e-06/0.1271, allocations: 0 / 482.1 MB, free: 3.156 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.55e-06/0.1271, allocations: 4 kB / 482.1 MB, free: 3.152 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.569e-05/0.1271, allocations: 23.98 kB / 482.1 MB, free: 3.129 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002286/0.1274, allocations: 169.5 kB / 482.3 MB, free: 2.914 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002118/0.1276, allocations: 66.53 kB / 482.3 MB, free: 2.84 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.883e-05/0.1277, allocations: 28.84 kB / 482.4 MB, free: 2.809 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002594/0.1279, allocations: 105.1 kB / 482.5 MB, free: 2.688 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.115e-05/0.128, allocations: 34.55 kB / 482.5 MB, free: 2.645 MB / 350.1 MB Notification: Performance of pre-optimization done (n=9): time 2.655e-06/0.128, allocations: 288 / 482.5 MB, free: 2.645 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.04358/0.1716, allocations: 2.579 MB / 485.1 MB, free: 36 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.452e-05/0.1716, allocations: 67.34 kB / 485.1 MB, free: 15.96 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.011e-05/0.1717, allocations: 97.86 kB / 485.2 MB, free: 15.85 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.261e-05/0.1718, allocations: 29.7 kB / 485.3 MB, free: 15.82 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.358e-05/0.1718, allocations: 84.14 kB / 485.4 MB, free: 15.73 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.972e-05/0.1719, allocations: 63.08 kB / 485.4 MB, free: 15.67 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001194/0.172, allocations: 61.69 kB / 485.5 MB, free: 15.6 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.692e-05/0.1721, allocations: 322.8 kB / 485.8 MB, free: 15.28 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003929/0.1725, allocations: 171.9 kB / 486 MB, free: 15.11 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000382/0.1729, allocations: 175.9 kB / 486.1 MB, free: 14.94 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001043/0.174, allocations: 418.9 kB / 486.5 MB, free: 14.53 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.483e-06/0.174, allocations: 0 / 486.5 MB, free: 14.53 MB / 366.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001042/0.175, allocations: 457.3 kB / 487 MB, free: 14.07 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.456e-05/0.175, allocations: 11.94 kB / 487 MB, free: 14.06 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.95e-06/0.175, allocations: 0 / 487 MB, free: 14.06 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.415e-05/0.1751, allocations: 0 / 487 MB, free: 14.06 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003901/0.1755, allocations: 71.94 kB / 487.1 MB, free: 13.99 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.521e-06/0.1755, allocations: 3.938 kB / 487.1 MB, free: 13.99 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002141/0.1757, allocations: 15.98 kB / 487.1 MB, free: 13.97 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.534e-05/0.1757, allocations: 19.98 kB / 487.1 MB, free: 13.95 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.0001179/0.1759, allocations: 125.7 kB / 487.2 MB, free: 13.82 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.315e-05/0.1759, allocations: 7.906 kB / 487.2 MB, free: 13.81 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001272/0.1772, allocations: 0.5435 MB / 487.8 MB, free: 13.27 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.27e-06/0.1772, allocations: 4 kB / 487.8 MB, free: 13.26 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.108e-06/0.1772, allocations: 0 / 487.8 MB, free: 13.26 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.587e-06/0.1772, allocations: 0 / 487.8 MB, free: 13.26 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002068/0.1793, allocations: 0.8737 MB / 488.7 MB, free: 12.32 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.815e-06/0.1793, allocations: 8.125 kB / 488.7 MB, free: 12.31 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002917/0.1796, allocations: 67.94 kB / 488.7 MB, free: 12.25 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.617e-06/0.1796, allocations: 0 / 488.7 MB, free: 12.25 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.261e-05/0.1797, allocations: 19.98 kB / 488.8 MB, free: 12.23 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.918e-06/0.1797, allocations: 4 kB / 488.8 MB, free: 12.22 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.436e-06/0.1797, allocations: 3.938 kB / 488.8 MB, free: 12.22 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009158/0.1806, allocations: 468.3 kB / 489.2 MB, free: 11.73 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.697e-05/0.1807, allocations: 85.48 kB / 489.3 MB, free: 11.62 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.73e-05/0.1807, allocations: 4.25 kB / 489.3 MB, free: 11.62 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002151/0.1809, allocations: 23.97 kB / 489.3 MB, free: 11.6 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.323e-05/0.181, allocations: 19.92 kB / 489.3 MB, free: 11.58 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.823e-05/0.181, allocations: 15.98 kB / 489.4 MB, free: 11.56 MB / 366.1 MB Notification: Performance of sorting global known variables: time 3.789e-05/0.181, allocations: 91.22 kB / 489.5 MB, free: 11.47 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.181, allocations: 0 / 489.5 MB, free: 11.47 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008247/0.1819, allocations: 319.9 kB / 489.8 MB, free: 11.16 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.002435/0.1843, allocations: 1.115 MB / 490.9 MB, free: 10 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0008262/0.1852, allocations: 346.2 kB / 491.2 MB, free: 9.668 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.1852, allocations: 0 / 491.2 MB, free: 9.668 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003503/0.1855, allocations: 152.2 kB / 491.4 MB, free: 9.52 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002709/0.1858, allocations: 8 kB / 491.4 MB, free: 9.512 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001748/0.1876, allocations: 0.4922 MB / 491.9 MB, free: 8.957 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002462/0.1878, allocations: 0.7043 MB / 492.6 MB, free: 8.223 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003641/0.1882, allocations: 88.89 kB / 492.7 MB, free: 8.137 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001989/0.1884, allocations: 59.39 kB / 492.7 MB, free: 8.078 MB / 366.1 MB Notification: Performance of SimCode: time 2.6e-07/0.1884, allocations: 0 / 492.7 MB, free: 8.078 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03709/0.2255, allocations: 18.92 MB / 0.4996 GB, free: 5.266 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.4/7.626, allocations: 14.7 kB / 0.4997 GB, free: 5.254 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 & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 ModelicaTest_trunk_ModelicaTest_Fluid_TestUtilities_TestRegSquare2Derivatives.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives_res.csv","/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