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.001766/0.001766, allocations: 107.1 kB / 20.44 MB, free: 1.344 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.002208/0.002208, allocations: 206.3 kB / 23.73 MB, free: 4.523 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.374/1.374, allocations: 230.6 MB / 257.5 MB, free: 7.797 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.2151/0.2151, allocations: 46.96 MB / 360.9 MB, free: 4.055 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.001872/0.001872, allocations: 71.89 kB / 0.4961 GB, free: 7.746 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3028/0.3047, allocations: 66.04 MB / 0.5606 GB, free: 4.227 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives): time 0.001634/0.3063, allocations: 0.5332 MB / 0.5611 GB, free: 3.695 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006989/0.307, allocations: 338.8 kB / 0.5614 GB, free: 3.363 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.583e-05/0.3071, allocations: 4 kB / 0.5614 GB, free: 3.359 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.721e-05/0.3071, allocations: 0 / 0.5614 GB, free: 3.359 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 2.796e-05/0.3071, allocations: 7.938 kB / 0.5614 GB, free: 3.352 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004143/0.3075, allocations: 107.4 kB / 0.5615 GB, free: 3.25 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 6.38e-05/0.3076, allocations: 27.92 kB / 0.5616 GB, free: 3.223 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.918e-05/0.3076, allocations: 4 kB / 0.5616 GB, free: 3.219 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.167e-05/0.3076, allocations: 7.984 kB / 0.5616 GB, free: 3.211 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.267e-05/0.3077, allocations: 23.86 kB / 0.5616 GB, free: 3.188 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.243e-05/0.3077, allocations: 0 / 0.5616 GB, free: 3.188 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002327/0.308, allocations: 119.9 kB / 0.5617 GB, free: 3.07 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.611e-05/0.308, allocations: 11.98 kB / 0.5617 GB, free: 3.059 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.133e-05/0.308, allocations: 11.94 kB / 0.5617 GB, free: 3.047 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001756/0.3082, allocations: 97.64 kB / 0.5618 GB, free: 2.953 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.539e-06/0.3082, allocations: 3.938 kB / 0.5618 GB, free: 2.949 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.173e-06/0.3082, allocations: 0 / 0.5618 GB, free: 2.949 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.607e-06/0.3082, allocations: 0 / 0.5618 GB, free: 2.949 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.0004145/0.3086, allocations: 294 kB / 0.5621 GB, free: 2.629 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.784e-05/0.3086, allocations: 12.03 kB / 0.5621 GB, free: 2.617 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.595e-05/0.3087, allocations: 34.75 kB / 0.5622 GB, free: 2.574 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.433e-05/0.3087, allocations: 4.938 kB / 0.5622 GB, free: 2.57 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001101/0.3088, allocations: 114.4 kB / 0.5623 GB, free: 2.434 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.958e-06/0.3088, allocations: 4.375 kB / 0.5623 GB, free: 2.43 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.648e-05/0.3088, allocations: 8.375 kB / 0.5623 GB, free: 2.422 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001206/0.309, allocations: 54.17 kB / 0.5623 GB, free: 2.363 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.22e-05/0.309, allocations: 3.938 kB / 0.5623 GB, free: 2.359 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.478e-06/0.309, allocations: 4 kB / 0.5623 GB, free: 2.355 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.75e-06/0.309, allocations: 4 kB / 0.5623 GB, free: 2.352 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.147e-05/0.3091, allocations: 19.98 kB / 0.5624 GB, free: 2.332 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001716/0.3092, allocations: 136.8 kB / 0.5625 GB, free: 2.156 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002172/0.3094, allocations: 62.52 kB / 0.5626 GB, free: 2.086 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.923e-05/0.3095, allocations: 24.86 kB / 0.5626 GB, free: 2.059 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002271/0.3097, allocations: 27.95 kB / 0.5626 GB, free: 2.031 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.333e-05/0.3098, allocations: 38.56 kB / 0.5626 GB, free: 1.984 MB / 398.1 MB Notification: Performance of pre-optimization done (n=9): time 1.102e-06/0.3098, allocations: 0 / 0.5626 GB, free: 1.984 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.04512/0.3549, allocations: 2.574 MB / 0.5652 GB, free: 15.37 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.367e-05/0.3549, allocations: 51.41 kB / 0.5652 GB, free: 15.31 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.892e-05/0.355, allocations: 105.8 kB / 0.5653 GB, free: 15.2 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.66e-05/0.355, allocations: 26.17 kB / 0.5653 GB, free: 15.16 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.907e-05/0.3551, allocations: 87.89 kB / 0.5654 GB, free: 15.07 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.244e-05/0.3552, allocations: 71.34 kB / 0.5655 GB, free: 15.01 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001302/0.3553, allocations: 57.67 kB / 0.5655 GB, free: 14.95 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001397/0.3555, allocations: 322.8 kB / 0.5658 GB, free: 14.62 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003958/0.3559, allocations: 179.8 kB / 0.566 GB, free: 14.45 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000379/0.3562, allocations: 171.9 kB / 0.5662 GB, free: 14.28 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001045/0.3573, allocations: 423 kB / 0.5666 GB, free: 13.86 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.002e-06/0.3573, allocations: 0 / 0.5666 GB, free: 13.86 MB / 414.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001043/0.3583, allocations: 466.9 kB / 0.567 GB, free: 13.4 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.768e-05/0.3583, allocations: 4 kB / 0.567 GB, free: 13.4 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.991e-06/0.3583, allocations: 0 / 0.567 GB, free: 13.4 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.873e-05/0.3584, allocations: 0 / 0.567 GB, free: 13.4 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004031/0.3588, allocations: 71.88 kB / 0.5671 GB, free: 13.33 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.917e-06/0.3588, allocations: 3.984 kB / 0.5671 GB, free: 13.32 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002645/0.359, allocations: 19.98 kB / 0.5671 GB, free: 13.3 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.204e-05/0.3591, allocations: 19.98 kB / 0.5671 GB, free: 13.29 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.0001341/0.3592, allocations: 117.8 kB / 0.5673 GB, free: 13.16 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.191e-05/0.3593, allocations: 7.953 kB / 0.5673 GB, free: 13.15 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001278/0.3605, allocations: 0.5485 MB / 0.5678 GB, free: 12.59 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.777e-06/0.3605, allocations: 0 / 0.5678 GB, free: 12.59 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.639e-06/0.3605, allocations: 3.938 kB / 0.5678 GB, free: 12.59 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.951e-06/0.3606, allocations: 7.984 kB / 0.5678 GB, free: 12.58 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002187/0.3627, allocations: 0.8103 MB / 0.5686 GB, free: 11.7 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.555e-06/0.3627, allocations: 0 / 0.5686 GB, free: 11.7 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003015/0.363, allocations: 75.88 kB / 0.5687 GB, free: 11.62 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.366e-06/0.363, allocations: 0 / 0.5687 GB, free: 11.62 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.307e-05/0.3631, allocations: 16.44 kB / 0.5687 GB, free: 11.61 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.397e-06/0.3631, allocations: 11.98 kB / 0.5687 GB, free: 11.6 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.3631, allocations: 0 / 0.5687 GB, free: 11.6 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009243/0.364, allocations: 468.4 kB / 0.5691 GB, free: 11.11 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.706e-05/0.364, allocations: 11.95 kB / 0.5692 GB, free: 11.1 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.826e-05/0.3641, allocations: 8 kB / 0.5692 GB, free: 11.09 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002126/0.3643, allocations: 19.97 kB / 0.5692 GB, free: 11.07 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.77e-05/0.3643, allocations: 11.98 kB / 0.5692 GB, free: 11.06 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.624e-05/0.3643, allocations: 19.98 kB / 0.5692 GB, free: 11.04 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.36e-05/0.3644, allocations: 79.28 kB / 0.5693 GB, free: 10.96 MB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3644, allocations: 0 / 0.5693 GB, free: 10.96 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0009087/0.3653, allocations: 327.5 kB / 0.5696 GB, free: 10.64 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.002458/0.3678, allocations: 1.117 MB / 0.5707 GB, free: 9.48 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.000794/0.3686, allocations: 323.7 kB / 0.571 GB, free: 9.164 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.885e-06/0.3686, allocations: 0 / 0.571 GB, free: 9.164 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003665/0.3689, allocations: 135.8 kB / 0.5711 GB, free: 9.031 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002741/0.3692, allocations: 16 kB / 0.5711 GB, free: 9.016 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001707/0.3709, allocations: 0.5141 MB / 0.5716 GB, free: 8.445 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.161e-05/0.371, allocations: 83.56 kB / 0.5717 GB, free: 8.34 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.000278/0.3713, allocations: 88.98 kB / 0.5718 GB, free: 8.25 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002056/0.3715, allocations: 63.39 kB / 0.5719 GB, free: 8.188 MB / 414.1 MB Notification: Performance of SimCode: time 3.8e-07/0.3715, allocations: 0 / 0.5719 GB, free: 8.188 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04669/0.4182, allocations: 19.8 MB / 0.5912 GB, free: 4.512 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.47/10.89, allocations: 6.75 kB / 0.5912 GB, free: 4.508 MB / 430.1 MB " [Timeout remaining time 649] (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: 13.707320177985821]