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.001723/0.001723, allocations: 97.91 kB / 20.48 MB, free: 1.367 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.002029/0.002029, allocations: 213.9 kB / 23.78 MB, free: 4.523 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.398/1.398, allocations: 207.7 MB / 234.6 MB, free: 9.781 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.2166/0.2166, allocations: 44.27 MB / 331.1 MB, free: 9.309 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.002395/0.002395, allocations: 75.27 kB / 468.3 MB, free: 4.359 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1118/0.1142, allocations: 61.04 MB / 0.5169 GB, free: 7.195 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives): time 0.001846/0.1161, allocations: 0.5453 MB / 0.5174 GB, free: 6.648 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007147/0.1168, allocations: 327.2 kB / 0.5178 GB, free: 6.328 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.527e-05/0.1168, allocations: 0 / 0.5178 GB, free: 6.328 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.978e-05/0.1168, allocations: 7.938 kB / 0.5178 GB, free: 6.32 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 4.728e-05/0.1169, allocations: 3.938 kB / 0.5178 GB, free: 6.316 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004884/0.1174, allocations: 107.6 kB / 0.5179 GB, free: 6.211 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 6.76e-05/0.1174, allocations: 27.92 kB / 0.5179 GB, free: 6.184 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.181e-05/0.1175, allocations: 7.984 kB / 0.5179 GB, free: 6.176 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.734e-05/0.1175, allocations: 8 kB / 0.5179 GB, free: 6.168 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.293e-05/0.1176, allocations: 23.84 kB / 0.5179 GB, free: 6.145 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.302e-05/0.1176, allocations: 0 / 0.5179 GB, free: 6.145 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002469/0.1178, allocations: 119.9 kB / 0.518 GB, free: 6.027 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.681e-05/0.1179, allocations: 3.984 kB / 0.518 GB, free: 6.023 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.532e-05/0.1179, allocations: 11.94 kB / 0.5181 GB, free: 6.012 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001935/0.1181, allocations: 95.69 kB / 0.5182 GB, free: 5.918 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.1181, allocations: 3.938 kB / 0.5182 GB, free: 5.914 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.1181, allocations: 4 kB / 0.5182 GB, free: 5.91 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.31e-06/0.1181, allocations: 0 / 0.5182 GB, free: 5.91 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.0004681/0.1186, allocations: 293.9 kB / 0.5184 GB, free: 5.59 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.306e-05/0.1186, allocations: 12.03 kB / 0.5185 GB, free: 5.578 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.545e-05/0.1186, allocations: 4.188 kB / 0.5185 GB, free: 5.574 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.422e-05/0.1187, allocations: 34.75 kB / 0.5185 GB, free: 5.531 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.388e-05/0.1187, allocations: 8.922 kB / 0.5185 GB, free: 5.523 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001144/0.1188, allocations: 114.5 kB / 0.5186 GB, free: 5.387 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.268e-05/0.1188, allocations: 8.375 kB / 0.5186 GB, free: 5.379 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.664e-05/0.1189, allocations: 4.375 kB / 0.5186 GB, free: 5.375 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000139/0.119, allocations: 57.94 kB / 0.5187 GB, free: 5.312 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.414e-05/0.119, allocations: 7.984 kB / 0.5187 GB, free: 5.305 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.044e-05/0.119, allocations: 4 kB / 0.5187 GB, free: 5.301 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.444e-06/0.119, allocations: 0 / 0.5187 GB, free: 5.301 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.797e-05/0.1191, allocations: 27.92 kB / 0.5187 GB, free: 5.273 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000189/0.1193, allocations: 140.8 kB / 0.5188 GB, free: 5.094 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002405/0.1195, allocations: 50.59 kB / 0.5189 GB, free: 5.035 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.01e-05/0.1196, allocations: 24.84 kB / 0.5189 GB, free: 5.008 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002416/0.1198, allocations: 27.97 kB / 0.5189 GB, free: 4.98 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.104e-05/0.1198, allocations: 42.48 kB / 0.519 GB, free: 4.93 MB / 398.1 MB Notification: Performance of pre-optimization done (n=9): time 1.162e-06/0.1198, allocations: 0 / 0.519 GB, free: 4.93 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.04391/0.1638, allocations: 2.576 MB / 0.5215 GB, free: 2.316 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.339e-05/0.1638, allocations: 55.41 kB / 0.5216 GB, free: 2.25 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001032/0.1639, allocations: 98.14 kB / 0.5216 GB, free: 2.145 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.622e-05/0.164, allocations: 33.7 kB / 0.5217 GB, free: 2.105 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.609e-05/0.164, allocations: 84.12 kB / 0.5218 GB, free: 2.02 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001127/0.1641, allocations: 67.38 kB / 0.5218 GB, free: 1.953 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001454/0.1643, allocations: 53.69 kB / 0.5219 GB, free: 1.895 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001559/0.1644, allocations: 326.8 kB / 0.5222 GB, free: 1.566 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004077/0.1648, allocations: 171.9 kB / 0.5224 GB, free: 1.398 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003995/0.1652, allocations: 179.8 kB / 0.5225 GB, free: 1.223 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001076/0.1663, allocations: 423.2 kB / 0.5229 GB, free: 0.8086 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.853e-06/0.1663, allocations: 0 / 0.5229 GB, free: 0.8086 MB / 398.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.00111/0.1674, allocations: 457.4 kB / 0.5234 GB, free: 364 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.392e-05/0.1674, allocations: 4 kB / 0.5234 GB, free: 360 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.284e-06/0.1675, allocations: 4 kB / 0.5234 GB, free: 356 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.969e-05/0.1675, allocations: 7.984 kB / 0.5234 GB, free: 348 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004057/0.1679, allocations: 71.88 kB / 0.5234 GB, free: 276 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.877e-06/0.1679, allocations: 256 / 0.5234 GB, free: 276 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002184/0.1681, allocations: 15.98 kB / 0.5235 GB, free: 260 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.493e-05/0.1682, allocations: 23.98 kB / 0.5235 GB, free: 236 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.0001508/0.1683, allocations: 121.8 kB / 0.5236 GB, free: 104 kB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.061e-05/0.1684, allocations: 15.94 kB / 0.5236 GB, free: 88 kB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00139/0.1698, allocations: 0.5363 MB / 0.5241 GB, free: 15.54 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.313e-06/0.1698, allocations: 4 kB / 0.5241 GB, free: 15.54 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.622e-06/0.1698, allocations: 0 / 0.5241 GB, free: 15.54 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.699e-06/0.1698, allocations: 0 / 0.5241 GB, free: 15.54 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002357/0.1721, allocations: 0.8105 MB / 0.5249 GB, free: 14.66 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.221e-06/0.1721, allocations: 4 kB / 0.5249 GB, free: 14.66 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003012/0.1724, allocations: 67.88 kB / 0.525 GB, free: 14.59 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.383e-06/0.1724, allocations: 4 kB / 0.525 GB, free: 14.59 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.825e-05/0.1725, allocations: 19.98 kB / 0.525 GB, free: 14.57 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.795e-06/0.1725, allocations: 0 / 0.525 GB, free: 14.57 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.029e-06/0.1725, allocations: 4 kB / 0.525 GB, free: 14.56 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001021/0.1735, allocations: 472.3 kB / 0.5255 GB, free: 14.07 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.926e-05/0.1735, allocations: 7.953 kB / 0.5255 GB, free: 14.06 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.318e-05/0.1736, allocations: 8 kB / 0.5255 GB, free: 14.05 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002133/0.1738, allocations: 19.97 kB / 0.5255 GB, free: 14.03 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.771e-05/0.1738, allocations: 15.98 kB / 0.5255 GB, free: 14.02 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.68e-05/0.1739, allocations: 19.98 kB / 0.5255 GB, free: 14 MB / 414.1 MB Notification: Performance of sorting global known variables: time 5.251e-05/0.1739, allocations: 91.2 kB / 0.5256 GB, free: 13.91 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1739, allocations: 0 / 0.5256 GB, free: 13.91 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0009405/0.1749, allocations: 311.6 kB / 0.5259 GB, free: 13.6 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.003006/0.1779, allocations: 1.115 MB / 0.527 GB, free: 12.44 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0008811/0.1787, allocations: 331.7 kB / 0.5273 GB, free: 12.12 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.1787, allocations: 4 kB / 0.5273 GB, free: 12.11 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003816/0.1791, allocations: 147.7 kB / 0.5275 GB, free: 11.97 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002888/0.1794, allocations: 15.19 kB / 0.5275 GB, free: 11.96 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001935/0.1813, allocations: 0.496 MB / 0.528 GB, free: 11.41 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.817e-05/0.1814, allocations: 75.56 kB / 0.5281 GB, free: 11.31 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.000301/0.1817, allocations: 105.1 kB / 0.5282 GB, free: 11.2 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002221/0.182, allocations: 59.41 kB / 0.5282 GB, free: 11.14 MB / 414.1 MB Notification: Performance of SimCode: time 3.81e-07/0.182, allocations: 0 / 0.5282 GB, free: 11.14 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2487/0.4306, allocations: 19.39 MB / 0.5471 GB, free: 24.65 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.47/11.9, allocations: 12.02 kB / 0.5472 GB, free: 24.64 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.909735290100798]