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.001399/0.001399, allocations: 107.1 kB / 17.33 MB, free: 6.023 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.001773/0.001773, allocations: 193.3 kB / 18.25 MB, free: 5.117 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.353/1.353, allocations: 222.9 MB / 241.9 MB, free: 15.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2032/0.2032, allocations: 44.18 MB / 336.2 MB, free: 2.945 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001402/0.001402, allocations: 62.23 kB / 408 MB, free: 27.5 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1349/0.1363, allocations: 60.82 MB / 468.8 MB, free: 14.64 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives): time 0.002207/0.1386, allocations: 0.5947 MB / 469.4 MB, free: 14.04 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.000878/0.1395, allocations: 373.2 kB / 469.8 MB, free: 13.68 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.615e-05/0.1395, allocations: 4 kB / 469.8 MB, free: 13.68 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.823e-05/0.1396, allocations: 0 / 469.8 MB, free: 13.68 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.416e-05/0.1396, allocations: 7.938 kB / 469.8 MB, free: 13.67 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004785/0.1401, allocations: 95.78 kB / 469.9 MB, free: 13.57 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 6.257e-05/0.1402, allocations: 23.98 kB / 469.9 MB, free: 13.55 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.488e-05/0.1403, allocations: 0 / 469.9 MB, free: 13.55 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.538e-05/0.1403, allocations: 15.94 kB / 469.9 MB, free: 13.54 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.563e-05/0.1404, allocations: 15.92 kB / 469.9 MB, free: 13.52 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.496e-05/0.1404, allocations: 0 / 469.9 MB, free: 13.52 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002912/0.1407, allocations: 119.9 kB / 470.1 MB, free: 13.4 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.641e-05/0.1407, allocations: 7.938 kB / 470.1 MB, free: 13.39 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.25e-05/0.1408, allocations: 19.92 kB / 470.1 MB, free: 13.38 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002342/0.141, allocations: 104 kB / 470.2 MB, free: 13.27 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.921e-06/0.141, allocations: 0 / 470.2 MB, free: 13.27 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.141, allocations: 0 / 470.2 MB, free: 13.27 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.901e-06/0.1411, allocations: 0 / 470.2 MB, free: 13.27 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.0005097/0.1416, allocations: 359.5 kB / 470.5 MB, free: 12.87 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.778e-05/0.1416, allocations: 8.031 kB / 470.5 MB, free: 12.86 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.384e-05/0.1417, allocations: 42.75 kB / 470.6 MB, free: 12.81 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.682e-05/0.1417, allocations: 8.844 kB / 470.6 MB, free: 12.8 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001537/0.1419, allocations: 176.2 kB / 470.8 MB, free: 12.59 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.411e-05/0.1419, allocations: 4.375 kB / 470.8 MB, free: 12.59 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.782e-05/0.142, allocations: 4.375 kB / 470.8 MB, free: 12.59 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001605/0.1421, allocations: 50.25 kB / 470.8 MB, free: 12.53 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.643e-05/0.1422, allocations: 3.938 kB / 470.8 MB, free: 12.53 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.395e-05/0.1422, allocations: 4 kB / 470.8 MB, free: 12.52 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.538e-06/0.1422, allocations: 0 / 470.8 MB, free: 12.52 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.367e-05/0.1423, allocations: 31.91 kB / 470.9 MB, free: 12.49 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002422/0.1425, allocations: 173.6 kB / 471 MB, free: 12.27 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002789/0.1428, allocations: 62.48 kB / 471.1 MB, free: 12.2 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.714e-05/0.1429, allocations: 20.86 kB / 471.1 MB, free: 12.18 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003557/0.1433, allocations: 105.1 kB / 471.2 MB, free: 12.06 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.384e-05/0.1433, allocations: 38.78 kB / 471.3 MB, free: 12.01 MB / 350.1 MB Notification: Performance of pre-optimization done (n=9): time 1.523e-06/0.1433, allocations: 4 kB / 471.3 MB, free: 12.01 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.0454/0.1888, allocations: 2.562 MB / 473.8 MB, free: 9.406 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.35e-05/0.1888, allocations: 55.41 kB / 473.9 MB, free: 9.34 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.443e-05/0.1889, allocations: 97.84 kB / 474 MB, free: 9.234 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.851e-05/0.1889, allocations: 29.7 kB / 474 MB, free: 9.199 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.503e-05/0.189, allocations: 84.61 kB / 474.1 MB, free: 9.113 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.221e-05/0.1891, allocations: 63.09 kB / 474.1 MB, free: 9.051 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001192/0.1892, allocations: 61.67 kB / 474.2 MB, free: 8.984 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.99e-05/0.1893, allocations: 322.8 kB / 474.5 MB, free: 8.66 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003676/0.1897, allocations: 175.9 kB / 474.7 MB, free: 8.488 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003565/0.19, allocations: 182.2 kB / 474.9 MB, free: 8.312 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009747/0.191, allocations: 412.7 kB / 475.3 MB, free: 7.906 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.222e-06/0.191, allocations: 256 / 475.3 MB, free: 7.906 MB / 350.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001023/0.192, allocations: 471.7 kB / 475.7 MB, free: 7.441 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.285e-05/0.1921, allocations: 4 kB / 475.7 MB, free: 7.438 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.32e-06/0.1921, allocations: 4 kB / 475.7 MB, free: 7.434 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.298e-06/0.1921, allocations: 0 / 475.7 MB, free: 7.434 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003674/0.1925, allocations: 67.94 kB / 475.8 MB, free: 7.367 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.412e-06/0.1925, allocations: 4 kB / 475.8 MB, free: 7.363 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002108/0.1927, allocations: 15.97 kB / 475.8 MB, free: 7.348 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.323e-05/0.1928, allocations: 19.98 kB / 475.8 MB, free: 7.328 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.0001095/0.1929, allocations: 125.7 kB / 476 MB, free: 7.195 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.042e-05/0.1929, allocations: 11.84 kB / 476 MB, free: 7.184 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001247/0.1942, allocations: 0.5407 MB / 476.5 MB, free: 6.641 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.086e-06/0.1942, allocations: 4 kB / 476.5 MB, free: 6.637 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.597e-06/0.1942, allocations: 4 kB / 476.5 MB, free: 6.633 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.418e-06/0.1942, allocations: 3.984 kB / 476.5 MB, free: 6.629 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002031/0.1962, allocations: 0.893 MB / 477.4 MB, free: 5.664 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.026e-06/0.1963, allocations: 0 / 477.4 MB, free: 5.664 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002844/0.1966, allocations: 71.94 kB / 477.5 MB, free: 5.594 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.546e-06/0.1966, allocations: 0 / 477.5 MB, free: 5.594 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.972e-05/0.1966, allocations: 12 kB / 477.5 MB, free: 5.582 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.962e-06/0.1966, allocations: 11.92 kB / 477.5 MB, free: 5.57 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.813e-06/0.1966, allocations: 0 / 477.5 MB, free: 5.57 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008696/0.1975, allocations: 467 kB / 478 MB, free: 5.082 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.001e-05/0.1975, allocations: 85.02 kB / 478.1 MB, free: 4.98 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.776e-05/0.1976, allocations: 11.94 kB / 478.1 MB, free: 4.969 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002084/0.1978, allocations: 19.97 kB / 478.1 MB, free: 4.949 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.965e-05/0.1978, allocations: 11.98 kB / 478.1 MB, free: 4.938 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.702e-05/0.1979, allocations: 16 kB / 478.1 MB, free: 4.922 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.731e-05/0.1979, allocations: 91.27 kB / 478.2 MB, free: 4.832 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1979, allocations: 0 / 478.2 MB, free: 4.832 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008483/0.1988, allocations: 315.9 kB / 478.5 MB, free: 4.523 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.00234/0.2011, allocations: 1.116 MB / 479.6 MB, free: 3.359 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007513/0.2019, allocations: 347.6 kB / 480 MB, free: 3.02 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.2019, allocations: 4 kB / 480 MB, free: 3.016 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003282/0.2022, allocations: 147.8 kB / 480.1 MB, free: 2.871 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002732/0.2025, allocations: 21.48 kB / 480.1 MB, free: 2.852 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001685/0.2042, allocations: 0.5159 MB / 480.7 MB, free: 2.277 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00029/0.2045, allocations: 0.7003 MB / 481.4 MB, free: 1.547 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003722/0.2049, allocations: 92.88 kB / 481.4 MB, free: 1.453 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000195/0.2051, allocations: 59.39 kB / 481.5 MB, free: 1.395 MB / 350.1 MB Notification: Performance of SimCode: time 4.61e-07/0.2051, allocations: 0 / 481.5 MB, free: 1.395 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03112/0.2362, allocations: 18.84 MB / 0.4886 GB, free: 14.73 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001778/0.2364, allocations: 217.1 kB / 0.4888 GB, free: 14.47 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.849/2.085, allocations: 7.688 kB / 0.4888 GB, free: 14.47 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