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.00128/0.00128, allocations: 108.3 kB / 19.7 MB, free: 1.918 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.001443/0.001443, allocations: 216.2 kB / 22.99 MB, free: 4.977 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.396/1.396, allocations: 207.7 MB / 233.8 MB, free: 9.793 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.2233/0.2233, allocations: 44.27 MB / 330.3 MB, free: 9.305 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestUtilities_TestRegSquare2Derivatives",fmuType="me",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.002456/0.002456, allocations: 78.22 kB / 467.5 MB, free: 4.355 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.118/0.1204, allocations: 61.05 MB / 0.5161 GB, free: 7.18 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives): time 0.002002/0.1224, allocations: 0.5336 MB / 0.5167 GB, free: 6.645 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007854/0.1232, allocations: 335.1 kB / 0.517 GB, free: 6.316 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.744e-05/0.1232, allocations: 0 / 0.517 GB, free: 6.316 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 2.083e-05/0.1233, allocations: 7.938 kB / 0.517 GB, free: 6.309 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 3.158e-05/0.1233, allocations: 3.938 kB / 0.517 GB, free: 6.305 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004669/0.1238, allocations: 107.6 kB / 0.5171 GB, free: 6.199 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 6.562e-05/0.1238, allocations: 23.97 kB / 0.5171 GB, free: 6.176 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.273e-05/0.1239, allocations: 4 kB / 0.5171 GB, free: 6.172 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.192e-05/0.1239, allocations: 15.92 kB / 0.5171 GB, free: 6.156 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.123e-05/0.124, allocations: 15.92 kB / 0.5172 GB, free: 6.141 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.806e-05/0.124, allocations: 4 kB / 0.5172 GB, free: 6.137 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002469/0.1243, allocations: 115.9 kB / 0.5173 GB, free: 6.023 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.923e-05/0.1243, allocations: 7.938 kB / 0.5173 GB, free: 6.016 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.954e-05/0.1243, allocations: 7.938 kB / 0.5173 GB, free: 6.008 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00024/0.1245, allocations: 99.67 kB / 0.5174 GB, free: 5.91 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.94e-06/0.1245, allocations: 0 / 0.5174 GB, free: 5.91 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.254e-06/0.1245, allocations: 0 / 0.5174 GB, free: 5.91 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.124e-05/0.1246, allocations: 0 / 0.5174 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.0005192/0.1251, allocations: 297.9 kB / 0.5177 GB, free: 5.586 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.868e-05/0.1251, allocations: 8.031 kB / 0.5177 GB, free: 5.578 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.225e-05/0.1252, allocations: 38.73 kB / 0.5177 GB, free: 5.531 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.384e-05/0.1252, allocations: 4.938 kB / 0.5177 GB, free: 5.527 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001349/0.1253, allocations: 122.4 kB / 0.5178 GB, free: 5.383 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.174e-05/0.1253, allocations: 8.375 kB / 0.5178 GB, free: 5.375 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.42e-05/0.1254, allocations: 4.312 kB / 0.5178 GB, free: 5.371 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001464/0.1255, allocations: 58.23 kB / 0.5179 GB, free: 5.309 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.455e-05/0.1255, allocations: 3.938 kB / 0.5179 GB, free: 5.305 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.378e-06/0.1255, allocations: 0 / 0.5179 GB, free: 5.305 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.629e-06/0.1255, allocations: 0 / 0.5179 GB, free: 5.305 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.862e-05/0.1256, allocations: 31.92 kB / 0.5179 GB, free: 5.273 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002198/0.1258, allocations: 138.5 kB / 0.5181 GB, free: 5.098 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002381/0.1261, allocations: 54.55 kB / 0.5181 GB, free: 5.035 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.941e-05/0.1261, allocations: 29.12 kB / 0.5181 GB, free: 5.004 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002444/0.1264, allocations: 31.89 kB / 0.5182 GB, free: 4.973 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.93e-05/0.1264, allocations: 30.56 kB / 0.5182 GB, free: 4.934 MB / 398.1 MB Notification: Performance of pre-optimization done (n=9): time 1.492e-06/0.1264, allocations: 0 / 0.5182 GB, free: 4.934 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.04206/0.1685, allocations: 2.584 MB / 0.5207 GB, free: 2.312 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.073e-05/0.1685, allocations: 55.41 kB / 0.5208 GB, free: 2.246 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.906e-05/0.1686, allocations: 101.9 kB / 0.5209 GB, free: 2.137 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.896e-05/0.1687, allocations: 29.7 kB / 0.5209 GB, free: 2.102 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.521e-05/0.1687, allocations: 88.12 kB / 0.521 GB, free: 2.012 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.632e-05/0.1688, allocations: 63.44 kB / 0.5211 GB, free: 1.949 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001332/0.1689, allocations: 57.69 kB / 0.5211 GB, free: 1.887 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001582/0.1691, allocations: 326.8 kB / 0.5214 GB, free: 1.559 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004097/0.1695, allocations: 171.9 kB / 0.5216 GB, free: 1.391 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003927/0.1699, allocations: 175.9 kB / 0.5218 GB, free: 1.219 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001096/0.171, allocations: 420.1 kB / 0.5222 GB, free: 0.8086 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.784e-06/0.171, allocations: 0 / 0.5222 GB, free: 0.8086 MB / 398.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001096/0.1721, allocations: 461.3 kB / 0.5226 GB, free: 360 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2e-05/0.1721, allocations: 8 kB / 0.5226 GB, free: 352 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.514e-06/0.1721, allocations: 0 / 0.5226 GB, free: 352 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.694e-05/0.1721, allocations: 0 / 0.5226 GB, free: 352 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003986/0.1725, allocations: 71.94 kB / 0.5227 GB, free: 280 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.156e-06/0.1725, allocations: 256 / 0.5227 GB, free: 280 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002104/0.1727, allocations: 19.98 kB / 0.5227 GB, free: 260 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.347e-05/0.1728, allocations: 23.98 kB / 0.5227 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.0001479/0.1729, allocations: 125.7 kB / 0.5228 GB, free: 100 kB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.601e-05/0.173, allocations: 7.953 kB / 0.5228 GB, free: 92 kB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00141/0.1744, allocations: 0.533 MB / 0.5234 GB, free: 15.55 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.864e-06/0.1744, allocations: 4 kB / 0.5234 GB, free: 15.54 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.051e-06/0.1744, allocations: 4 kB / 0.5234 GB, free: 15.54 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.809e-06/0.1744, allocations: 3.938 kB / 0.5234 GB, free: 15.54 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002395/0.1768, allocations: 0.8027 MB / 0.5242 GB, free: 14.66 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.188e-06/0.1768, allocations: 0 / 0.5242 GB, free: 14.66 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002981/0.1771, allocations: 71.94 kB / 0.5242 GB, free: 14.59 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.939e-06/0.1771, allocations: 4.188 kB / 0.5242 GB, free: 14.59 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.62e-05/0.1772, allocations: 19.92 kB / 0.5242 GB, free: 14.57 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.524e-06/0.1772, allocations: 7.938 kB / 0.5243 GB, free: 14.56 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.773e-06/0.1772, allocations: 480 / 0.5243 GB, free: 14.56 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001024/0.1782, allocations: 470.7 kB / 0.5247 GB, free: 14.07 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.833e-05/0.1782, allocations: 11.95 kB / 0.5247 GB, free: 14.06 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.954e-05/0.1782, allocations: 8 kB / 0.5247 GB, free: 14.05 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002111/0.1785, allocations: 23.97 kB / 0.5247 GB, free: 14.03 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.894e-05/0.1785, allocations: 15.92 kB / 0.5248 GB, free: 14.01 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.122e-05/0.1785, allocations: 15.98 kB / 0.5248 GB, free: 14 MB / 414.1 MB Notification: Performance of sorting global known variables: time 5.201e-05/0.1786, allocations: 87.27 kB / 0.5249 GB, free: 13.91 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1786, allocations: 0 / 0.5249 GB, free: 13.91 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0008603/0.1795, allocations: 315.5 kB / 0.5252 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.002749/0.1822, allocations: 1.111 MB / 0.5262 GB, free: 12.45 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0008811/0.1831, allocations: 335.8 kB / 0.5266 GB, free: 12.12 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.627e-06/0.1831, allocations: 0 / 0.5266 GB, free: 12.12 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003549/0.1834, allocations: 147.8 kB / 0.5267 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.0002744/0.1837, allocations: 11.81 kB / 0.5267 GB, free: 11.96 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001822/0.1855, allocations: 0.4917 MB / 0.5272 GB, free: 11.41 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.812e-05/0.1856, allocations: 83.5 kB / 0.5273 GB, free: 11.31 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0003118/0.1859, allocations: 101.2 kB / 0.5274 GB, free: 11.21 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001986/0.1861, allocations: 59.39 kB / 0.5274 GB, free: 11.15 MB / 414.1 MB Notification: Performance of SimCode: time 9.92e-07/0.1861, allocations: 0 / 0.5274 GB, free: 11.15 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2417/0.4278, allocations: 19.74 MB / 0.5467 GB, free: 24.26 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.11/11.54, allocations: 2.953 kB / 0.5467 GB, free: 24.26 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.418439995031804]