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.001299/0.001299, allocations: 105.1 kB / 21.22 MB, free: 0.6289 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.001908/0.001908, allocations: 212.5 kB / 24.52 MB, free: 3.91 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.414/1.414, allocations: 230.6 MB / 258.3 MB, free: 7.742 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.2217/0.2217, allocations: 46.96 MB / 361.7 MB, free: 4.016 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Fluid_TestUtilities_TestRegSquare2Derivatives",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001951/0.001951, allocations: 67.89 kB / 0.4969 GB, free: 7.719 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2995/0.3014, allocations: 66.03 MB / 0.5613 GB, free: 4.25 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives): time 0.001714/0.3031, allocations: 0.5304 MB / 0.5619 GB, free: 3.719 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007275/0.3038, allocations: 334.9 kB / 0.5622 GB, free: 3.391 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.626e-05/0.3039, allocations: 0 / 0.5622 GB, free: 3.391 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.443e-05/0.3039, allocations: 7.938 kB / 0.5622 GB, free: 3.383 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 3.114e-05/0.3039, allocations: 3.938 kB / 0.5622 GB, free: 3.379 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000381/0.3043, allocations: 111.4 kB / 0.5623 GB, free: 3.273 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.589e-05/0.3044, allocations: 27.92 kB / 0.5623 GB, free: 3.246 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.685e-05/0.3044, allocations: 3.984 kB / 0.5623 GB, free: 3.242 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.866e-05/0.3044, allocations: 8 kB / 0.5623 GB, free: 3.234 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.995e-05/0.3045, allocations: 19.86 kB / 0.5624 GB, free: 3.215 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.247e-05/0.3045, allocations: 0 / 0.5624 GB, free: 3.215 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002191/0.3047, allocations: 123.9 kB / 0.5625 GB, free: 3.094 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.765e-05/0.3047, allocations: 11.98 kB / 0.5625 GB, free: 3.082 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.181e-05/0.3047, allocations: 11.94 kB / 0.5625 GB, free: 3.07 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001687/0.3049, allocations: 93.64 kB / 0.5626 GB, free: 2.98 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.007e-06/0.3049, allocations: 4 kB / 0.5626 GB, free: 2.977 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.3049, allocations: 0 / 0.5626 GB, free: 2.977 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.648e-06/0.3049, allocations: 0 / 0.5626 GB, free: 2.977 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.0004038/0.3053, allocations: 294 kB / 0.5629 GB, free: 2.656 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.41e-05/0.3053, allocations: 8.031 kB / 0.5629 GB, free: 2.648 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.444e-05/0.3054, allocations: 192 / 0.5629 GB, free: 2.648 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.383e-05/0.3054, allocations: 42.69 kB / 0.5629 GB, free: 2.598 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.252e-05/0.3054, allocations: 4.938 kB / 0.5629 GB, free: 2.594 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000102/0.3055, allocations: 118.4 kB / 0.563 GB, free: 2.453 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.156e-05/0.3055, allocations: 4.375 kB / 0.563 GB, free: 2.449 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.933e-05/0.3056, allocations: 4.375 kB / 0.563 GB, free: 2.445 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001179/0.3057, allocations: 54 kB / 0.5631 GB, free: 2.387 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.255e-05/0.3057, allocations: 3.984 kB / 0.5631 GB, free: 2.383 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.008e-05/0.3057, allocations: 4 kB / 0.5631 GB, free: 2.379 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.489e-06/0.3057, allocations: 7.875 kB / 0.5631 GB, free: 2.371 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.987e-05/0.3058, allocations: 23.98 kB / 0.5631 GB, free: 2.348 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001702/0.3059, allocations: 136.8 kB / 0.5633 GB, free: 2.172 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002021/0.3061, allocations: 54.56 kB / 0.5633 GB, free: 2.109 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.948e-05/0.3062, allocations: 29.06 kB / 0.5633 GB, free: 2.078 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002243/0.3064, allocations: 23.97 kB / 0.5634 GB, free: 2.055 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.287e-05/0.3064, allocations: 42.48 kB / 0.5634 GB, free: 2.004 MB / 398.1 MB Notification: Performance of pre-optimization done (n=9): time 1.092e-06/0.3064, allocations: 0 / 0.5634 GB, free: 2.004 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.04338/0.3498, allocations: 2.572 MB / 0.5659 GB, free: 15.39 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.786e-05/0.3499, allocations: 55.69 kB / 0.566 GB, free: 15.33 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.355e-05/0.35, allocations: 101.9 kB / 0.5661 GB, free: 15.22 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.745e-05/0.35, allocations: 25.7 kB / 0.5661 GB, free: 15.19 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.35e-05/0.3501, allocations: 99.81 kB / 0.5662 GB, free: 15.09 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.517e-05/0.3501, allocations: 67.34 kB / 0.5663 GB, free: 15.02 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001332/0.3503, allocations: 53.69 kB / 0.5663 GB, free: 14.96 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001381/0.3504, allocations: 326.8 kB / 0.5666 GB, free: 14.64 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003957/0.3508, allocations: 171.9 kB / 0.5668 GB, free: 14.47 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004/0.3512, allocations: 178.1 kB / 0.5669 GB, free: 14.3 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001038/0.3523, allocations: 416.6 kB / 0.5673 GB, free: 13.89 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.152e-06/0.3523, allocations: 0 / 0.5673 GB, free: 13.89 MB / 414.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001064/0.3533, allocations: 467.2 kB / 0.5678 GB, free: 13.43 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.892e-05/0.3533, allocations: 8 kB / 0.5678 GB, free: 13.42 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.42e-06/0.3533, allocations: 0 / 0.5678 GB, free: 13.42 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.384e-05/0.3534, allocations: 0 / 0.5678 GB, free: 13.42 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003866/0.3537, allocations: 67.94 kB / 0.5679 GB, free: 13.35 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.062e-06/0.3537, allocations: 0 / 0.5679 GB, free: 13.35 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002178/0.354, allocations: 23.98 kB / 0.5679 GB, free: 13.33 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.096e-05/0.354, allocations: 19.92 kB / 0.5679 GB, free: 13.31 MB / 414.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.0001336/0.3541, allocations: 121.7 kB / 0.568 GB, free: 13.18 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.581e-05/0.3542, allocations: 15.94 kB / 0.568 GB, free: 13.16 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001298/0.3555, allocations: 0.5395 MB / 0.5686 GB, free: 12.61 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.781e-06/0.3555, allocations: 8 kB / 0.5686 GB, free: 12.61 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.489e-06/0.3555, allocations: 0 / 0.5686 GB, free: 12.61 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.436e-06/0.3555, allocations: 3.938 kB / 0.5686 GB, free: 12.6 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002173/0.3577, allocations: 0.8181 MB / 0.5694 GB, free: 11.71 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.176e-06/0.3577, allocations: 0 / 0.5694 GB, free: 11.71 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002925/0.358, allocations: 68.38 kB / 0.5694 GB, free: 11.65 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.13e-06/0.358, allocations: 7.938 kB / 0.5694 GB, free: 11.64 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.67e-05/0.358, allocations: 19.98 kB / 0.5695 GB, free: 11.62 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.149e-06/0.358, allocations: 4 kB / 0.5695 GB, free: 11.62 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.843e-06/0.358, allocations: 0 / 0.5695 GB, free: 11.62 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009639/0.359, allocations: 467.9 kB / 0.5699 GB, free: 11.13 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.057e-05/0.359, allocations: 15.95 kB / 0.5699 GB, free: 11.11 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.525e-05/0.359, allocations: 0 / 0.5699 GB, free: 11.11 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000212/0.3592, allocations: 23.97 kB / 0.57 GB, free: 11.09 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.431e-05/0.3593, allocations: 11.98 kB / 0.57 GB, free: 11.08 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.627e-05/0.3593, allocations: 19.98 kB / 0.57 GB, free: 11.06 MB / 414.1 MB Notification: Performance of sorting global known variables: time 5.001e-05/0.3594, allocations: 87.2 kB / 0.5701 GB, free: 10.97 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3594, allocations: 0 / 0.5701 GB, free: 10.97 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0009677/0.3603, allocations: 315.6 kB / 0.5704 GB, free: 10.66 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.002769/0.3631, allocations: 1.119 MB / 0.5715 GB, free: 9.5 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0009212/0.364, allocations: 320.6 kB / 0.5718 GB, free: 9.188 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 6.141e-06/0.364, allocations: 7.938 kB / 0.5718 GB, free: 9.18 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003587/0.3644, allocations: 140.1 kB / 0.5719 GB, free: 9.043 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002965/0.3647, allocations: 19.94 kB / 0.5719 GB, free: 9.023 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001829/0.3665, allocations: 0.5031 MB / 0.5724 GB, free: 8.461 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001024/0.3666, allocations: 83.56 kB / 0.5725 GB, free: 8.355 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002867/0.3669, allocations: 92.97 kB / 0.5726 GB, free: 8.262 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002135/0.3671, allocations: 59.41 kB / 0.5726 GB, free: 8.203 MB / 414.1 MB Notification: Performance of SimCode: time 1.102e-06/0.3671, allocations: 0 / 0.5726 GB, free: 8.203 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04275/0.4099, allocations: 19.41 MB / 0.5916 GB, free: 4.949 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.09/11.5, allocations: 11.42 kB / 0.5916 GB, free: 4.941 MB / 430.1 MB " [Timeout remaining time 648] (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: 14.493503375095315]