Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00164/0.00164, allocations: 116.9 kB / 18.49 MB, free: 4.426 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002043/0.002043, allocations: 221.4 kB / 21.46 MB, free: 1.469 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.509/1.509, allocations: 230.6 MB / 254.8 MB, free: 15.01 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2289/0.2289, allocations: 46.92 MB / 357.8 MB, free: 10.28 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Fluid_TestUtilities_TestRegSquare2Derivatives",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Fluid_TestUtilities_TestRegSquare2Derivatives",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001937/0.001937, allocations: 63.91 kB / 0.4916 GB, free: 7.926 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1426/0.1446, allocations: 65.98 MB / 0.5561 GB, free: 5.816 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives): time 0.001887/0.1465, allocations: 0.5379 MB / 0.5566 GB, free: 5.277 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007893/0.1473, allocations: 371.3 kB / 0.5569 GB, free: 4.914 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.787e-05/0.1473, allocations: 0 / 0.5569 GB, free: 4.914 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 1.679e-05/0.1473, allocations: 3.938 kB / 0.5569 GB, free: 4.91 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 3.695e-05/0.1474, allocations: 7.938 kB / 0.5569 GB, free: 4.902 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004508/0.1478, allocations: 103.6 kB / 0.557 GB, free: 4.801 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 7.624e-05/0.1479, allocations: 23.92 kB / 0.5571 GB, free: 4.777 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.105e-05/0.1479, allocations: 11.98 kB / 0.5571 GB, free: 4.766 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.854e-05/0.148, allocations: 15.92 kB / 0.5571 GB, free: 4.75 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.991e-05/0.148, allocations: 15.92 kB / 0.5571 GB, free: 4.734 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 1.761e-05/0.148, allocations: 4 kB / 0.5571 GB, free: 4.73 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002291/0.1483, allocations: 115.9 kB / 0.5572 GB, free: 4.617 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 2.324e-05/0.1483, allocations: 7.984 kB / 0.5572 GB, free: 4.609 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 3.353e-05/0.1483, allocations: 19.86 kB / 0.5572 GB, free: 4.59 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001885/0.1485, allocations: 95.69 kB / 0.5573 GB, free: 4.496 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.1e-06/0.1485, allocations: 0 / 0.5573 GB, free: 4.496 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.1485, allocations: 0 / 0.5573 GB, free: 4.496 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.266e-05/0.1485, allocations: 0 / 0.5573 GB, free: 4.496 MB / 414.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.0005669/0.1491, allocations: 375 kB / 0.5577 GB, free: 4.078 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.621e-05/0.1491, allocations: 8.031 kB / 0.5577 GB, free: 4.07 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.682e-05/0.1492, allocations: 4.188 kB / 0.5577 GB, free: 4.066 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.545e-05/0.1492, allocations: 34.75 kB / 0.5577 GB, free: 4.023 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.589e-05/0.1492, allocations: 0.9375 kB / 0.5577 GB, free: 4.023 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001602/0.1494, allocations: 172.3 kB / 0.5579 GB, free: 3.816 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.556e-05/0.1494, allocations: 4.375 kB / 0.5579 GB, free: 3.812 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.719e-05/0.1494, allocations: 12.25 kB / 0.5579 GB, free: 3.801 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00015/0.1496, allocations: 61.92 kB / 0.558 GB, free: 3.734 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.415e-05/0.1496, allocations: 0 / 0.558 GB, free: 3.734 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.032e-05/0.1496, allocations: 4 kB / 0.558 GB, free: 3.73 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.297e-06/0.1496, allocations: 0 / 0.558 GB, free: 3.73 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.71e-05/0.1497, allocations: 27.98 kB / 0.558 GB, free: 3.703 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002151/0.1499, allocations: 173.6 kB / 0.5582 GB, free: 3.484 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002525/0.1502, allocations: 50.59 kB / 0.5582 GB, free: 3.426 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.859e-05/0.1502, allocations: 28.84 kB / 0.5583 GB, free: 3.395 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002801/0.1505, allocations: 105.1 kB / 0.5584 GB, free: 3.273 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.257e-05/0.1505, allocations: 38.5 kB / 0.5584 GB, free: 3.227 MB / 414.1 MB Notification: Performance of pre-optimization done (n=9): time 1.102e-06/0.1505, allocations: 4 kB / 0.5584 GB, free: 3.223 MB / 414.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.04225/0.1928, allocations: 2.566 MB / 0.5609 GB, free: 0.6211 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.729e-05/0.1928, allocations: 55.41 kB / 0.561 GB, free: 0.5547 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001073/0.1929, allocations: 105.8 kB / 0.5611 GB, free: 452 kB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.003e-05/0.193, allocations: 33.7 kB / 0.5611 GB, free: 412 kB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.413e-05/0.193, allocations: 83.89 kB / 0.5612 GB, free: 324 kB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.259e-05/0.1931, allocations: 67.38 kB / 0.5612 GB, free: 256 kB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001351/0.1932, allocations: 61.69 kB / 0.5613 GB, free: 188 kB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001569/0.1934, allocations: 322.8 kB / 0.5616 GB, free: 15.86 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004078/0.1938, allocations: 171.9 kB / 0.5618 GB, free: 15.69 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004046/0.1942, allocations: 173.8 kB / 0.5619 GB, free: 15.52 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001084/0.1953, allocations: 424.6 kB / 0.5623 GB, free: 15.11 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.082e-06/0.1953, allocations: 0 / 0.5623 GB, free: 15.11 MB / 430.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001157/0.1964, allocations: 464 kB / 0.5628 GB, free: 14.65 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.707e-05/0.1965, allocations: 4 kB / 0.5628 GB, free: 14.64 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.855e-06/0.1965, allocations: 0 / 0.5628 GB, free: 14.64 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.437e-05/0.1965, allocations: 4 kB / 0.5628 GB, free: 14.64 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004032/0.1969, allocations: 71.88 kB / 0.5628 GB, free: 14.57 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.703e-06/0.1969, allocations: 0 / 0.5628 GB, free: 14.57 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002181/0.1971, allocations: 23.97 kB / 0.5629 GB, free: 14.55 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.983e-05/0.1972, allocations: 15.98 kB / 0.5629 GB, free: 14.53 MB / 430.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.0001468/0.1973, allocations: 121.8 kB / 0.563 GB, free: 14.4 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.359e-05/0.1974, allocations: 7.953 kB / 0.563 GB, free: 14.39 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001352/0.1987, allocations: 0.5407 MB / 0.5635 GB, free: 13.84 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.627e-06/0.1987, allocations: 4 kB / 0.5635 GB, free: 13.84 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.429e-06/0.1987, allocations: 0 / 0.5635 GB, free: 13.84 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.935e-06/0.1987, allocations: 7.984 kB / 0.5636 GB, free: 13.83 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002243/0.201, allocations: 0.8777 MB / 0.5644 GB, free: 12.88 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.136e-06/0.201, allocations: 0 / 0.5644 GB, free: 12.88 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003022/0.2013, allocations: 67.89 kB / 0.5645 GB, free: 12.81 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.79e-06/0.2013, allocations: 4 kB / 0.5645 GB, free: 12.81 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.16e-05/0.2013, allocations: 15.98 kB / 0.5645 GB, free: 12.79 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.539e-06/0.2013, allocations: 4 kB / 0.5645 GB, free: 12.79 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.133e-05/0.2013, allocations: 4.469 kB / 0.5645 GB, free: 12.79 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001006/0.2023, allocations: 475 kB / 0.565 GB, free: 12.29 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.444e-05/0.2024, allocations: 89.05 kB / 0.565 GB, free: 12.18 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.839e-05/0.2024, allocations: 12 kB / 0.565 GB, free: 12.17 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002059/0.2026, allocations: 11.98 kB / 0.5651 GB, free: 12.16 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.805e-05/0.2027, allocations: 23.86 kB / 0.5651 GB, free: 12.14 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.236e-05/0.2027, allocations: 23.98 kB / 0.5651 GB, free: 12.11 MB / 430.1 MB Notification: Performance of sorting global known variables: time 5.514e-05/0.2027, allocations: 83.22 kB / 0.5652 GB, free: 12.03 MB / 430.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2027, allocations: 0 / 0.5652 GB, free: 12.03 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0009552/0.2037, allocations: 319.6 kB / 0.5655 GB, free: 11.72 MB / 430.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.002712/0.2064, allocations: 1.115 MB / 0.5666 GB, free: 10.56 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0008903/0.2073, allocations: 319.7 kB / 0.5669 GB, free: 10.25 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.995e-06/0.2073, allocations: 0 / 0.5669 GB, free: 10.25 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003871/0.2077, allocations: 151 kB / 0.567 GB, free: 10.1 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002916/0.208, allocations: 13.36 kB / 0.567 GB, free: 10.09 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001814/0.2098, allocations: 0.4997 MB / 0.5675 GB, free: 9.531 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003377/0.2101, allocations: 0.7003 MB / 0.5682 GB, free: 8.801 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0002698/0.2104, allocations: 92.88 kB / 0.5683 GB, free: 8.707 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002136/0.2106, allocations: 59.41 kB / 0.5684 GB, free: 8.648 MB / 430.1 MB Notification: Performance of SimCode: time 6.01e-07/0.2106, allocations: 4 kB / 0.5684 GB, free: 8.645 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0384/0.249, allocations: 19.01 MB / 0.5869 GB, free: 5.785 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.227/8.476, allocations: 18.27 kB / 0.5869 GB, free: 5.77 MB / 446.1 MB " [Timeout remaining time 651] (rm -f ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Fluid_TestUtilities_TestRegSquare2Derivatives_fmu --startTime=0 --stopTime=2 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0_ModelicaTest_Fluid_TestUtilities_TestRegSquare2Derivatives.fmu > ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Fluid/TestUtilities/TestRegSquare2Derivatives/TestRegSquare2Derivatives.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.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.78535571199609]