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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001748/0.001748, allocations: 116.8 kB / 18.5 MB, free: 4.434 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002004/0.002004, allocations: 189.2 kB / 21.44 MB, free: 1.504 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.415/1.415, allocations: 225.6 MB / 249.8 MB, free: 3.594 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2152/0.2152, allocations: 44.92 MB / 349.6 MB, free: 1.715 MB / 270.1 MB " [Timeout remaining time 180] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.003185/0.003185, allocations: 62.95 kB / 491.8 MB, free: 29.84 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1353/0.1385, allocations: 64.26 MB / 0.543 GB, free: 4.121 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives): time 0.00203/0.1405, allocations: 0.5504 MB / 0.5435 GB, free: 3.566 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.000909/0.1414, allocations: 379 kB / 0.5439 GB, free: 3.195 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.261e-05/0.1415, allocations: 0 / 0.5439 GB, free: 3.195 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 2.051e-05/0.1415, allocations: 0 / 0.5439 GB, free: 3.195 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 4.363e-05/0.1415, allocations: 3.938 kB / 0.5439 GB, free: 3.191 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000567/0.1421, allocations: 99.94 kB / 0.544 GB, free: 3.094 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 8.929e-05/0.1422, allocations: 23.98 kB / 0.544 GB, free: 3.07 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.851e-05/0.1422, allocations: 15.92 kB / 0.544 GB, free: 3.055 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.684e-05/0.1423, allocations: 11.92 kB / 0.544 GB, free: 3.043 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.875e-05/0.1423, allocations: 15.92 kB / 0.5441 GB, free: 3.027 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.636e-05/0.1423, allocations: 4 kB / 0.5441 GB, free: 3.023 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002785/0.1426, allocations: 115.9 kB / 0.5442 GB, free: 2.91 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 2.486e-05/0.1426, allocations: 11.94 kB / 0.5442 GB, free: 2.898 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.806e-05/0.1427, allocations: 19.88 kB / 0.5442 GB, free: 2.879 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002312/0.1429, allocations: 91.67 kB / 0.5443 GB, free: 2.789 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.1429, allocations: 4 kB / 0.5443 GB, free: 2.785 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.686e-06/0.1429, allocations: 0 / 0.5443 GB, free: 2.785 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.182e-05/0.1429, allocations: 0 / 0.5443 GB, free: 2.785 MB / 398.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.0005579/0.1435, allocations: 363.1 kB / 0.5446 GB, free: 2.379 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.628e-05/0.1435, allocations: 12.03 kB / 0.5446 GB, free: 2.367 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.498e-05/0.1436, allocations: 38.73 kB / 0.5447 GB, free: 2.32 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.752e-05/0.1436, allocations: 8.891 kB / 0.5447 GB, free: 2.312 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001664/0.1438, allocations: 164.3 kB / 0.5448 GB, free: 2.113 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.74e-05/0.1438, allocations: 8.375 kB / 0.5449 GB, free: 2.105 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.812e-05/0.1438, allocations: 384 / 0.5449 GB, free: 2.105 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001605/0.144, allocations: 66.11 kB / 0.5449 GB, free: 2.035 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.857e-05/0.144, allocations: 7.891 kB / 0.5449 GB, free: 2.027 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.219e-05/0.144, allocations: 4 kB / 0.5449 GB, free: 2.023 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.977e-06/0.144, allocations: 0 / 0.5449 GB, free: 2.023 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.749e-05/0.1441, allocations: 23.98 kB / 0.545 GB, free: 2 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002282/0.1443, allocations: 169.7 kB / 0.5451 GB, free: 1.785 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002647/0.1446, allocations: 58.59 kB / 0.5452 GB, free: 1.719 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.253e-05/0.1447, allocations: 20.84 kB / 0.5452 GB, free: 1.695 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002871/0.1449, allocations: 109.1 kB / 0.5453 GB, free: 1.57 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.847e-05/0.145, allocations: 30.56 kB / 0.5453 GB, free: 1.531 MB / 398.1 MB Notification: Performance of pre-optimization done (n=9): time 1.352e-06/0.145, allocations: 0 / 0.5453 GB, free: 1.531 MB / 398.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.04186/0.1868, allocations: 2.581 MB / 0.5478 GB, free: 14.91 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.017e-05/0.1869, allocations: 55.41 kB / 0.5479 GB, free: 14.84 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.36e-05/0.187, allocations: 101.9 kB / 0.548 GB, free: 14.73 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.594e-05/0.187, allocations: 29.7 kB / 0.548 GB, free: 14.7 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.988e-05/0.1871, allocations: 84.12 kB / 0.5481 GB, free: 14.61 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.966e-05/0.1872, allocations: 63.44 kB / 0.5482 GB, free: 14.55 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001272/0.1873, allocations: 57.69 kB / 0.5482 GB, free: 14.49 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001701/0.1875, allocations: 326.8 kB / 0.5485 GB, free: 14.16 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003911/0.1879, allocations: 175.9 kB / 0.5487 GB, free: 13.99 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003699/0.1882, allocations: 173.6 kB / 0.5489 GB, free: 13.82 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00103/0.1893, allocations: 422.7 kB / 0.5493 GB, free: 13.41 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.1893, allocations: 0 / 0.5493 GB, free: 13.41 MB / 414.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001091/0.1903, allocations: 453.4 kB / 0.5497 GB, free: 12.96 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.371e-05/0.1904, allocations: 12 kB / 0.5497 GB, free: 12.95 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.882e-06/0.1904, allocations: 0 / 0.5497 GB, free: 12.95 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.988e-05/0.1904, allocations: 0 / 0.5497 GB, free: 12.95 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004049/0.1908, allocations: 75.88 kB / 0.5498 GB, free: 12.87 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.875e-06/0.1908, allocations: 0 / 0.5498 GB, free: 12.87 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002148/0.191, allocations: 15.98 kB / 0.5498 GB, free: 12.86 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.862e-05/0.1911, allocations: 19.98 kB / 0.5498 GB, free: 12.84 MB / 414.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.000151/0.1912, allocations: 129.7 kB / 0.5499 GB, free: 12.7 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.63e-05/0.1913, allocations: 11.94 kB / 0.55 GB, free: 12.69 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001324/0.1926, allocations: 0.5376 MB / 0.5505 GB, free: 12.14 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.003e-06/0.1926, allocations: 4 kB / 0.5505 GB, free: 12.14 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.861e-06/0.1926, allocations: 0 / 0.5505 GB, free: 12.14 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.208e-06/0.1926, allocations: 0 / 0.5505 GB, free: 12.14 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002352/0.195, allocations: 0.8739 MB / 0.5513 GB, free: 11.19 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.761e-06/0.195, allocations: 4 kB / 0.5513 GB, free: 11.19 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002875/0.1952, allocations: 72.06 kB / 0.5514 GB, free: 11.12 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.283e-06/0.1953, allocations: 4 kB / 0.5514 GB, free: 11.11 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.394e-05/0.1953, allocations: 19.98 kB / 0.5514 GB, free: 11.09 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.927e-06/0.1953, allocations: 0 / 0.5514 GB, free: 11.09 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.989e-06/0.1953, allocations: 4 kB / 0.5514 GB, free: 11.09 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001042/0.1963, allocations: 462.5 kB / 0.5519 GB, free: 10.61 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.538e-05/0.1964, allocations: 89.06 kB / 0.552 GB, free: 10.5 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.119e-05/0.1964, allocations: 12.23 kB / 0.552 GB, free: 10.49 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002008/0.1966, allocations: 19.98 kB / 0.552 GB, free: 10.47 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.354e-05/0.1967, allocations: 16.45 kB / 0.552 GB, free: 10.45 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.943e-05/0.1967, allocations: 15.98 kB / 0.552 GB, free: 10.44 MB / 414.1 MB Notification: Performance of sorting global known variables: time 5.299e-05/0.1968, allocations: 83.28 kB / 0.5521 GB, free: 10.36 MB / 414.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.1968, allocations: 0 / 0.5521 GB, free: 10.36 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0009105/0.1977, allocations: 323.5 kB / 0.5524 GB, free: 10.04 MB / 414.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.002509/0.2002, allocations: 1.131 MB / 0.5535 GB, free: 8.863 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0008372/0.201, allocations: 326.7 kB / 0.5538 GB, free: 8.547 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.16e-06/0.201, allocations: 0 / 0.5538 GB, free: 8.547 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003457/0.2014, allocations: 143.7 kB / 0.554 GB, free: 8.41 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002958/0.2017, allocations: 12 kB / 0.554 GB, free: 8.398 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001815/0.2035, allocations: 0.5033 MB / 0.5545 GB, free: 7.836 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003395/0.2038, allocations: 0.6926 MB / 0.5551 GB, free: 7.113 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002958/0.2041, allocations: 88.89 kB / 0.5552 GB, free: 7.02 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000195/0.2043, allocations: 67.39 kB / 0.5553 GB, free: 6.953 MB / 414.1 MB Notification: Performance of SimCode: time 7.81e-07/0.2043, allocations: 0 / 0.5553 GB, free: 6.953 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04654/0.2509, allocations: 18.97 MB / 0.5738 GB, free: 4.09 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.017/8.268, allocations: 5.391 kB / 0.5738 GB, free: 4.09 MB / 430.1 MB " [Timeout remaining time 652] (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 --stepSize=0.0004 --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) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestUtilities/TestRegSquare2Derivatives/TestRegSquare2Derivatives.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 11.182492774911225]