Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.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.001447/0.001447, allocations: 112.2 kB / 21.22 MB, free: 0.7305 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.001422/0.001422, allocations: 212.2 kB / 24.53 MB, free: 4.07 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.416/1.416, allocations: 230.6 MB / 258.3 MB, free: 8.012 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2299/0.2299, allocations: 44.92 MB / 359.6 MB, free: 6.266 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.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_0_0_ModelicaTest_Fluid_TestUtilities_TestRegSquare2Derivatives",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestUtilities_TestRegSquare2Derivatives",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: ModelicaTest requested package Modelica of version 4.0.0. Modelica 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.003095/0.003095, allocations: 67.91 kB / 0.4938 GB, free: 10.72 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3108/0.3139, allocations: 65.47 MB / 0.5578 GB, free: 7.516 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives): time 0.001635/0.3156, allocations: 0.5418 MB / 0.5583 GB, free: 7.105 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006821/0.3163, allocations: 371.7 kB / 0.5587 GB, free: 6.824 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.296e-05/0.3163, allocations: 4 kB / 0.5587 GB, free: 6.82 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.59e-05/0.3163, allocations: 3.938 kB / 0.5587 GB, free: 6.816 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 4.097e-05/0.3163, allocations: 0 / 0.5587 GB, free: 6.816 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003699/0.3167, allocations: 111.6 kB / 0.5588 GB, free: 6.75 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 6.135e-05/0.3168, allocations: 33.03 kB / 0.5588 GB, free: 6.719 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.864e-05/0.3168, allocations: 0 / 0.5588 GB, free: 6.719 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.41e-05/0.3168, allocations: 15.94 kB / 0.5588 GB, free: 6.703 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.76e-05/0.3169, allocations: 23.84 kB / 0.5588 GB, free: 6.68 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.368e-05/0.3169, allocations: 8 kB / 0.5589 GB, free: 6.672 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002184/0.3171, allocations: 115.9 kB / 0.559 GB, free: 6.559 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.633e-05/0.3171, allocations: 8 kB / 0.559 GB, free: 6.551 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.711e-05/0.3172, allocations: 19.86 kB / 0.559 GB, free: 6.531 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001825/0.3174, allocations: 85.86 kB / 0.5591 GB, free: 6.449 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.626e-06/0.3174, allocations: 4 kB / 0.5591 GB, free: 6.445 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.153e-06/0.3174, allocations: 0 / 0.5591 GB, free: 6.445 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.589e-06/0.3174, allocations: 0 / 0.5591 GB, free: 6.445 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.0004197/0.3178, allocations: 294 kB / 0.5594 GB, free: 6.125 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.62e-05/0.3178, allocations: 12.03 kB / 0.5594 GB, free: 6.113 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.387e-05/0.3178, allocations: 192 / 0.5594 GB, free: 6.113 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.92e-05/0.3179, allocations: 42.73 kB / 0.5594 GB, free: 6.062 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.697e-05/0.3179, allocations: 4.938 kB / 0.5594 GB, free: 6.059 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001136/0.318, allocations: 118.4 kB / 0.5595 GB, free: 5.918 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.277e-06/0.318, allocations: 384 / 0.5595 GB, free: 5.918 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.329e-05/0.3181, allocations: 8.375 kB / 0.5595 GB, free: 5.91 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001263/0.3182, allocations: 53.98 kB / 0.5596 GB, free: 5.852 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.322e-05/0.3182, allocations: 4 kB / 0.5596 GB, free: 5.848 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.05e-05/0.3182, allocations: 8 kB / 0.5596 GB, free: 5.84 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.238e-06/0.3182, allocations: 3.938 kB / 0.5596 GB, free: 5.836 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.61e-05/0.3183, allocations: 23.98 kB / 0.5596 GB, free: 5.812 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001945/0.3185, allocations: 140.7 kB / 0.5598 GB, free: 5.633 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002148/0.3187, allocations: 54.55 kB / 0.5598 GB, free: 5.57 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.786e-05/0.3187, allocations: 20.84 kB / 0.5598 GB, free: 5.547 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002421/0.319, allocations: 31.95 kB / 0.5599 GB, free: 5.516 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.136e-05/0.319, allocations: 42.5 kB / 0.5599 GB, free: 5.465 MB / 398.1 MB Notification: Performance of pre-optimization done (n=9): time 1.122e-06/0.319, allocations: 288 / 0.5599 GB, free: 5.465 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.04098/0.36, allocations: 2.566 MB / 0.5624 GB, free: 2.867 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.117e-05/0.36, allocations: 59.33 kB / 0.5625 GB, free: 2.797 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001143/0.3602, allocations: 101.9 kB / 0.5626 GB, free: 2.688 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.001e-05/0.3602, allocations: 25.7 kB / 0.5626 GB, free: 2.656 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.749e-05/0.3602, allocations: 87.89 kB / 0.5627 GB, free: 2.566 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.718e-05/0.3603, allocations: 75.41 kB / 0.5627 GB, free: 2.492 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001313/0.3605, allocations: 53.69 kB / 0.5628 GB, free: 2.434 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001503/0.3606, allocations: 326.8 kB / 0.5631 GB, free: 2.105 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004036/0.361, allocations: 171.9 kB / 0.5633 GB, free: 1.938 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000401/0.3614, allocations: 179.8 kB / 0.5634 GB, free: 1.762 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001054/0.3625, allocations: 410.9 kB / 0.5638 GB, free: 1.359 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.022e-06/0.3625, allocations: 4 kB / 0.5638 GB, free: 1.355 MB / 398.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001088/0.3636, allocations: 465.6 kB / 0.5643 GB, free: 0.8945 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.045e-05/0.3636, allocations: 11.94 kB / 0.5643 GB, free: 0.8828 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.893e-06/0.3636, allocations: 0 / 0.5643 GB, free: 0.8828 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.886e-05/0.3636, allocations: 4.469 kB / 0.5643 GB, free: 0.8789 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000387/0.364, allocations: 67.94 kB / 0.5644 GB, free: 0.8125 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.352e-06/0.364, allocations: 4 kB / 0.5644 GB, free: 0.8086 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002044/0.3642, allocations: 19.98 kB / 0.5644 GB, free: 0.7891 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.179e-05/0.3643, allocations: 15.98 kB / 0.5644 GB, free: 0.7734 MB / 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.0001513/0.3644, allocations: 133.6 kB / 0.5645 GB, free: 0.6328 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.181e-05/0.3644, allocations: 7.953 kB / 0.5645 GB, free: 0.625 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001293/0.3657, allocations: 0.5424 MB / 0.5651 GB, free: 72 kB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.253e-06/0.3657, allocations: 4 kB / 0.5651 GB, free: 68 kB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.559e-06/0.3658, allocations: 0 / 0.5651 GB, free: 68 kB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.368e-06/0.3658, allocations: 0 / 0.5651 GB, free: 68 kB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002202/0.368, allocations: 0.861 MB / 0.5659 GB, free: 15.14 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.46e-06/0.368, allocations: 4 kB / 0.5659 GB, free: 15.13 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002846/0.3682, allocations: 63.89 kB / 0.566 GB, free: 15.07 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.856e-06/0.3683, allocations: 7.984 kB / 0.566 GB, free: 15.06 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.985e-05/0.3683, allocations: 12 kB / 0.566 GB, free: 15.05 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.915e-06/0.3683, allocations: 0 / 0.566 GB, free: 15.05 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.611e-06/0.3683, allocations: 8.125 kB / 0.566 GB, free: 15.04 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009586/0.3693, allocations: 460.4 kB / 0.5664 GB, free: 14.56 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.797e-05/0.3693, allocations: 15.94 kB / 0.5665 GB, free: 14.54 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.878e-05/0.3693, allocations: 4 kB / 0.5665 GB, free: 14.54 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002026/0.3695, allocations: 19.98 kB / 0.5665 GB, free: 14.52 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.101e-05/0.3695, allocations: 19.91 kB / 0.5665 GB, free: 14.5 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.669e-05/0.3696, allocations: 23.98 kB / 0.5665 GB, free: 14.48 MB / 414.1 MB Notification: Performance of sorting global known variables: time 5.827e-05/0.3696, allocations: 87.22 kB / 0.5666 GB, free: 14.39 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3696, allocations: 0 / 0.5666 GB, free: 14.39 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0009133/0.3706, allocations: 323.5 kB / 0.5669 GB, free: 14.07 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.00253/0.3731, allocations: 1.113 MB / 0.568 GB, free: 12.92 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0008276/0.3739, allocations: 319.7 kB / 0.5683 GB, free: 12.61 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.534e-06/0.3739, allocations: 7.938 kB / 0.5683 GB, free: 12.6 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000355/0.3743, allocations: 135.8 kB / 0.5684 GB, free: 12.46 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000277/0.3745, allocations: 12 kB / 0.5685 GB, free: 12.45 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00178/0.3763, allocations: 0.515 MB / 0.569 GB, free: 11.88 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003728/0.3767, allocations: 0.6887 MB / 0.5696 GB, free: 11.16 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002834/0.377, allocations: 92.97 kB / 0.5697 GB, free: 11.07 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002073/0.3772, allocations: 59.39 kB / 0.5698 GB, free: 11.01 MB / 414.1 MB Notification: Performance of SimCode: time 7.01e-07/0.3772, allocations: 0 / 0.5698 GB, free: 11.01 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04215/0.4193, allocations: 19.27 MB / 0.5886 GB, free: 7.902 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.06/11.48, allocations: 10.67 kB / 0.5886 GB, free: 7.895 MB / 430.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestUtilities_TestRegSquare2Derivatives_fmu --startTime=0 --stopTime=2 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestUtilities_TestRegSquare2Derivatives.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestUtilities/TestRegSquare2Derivatives/TestRegSquare2Derivatives.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.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: 14.630382547038607]