Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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.001788/0.001788, allocations: 109 kB / 20.48 MB, free: 1.477 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.002224/0.002224, allocations: 207.9 kB / 23.78 MB, free: 4.688 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.503/1.503, allocations: 207.6 MB / 234.5 MB, free: 9.984 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2225/0.2225, allocations: 44.24 MB / 331.1 MB, free: 9.52 MB / 270.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_ModelicaTest_Fluid_TestUtilities_TestRegSquare2Derivatives",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestUtilities_TestRegSquare2Derivatives",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0023/0.0023, allocations: 66.56 kB / 468.3 MB, free: 4.523 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1086/0.1109, allocations: 61.05 MB / 0.5169 GB, free: 7.34 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives): time 0.001783/0.1127, allocations: 0.5453 MB / 0.5174 GB, free: 6.793 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007264/0.1134, allocations: 378.9 kB / 0.5178 GB, free: 6.422 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.714e-05/0.1134, allocations: 0 / 0.5178 GB, free: 6.422 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.867e-05/0.1135, allocations: 3.938 kB / 0.5178 GB, free: 6.418 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 2.701e-05/0.1135, allocations: 0 / 0.5178 GB, free: 6.418 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000428/0.1139, allocations: 107.6 kB / 0.5179 GB, free: 6.312 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 6.49e-05/0.114, allocations: 31.86 kB / 0.5179 GB, free: 6.281 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.792e-05/0.114, allocations: 4 kB / 0.5179 GB, free: 6.277 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.17e-05/0.114, allocations: 11.92 kB / 0.518 GB, free: 6.266 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.782e-05/0.1141, allocations: 23.91 kB / 0.518 GB, free: 6.242 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.74e-05/0.1141, allocations: 4 kB / 0.518 GB, free: 6.238 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002286/0.1144, allocations: 111.9 kB / 0.5181 GB, free: 6.129 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.524e-05/0.1144, allocations: 7.984 kB / 0.5181 GB, free: 6.121 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.826e-05/0.1144, allocations: 19.86 kB / 0.5181 GB, free: 6.102 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001857/0.1146, allocations: 95.69 kB / 0.5182 GB, free: 6.008 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.287e-06/0.1146, allocations: 0 / 0.5182 GB, free: 6.008 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.1146, allocations: 0 / 0.5182 GB, free: 6.008 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.275e-06/0.1146, allocations: 0 / 0.5182 GB, free: 6.008 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.0004159/0.115, allocations: 294 kB / 0.5185 GB, free: 5.688 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.654e-05/0.115, allocations: 8.031 kB / 0.5185 GB, free: 5.68 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.297e-05/0.1151, allocations: 4.188 kB / 0.5185 GB, free: 5.676 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.323e-05/0.1151, allocations: 46.69 kB / 0.5185 GB, free: 5.621 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.502e-05/0.1151, allocations: 0.9375 kB / 0.5185 GB, free: 5.621 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001025/0.1152, allocations: 114.4 kB / 0.5187 GB, free: 5.484 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.468e-05/0.1152, allocations: 12.36 kB / 0.5187 GB, free: 5.473 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.05e-05/0.1153, allocations: 384 / 0.5187 GB, free: 5.473 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001241/0.1154, allocations: 58 kB / 0.5187 GB, free: 5.41 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.094e-05/0.1154, allocations: 0 / 0.5187 GB, free: 5.41 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.767e-06/0.1154, allocations: 4 kB / 0.5187 GB, free: 5.406 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.038e-06/0.1154, allocations: 0 / 0.5187 GB, free: 5.406 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.802e-05/0.1155, allocations: 31.91 kB / 0.5188 GB, free: 5.375 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001693/0.1156, allocations: 148.7 kB / 0.5189 GB, free: 5.188 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002066/0.1158, allocations: 50.55 kB / 0.5189 GB, free: 5.129 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.563e-05/0.1159, allocations: 20.86 kB / 0.519 GB, free: 5.105 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002368/0.1161, allocations: 35.95 kB / 0.519 GB, free: 5.07 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.431e-05/0.1162, allocations: 34.78 kB / 0.519 GB, free: 5.027 MB / 398.1 MB Notification: Performance of pre-optimization done (n=9): time 1.042e-06/0.1162, allocations: 0 / 0.519 GB, free: 5.027 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.0425/0.1587, allocations: 2.574 MB / 0.5215 GB, free: 2.418 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.847e-05/0.1587, allocations: 55.34 kB / 0.5216 GB, free: 2.352 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.578e-05/0.1588, allocations: 110.1 kB / 0.5217 GB, free: 2.234 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.159e-05/0.1588, allocations: 29.7 kB / 0.5217 GB, free: 2.199 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.393e-05/0.1589, allocations: 84.14 kB / 0.5218 GB, free: 2.113 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.286e-05/0.159, allocations: 67.38 kB / 0.5219 GB, free: 2.047 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001393/0.1591, allocations: 57.69 kB / 0.5219 GB, free: 1.984 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001377/0.1592, allocations: 322.8 kB / 0.5222 GB, free: 1.66 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004109/0.1596, allocations: 175.9 kB / 0.5224 GB, free: 1.488 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003978/0.16, allocations: 179.9 kB / 0.5226 GB, free: 1.312 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001061/0.1611, allocations: 416.1 kB / 0.523 GB, free: 0.9062 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.734e-06/0.1611, allocations: 256 / 0.523 GB, free: 0.9062 MB / 398.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001107/0.1622, allocations: 465.3 kB / 0.5234 GB, free: 456 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.805e-05/0.1622, allocations: 4 kB / 0.5234 GB, free: 452 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.844e-06/0.1622, allocations: 4 kB / 0.5234 GB, free: 448 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.46e-05/0.1622, allocations: 0 / 0.5234 GB, free: 448 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003814/0.1626, allocations: 67.94 kB / 0.5235 GB, free: 380 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.693e-06/0.1626, allocations: 4 kB / 0.5235 GB, free: 376 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002149/0.1629, allocations: 23.97 kB / 0.5235 GB, free: 352 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.257e-05/0.1629, allocations: 15.98 kB / 0.5235 GB, free: 336 kB / 398.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.0001418/0.163, allocations: 125.7 kB / 0.5237 GB, free: 200 kB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.343e-05/0.1631, allocations: 7.953 kB / 0.5237 GB, free: 192 kB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001349/0.1644, allocations: 0.533 MB / 0.5242 GB, free: 15.64 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.672e-06/0.1644, allocations: 4 kB / 0.5242 GB, free: 15.64 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.933e-06/0.1644, allocations: 3.984 kB / 0.5242 GB, free: 15.64 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.897e-06/0.1644, allocations: 0 / 0.5242 GB, free: 15.64 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002246/0.1667, allocations: 0.8494 MB / 0.525 GB, free: 14.72 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.055e-06/0.1667, allocations: 3.938 kB / 0.525 GB, free: 14.71 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002937/0.167, allocations: 63.94 kB / 0.5251 GB, free: 14.65 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.038e-06/0.167, allocations: 4 kB / 0.5251 GB, free: 14.65 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.648e-05/0.167, allocations: 19.98 kB / 0.5251 GB, free: 14.63 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.749e-06/0.167, allocations: 4 kB / 0.5251 GB, free: 14.62 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.869e-06/0.167, allocations: 8.125 kB / 0.5251 GB, free: 14.62 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009762/0.168, allocations: 466.8 kB / 0.5256 GB, free: 14.13 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.766e-05/0.168, allocations: 11.95 kB / 0.5256 GB, free: 14.12 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.794e-05/0.1681, allocations: 4 kB / 0.5256 GB, free: 14.11 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002159/0.1683, allocations: 19.97 kB / 0.5256 GB, free: 14.09 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.188e-05/0.1683, allocations: 27.91 kB / 0.5256 GB, free: 14.07 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.357e-05/0.1684, allocations: 15.98 kB / 0.5256 GB, free: 14.05 MB / 414.1 MB Notification: Performance of sorting global known variables: time 5.344e-05/0.1684, allocations: 91.2 kB / 0.5257 GB, free: 13.96 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1684, allocations: 0 / 0.5257 GB, free: 13.96 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.000925/0.1693, allocations: 315.6 kB / 0.526 GB, free: 13.65 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.002626/0.172, allocations: 1.111 MB / 0.5271 GB, free: 12.5 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0008693/0.1728, allocations: 335.6 kB / 0.5274 GB, free: 12.17 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.016e-06/0.1728, allocations: 0 / 0.5274 GB, free: 12.17 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003699/0.1732, allocations: 147.9 kB / 0.5276 GB, free: 12.02 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002862/0.1735, allocations: 11.44 kB / 0.5276 GB, free: 12.02 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001855/0.1753, allocations: 0.5001 MB / 0.5281 GB, free: 11.46 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003652/0.1757, allocations: 0.6926 MB / 0.5287 GB, free: 10.73 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002811/0.176, allocations: 92.97 kB / 0.5288 GB, free: 10.64 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002184/0.1762, allocations: 63.41 kB / 0.5289 GB, free: 10.58 MB / 414.1 MB Notification: Performance of SimCode: time 5.71e-07/0.1762, allocations: 0 / 0.5289 GB, free: 10.58 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2478/0.424, allocations: 19.25 MB / 0.5477 GB, free: 24.61 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.05/11.47, allocations: 11.48 kB / 0.5477 GB, free: 24.61 MB / 414.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Fluid_TestUtilities_TestRegSquare2Derivatives_fmu --startTime=0 --stopTime=2 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Fluid_TestUtilities_TestRegSquare2Derivatives.fmu > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestUtilities/TestRegSquare2Derivatives/TestRegSquare2Derivatives.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_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: 14.60011396300979]