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.001656/0.001656, allocations: 123.4 kB / 17.79 MB, free: 5.227 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.001883/0.001883, allocations: 208.3 kB / 20.75 MB, free: 2.273 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.47/1.47, allocations: 230.6 MB / 254.1 MB, free: 15.09 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.2251/0.2251, allocations: 46.92 MB / 357.1 MB, free: 10.3 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Fluid_TestUtilities_TestRegSquare2Derivatives",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002139/0.002139, allocations: 63.91 kB / 0.4909 GB, free: 7.965 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1191/0.1213, allocations: 66 MB / 0.5554 GB, free: 5.844 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives): time 0.001863/0.1231, allocations: 0.5418 MB / 0.5559 GB, free: 5.301 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007627/0.1239, allocations: 371.3 kB / 0.5562 GB, free: 4.938 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.003e-05/0.1239, allocations: 0 / 0.5562 GB, free: 4.938 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 2.137e-05/0.1239, allocations: 3.938 kB / 0.5562 GB, free: 4.934 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 3.233e-05/0.124, allocations: 3.938 kB / 0.5563 GB, free: 4.93 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004688/0.1244, allocations: 103.6 kB / 0.5564 GB, free: 4.828 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 6.884e-05/0.1245, allocations: 27.92 kB / 0.5564 GB, free: 4.801 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.566e-05/0.1246, allocations: 8 kB / 0.5564 GB, free: 4.793 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.761e-05/0.1246, allocations: 15.91 kB / 0.5564 GB, free: 4.777 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.011e-05/0.1246, allocations: 15.92 kB / 0.5564 GB, free: 4.762 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 1.332e-05/0.1247, allocations: 4 kB / 0.5564 GB, free: 4.758 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002396/0.1249, allocations: 111.9 kB / 0.5565 GB, free: 4.648 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 2.678e-05/0.1249, allocations: 11.97 kB / 0.5565 GB, free: 4.637 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 3.661e-05/0.125, allocations: 15.88 kB / 0.5566 GB, free: 4.621 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002016/0.1252, allocations: 99.67 kB / 0.5566 GB, free: 4.523 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.1252, allocations: 0 / 0.5566 GB, free: 4.523 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.1252, allocations: 0 / 0.5566 GB, free: 4.523 MB / 414.1 MB Notification: Performance of Transformations before backend: time 5.14e-06/0.1252, allocations: 0 / 0.5566 GB, free: 4.523 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.0005336/0.1257, allocations: 371.1 kB / 0.557 GB, free: 4.109 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.169e-05/0.1257, allocations: 8.031 kB / 0.557 GB, free: 4.102 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.429e-05/0.1258, allocations: 34.75 kB / 0.557 GB, free: 4.059 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.797e-05/0.1258, allocations: 4.938 kB / 0.557 GB, free: 4.055 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001669/0.126, allocations: 176.3 kB / 0.5572 GB, free: 3.844 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.383e-05/0.126, allocations: 4.375 kB / 0.5572 GB, free: 3.84 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.302e-05/0.126, allocations: 8.312 kB / 0.5572 GB, free: 3.832 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001337/0.1262, allocations: 50.25 kB / 0.5573 GB, free: 3.777 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.867e-05/0.1262, allocations: 11.86 kB / 0.5573 GB, free: 3.766 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.086e-05/0.1262, allocations: 4 kB / 0.5573 GB, free: 3.762 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.813e-06/0.1262, allocations: 4 kB / 0.5573 GB, free: 3.758 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.536e-05/0.1263, allocations: 27.92 kB / 0.5573 GB, free: 3.73 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002925/0.1266, allocations: 169.6 kB / 0.5575 GB, free: 3.516 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002472/0.1268, allocations: 58.55 kB / 0.5575 GB, free: 3.449 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.107e-05/0.1269, allocations: 20.86 kB / 0.5576 GB, free: 3.426 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002812/0.1271, allocations: 105.3 kB / 0.5577 GB, free: 3.305 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.865e-05/0.1272, allocations: 34.5 kB / 0.5577 GB, free: 3.262 MB / 414.1 MB Notification: Performance of pre-optimization done (n=9): time 1.493e-06/0.1272, allocations: 0 / 0.5577 GB, free: 3.262 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.04373/0.1709, allocations: 2.579 MB / 0.5602 GB, free: 0.6484 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.709e-05/0.171, allocations: 63.41 kB / 0.5603 GB, free: 0.5742 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.653e-05/0.1711, allocations: 97.84 kB / 0.5604 GB, free: 480 kB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.165e-05/0.1711, allocations: 29.7 kB / 0.5604 GB, free: 444 kB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.933e-05/0.1711, allocations: 87.89 kB / 0.5605 GB, free: 352 kB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.212e-05/0.1712, allocations: 67.36 kB / 0.5605 GB, free: 284 kB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001424/0.1714, allocations: 61.69 kB / 0.5606 GB, free: 216 kB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001637/0.1715, allocations: 322.8 kB / 0.5609 GB, free: 15.89 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004349/0.172, allocations: 171.9 kB / 0.5611 GB, free: 15.72 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005135/0.1725, allocations: 177.3 kB / 0.5612 GB, free: 15.55 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001214/0.1737, allocations: 418.2 kB / 0.5616 GB, free: 15.14 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.834e-06/0.1737, allocations: 0 / 0.5616 GB, free: 15.14 MB / 430.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0012/0.1749, allocations: 462.9 kB / 0.5621 GB, free: 14.68 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.12e-05/0.1749, allocations: 7.984 kB / 0.5621 GB, free: 14.67 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.494e-06/0.1749, allocations: 4 kB / 0.5621 GB, free: 14.67 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.729e-05/0.175, allocations: 0 / 0.5621 GB, free: 14.67 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003958/0.1754, allocations: 71.94 kB / 0.5622 GB, free: 14.6 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.868e-06/0.1754, allocations: 4 kB / 0.5622 GB, free: 14.59 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002188/0.1756, allocations: 11.98 kB / 0.5622 GB, free: 14.58 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.23e-05/0.1756, allocations: 19.98 kB / 0.5622 GB, free: 14.56 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.0001451/0.1758, allocations: 125.7 kB / 0.5623 GB, free: 14.43 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.461e-05/0.1758, allocations: 7.953 kB / 0.5623 GB, free: 14.42 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001519/0.1773, allocations: 0.539 MB / 0.5628 GB, free: 13.88 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.939e-06/0.1773, allocations: 4 kB / 0.5629 GB, free: 13.87 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/0.1773, allocations: 0 / 0.5629 GB, free: 13.87 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.148e-06/0.1773, allocations: 0 / 0.5629 GB, free: 13.87 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002389/0.1797, allocations: 0.8815 MB / 0.5637 GB, free: 12.91 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.12e-06/0.1797, allocations: 0 / 0.5637 GB, free: 12.91 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000306/0.18, allocations: 72.12 kB / 0.5638 GB, free: 12.84 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.492e-06/0.1801, allocations: 0 / 0.5638 GB, free: 12.84 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.847e-05/0.1801, allocations: 19.98 kB / 0.5638 GB, free: 12.82 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.268e-06/0.1801, allocations: 8.188 kB / 0.5638 GB, free: 12.82 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.124e-05/0.1801, allocations: 4 kB / 0.5638 GB, free: 12.81 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001051/0.1812, allocations: 468.3 kB / 0.5643 GB, free: 12.32 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.423e-05/0.1812, allocations: 93 kB / 0.5643 GB, free: 12.21 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.728e-05/0.1813, allocations: 4 kB / 0.5644 GB, free: 12.21 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002244/0.1815, allocations: 19.97 kB / 0.5644 GB, free: 12.19 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.233e-05/0.1815, allocations: 19.92 kB / 0.5644 GB, free: 12.17 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.286e-05/0.1816, allocations: 15.98 kB / 0.5644 GB, free: 12.15 MB / 430.1 MB Notification: Performance of sorting global known variables: time 6.248e-05/0.1816, allocations: 83.28 kB / 0.5645 GB, free: 12.07 MB / 430.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1816, allocations: 0 / 0.5645 GB, free: 12.07 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0009643/0.1826, allocations: 327.8 kB / 0.5648 GB, free: 11.75 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.002899/0.1855, allocations: 1.115 MB / 0.5659 GB, free: 10.59 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0009678/0.1864, allocations: 328.9 kB / 0.5662 GB, free: 10.27 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.368e-06/0.1865, allocations: 0 / 0.5662 GB, free: 10.27 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003956/0.1868, allocations: 140.2 kB / 0.5663 GB, free: 10.13 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002932/0.1871, allocations: 12 kB / 0.5663 GB, free: 10.12 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001996/0.1891, allocations: 0.4944 MB / 0.5668 GB, free: 9.57 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003661/0.1895, allocations: 0.7003 MB / 0.5675 GB, free: 8.84 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0002956/0.1898, allocations: 92.88 kB / 0.5676 GB, free: 8.746 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002204/0.19, allocations: 63.39 kB / 0.5677 GB, free: 8.684 MB / 430.1 MB Notification: Performance of SimCode: time 6.51e-07/0.19, allocations: 3.938 kB / 0.5677 GB, free: 8.68 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04839/0.2384, allocations: 18.97 MB / 0.5862 GB, free: 5.832 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.026/8.265, allocations: 18.06 kB / 0.5862 GB, free: 5.82 MB / 446.1 MB " [Timeout remaining time 652] (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.4915818690788]