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.0008063/0.0008063, allocations: 72.56 kB / 19.92 MB, free: 4.621 MB / 18.57 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.0008034/0.0008034, allocations: 173.9 kB / 23.21 MB, free: 1.336 MB / 18.57 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 0.8015/0.8015, allocations: 158.6 MB / 185 MB, free: 3.039 MB / 170.7 MB " [Timeout remaining time 179] 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.1265/0.1265, allocations: 32.37 MB / 269.6 MB, free: 14.97 MB / 266.7 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: Performance of FrontEnd - loaded program: time 1.082e-06/1.082e-06, allocations: 0 / 406.8 MB, free: 2.27 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.428e-05/1.536e-05, allocations: 2.281 kB / 406.8 MB, free: 2.266 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives): time 0.0009376/0.000953, allocations: 0.5451 MB / 407.4 MB, free: 1.727 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004422/0.001395, allocations: 348.5 kB / 407.7 MB, free: 1.387 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.188e-05/0.001417, allocations: 0 / 407.7 MB, free: 1.387 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 1.452e-05/0.001432, allocations: 3.938 kB / 407.7 MB, free: 1.383 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 2.674e-05/0.001458, allocations: 0 / 407.7 MB, free: 1.383 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003189/0.001777, allocations: 111.5 kB / 407.8 MB, free: 1.273 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 4.653e-05/0.001824, allocations: 23.92 kB / 407.8 MB, free: 1.25 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.478e-05/0.001859, allocations: 0 / 407.8 MB, free: 1.25 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.096e-05/0.001889, allocations: 19.97 kB / 407.9 MB, free: 1.23 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.209e-05/0.001932, allocations: 7.984 kB / 407.9 MB, free: 1.223 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 1.352e-05/0.001945, allocations: 4 kB / 407.9 MB, free: 1.219 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001513/0.002096, allocations: 115.8 kB / 408 MB, free: 1.105 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 1.232e-05/0.002109, allocations: 7.938 kB / 408 MB, free: 1.098 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 1.88e-05/0.002127, allocations: 15.97 kB / 408 MB, free: 1.082 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001414/0.002269, allocations: 119.6 kB / 408.1 MB, free: 0.9648 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.804e-06/0.002271, allocations: 4 kB / 408.1 MB, free: 0.9609 MB / 378.7 MB Notification: Performance of FrontEnd: time 7.41e-07/0.002271, allocations: 0 / 408.1 MB, free: 0.9609 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.407e-06/0.002275, allocations: 0 / 408.1 MB, free: 0.9609 MB / 378.7 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.0002866/0.002561, allocations: 298 kB / 408.4 MB, free: 0.6367 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.445e-05/0.002596, allocations: 8.031 kB / 408.4 MB, free: 0.6289 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.42e-05/0.00262, allocations: 30.75 kB / 408.5 MB, free: 0.5898 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.056e-05/0.002641, allocations: 8.875 kB / 408.5 MB, free: 0.582 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.591e-05/0.002707, allocations: 113.7 kB / 408.6 MB, free: 456 kB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.001e-05/0.002717, allocations: 4.375 kB / 408.6 MB, free: 452 kB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.691e-05/0.002734, allocations: 8.375 kB / 408.6 MB, free: 444 kB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.182e-05/0.002825, allocations: 54.23 kB / 408.6 MB, free: 384 kB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.877e-06/0.002834, allocations: 192 / 408.6 MB, free: 384 kB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.044e-06/0.002841, allocations: 384 / 408.6 MB, free: 384 kB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.43e-06/0.002847, allocations: 8.125 kB / 408.6 MB, free: 376 kB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.952e-05/0.002896, allocations: 27.98 kB / 408.7 MB, free: 348 kB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001178/0.003014, allocations: 140.6 kB / 408.8 MB, free: 164 kB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001493/0.003163, allocations: 50.55 kB / 408.9 MB, free: 104 kB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.154e-05/0.003195, allocations: 24.86 kB / 408.9 MB, free: 76 kB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001404/0.003335, allocations: 31.95 kB / 408.9 MB, free: 44 kB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.6e-05/0.003351, allocations: 34.56 kB / 409 MB, free: 0 / 378.7 MB Notification: Performance of pre-optimization done (n=9): time 6.72e-07/0.003352, allocations: 288 / 409 MB, free: 0 / 378.7 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.01765/0.021, allocations: 2.583 MB / 411.5 MB, free: 13.38 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.008e-05/0.02103, allocations: 51.41 kB / 411.6 MB, free: 13.31 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.506e-05/0.02108, allocations: 105.8 kB / 411.7 MB, free: 13.2 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.48e-05/0.02111, allocations: 33.64 kB / 411.7 MB, free: 13.16 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.77e-05/0.02114, allocations: 84.14 kB / 411.8 MB, free: 13.07 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.677e-05/0.02119, allocations: 59.44 kB / 411.9 MB, free: 13.02 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.775e-05/0.02127, allocations: 61.69 kB / 411.9 MB, free: 12.95 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 7.353e-05/0.02134, allocations: 314.8 kB / 412.2 MB, free: 12.63 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002181/0.02156, allocations: 179.9 kB / 412.4 MB, free: 12.46 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002145/0.02178, allocations: 179.3 kB / 412.6 MB, free: 12.29 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005656/0.02234, allocations: 416.7 kB / 413 MB, free: 11.88 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.083e-06/0.02234, allocations: 3.938 kB / 413 MB, free: 11.87 MB / 394.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0005785/0.02292, allocations: 457.4 kB / 413.4 MB, free: 11.42 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.6e-05/0.02294, allocations: 8 kB / 413.4 MB, free: 11.41 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.819e-06/0.02294, allocations: 0 / 413.4 MB, free: 11.41 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.466e-05/0.02296, allocations: 4 kB / 413.4 MB, free: 11.41 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001707/0.02313, allocations: 67.88 kB / 413.5 MB, free: 11.34 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.163e-06/0.02314, allocations: 11.92 kB / 413.5 MB, free: 11.33 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.577e-05/0.02322, allocations: 19.97 kB / 413.5 MB, free: 11.31 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.153e-05/0.02324, allocations: 15.98 kB / 413.6 MB, free: 11.29 MB / 394.7 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 8e-05/0.02332, allocations: 129.7 kB / 413.7 MB, free: 11.16 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.23e-05/0.02335, allocations: 7.953 kB / 413.7 MB, free: 11.15 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007077/0.02405, allocations: 0.5365 MB / 414.2 MB, free: 10.61 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.204e-06/0.02406, allocations: 0 / 414.2 MB, free: 10.61 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/0.02406, allocations: 0 / 414.2 MB, free: 10.61 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.837e-06/0.02406, allocations: 3.984 kB / 414.2 MB, free: 10.61 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001133/0.0252, allocations: 0.8108 MB / 415 MB, free: 9.727 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.725e-06/0.0252, allocations: 256 / 415 MB, free: 9.727 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001261/0.02533, allocations: 71.89 kB / 415.1 MB, free: 9.656 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.659e-06/0.02533, allocations: 8.406 kB / 415.1 MB, free: 9.648 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.935e-05/0.02535, allocations: 15.98 kB / 415.1 MB, free: 9.633 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.414e-06/0.02535, allocations: 4 kB / 415.1 MB, free: 9.629 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.105e-06/0.02536, allocations: 4.188 kB / 415.1 MB, free: 9.625 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005033/0.02586, allocations: 456.5 kB / 415.6 MB, free: 9.145 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.906e-06/0.02587, allocations: 11.89 kB / 415.6 MB, free: 9.133 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.307e-05/0.02589, allocations: 15.92 kB / 415.6 MB, free: 9.117 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.869e-05/0.02598, allocations: 15.98 kB / 415.6 MB, free: 9.102 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.054e-05/0.026, allocations: 23.91 kB / 415.7 MB, free: 9.078 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.598e-05/0.02602, allocations: 12 kB / 415.7 MB, free: 9.066 MB / 394.7 MB Notification: Performance of sorting global known variables: time 2.35e-05/0.02604, allocations: 87.27 kB / 415.8 MB, free: 8.98 MB / 394.7 MB Notification: Performance of sort global known variables: time 8e-08/0.02604, allocations: 4 kB / 415.8 MB, free: 8.977 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0005836/0.02662, allocations: 311.6 kB / 416.1 MB, free: 8.672 MB / 394.7 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.001722/0.02835, allocations: 1.15 MB / 417.2 MB, free: 7.477 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0004587/0.0288, allocations: 323.7 kB / 417.5 MB, free: 7.16 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.02881, allocations: 7.938 kB / 417.5 MB, free: 7.152 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000183/0.02899, allocations: 135.8 kB / 417.7 MB, free: 7.02 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001968/0.02919, allocations: 17.55 kB / 417.7 MB, free: 7.004 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009514/0.03014, allocations: 499.8 kB / 418.2 MB, free: 6.453 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.994e-05/0.03019, allocations: 83.31 kB / 418.3 MB, free: 6.348 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0001638/0.03035, allocations: 96.97 kB / 418.4 MB, free: 6.25 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001333/0.03048, allocations: 60.45 kB / 418.4 MB, free: 6.191 MB / 394.7 MB Notification: Performance of SimCode: time 9.92e-07/0.03049, allocations: 0 / 418.4 MB, free: 6.191 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02395/0.05444, allocations: 19.9 MB / 438.3 MB, free: 2.172 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.36/6.414, allocations: 8 kB / 438.3 MB, free: 2.164 MB / 410.7 MB " [Timeout remaining time 654] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestUtilities/TestRegSquare2Derivatives/TestRegSquare2Derivatives.csv","/var/lib/jenkins/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: 8.244422668591142]