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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001267/0.001267, allocations: 114.1 kB / 17.13 MB, free: 5.914 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001361/0.001361, allocations: 191.7 kB / 20.07 MB, free: 2.984 MB / 14.72 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 1.468/1.468, allocations: 207.6 MB / 230.5 MB, free: 4.039 MB / 174.1 MB " [Timeout remaining time 178] 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.3478/0.3478, allocations: 44.23 MB / 326.5 MB, free: 6.824 MB / 254.1 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.003148/0.003148, allocations: 67.89 kB / 462.2 MB, free: 0.9492 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2668/0.27, allocations: 61 MB / 0.5109 GB, free: 13.32 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives): time 0.001636/0.2716, allocations: 0.5584 MB / 0.5114 GB, free: 12.9 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.000684/0.2723, allocations: 370.6 kB / 0.5118 GB, free: 12.62 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.141e-05/0.2723, allocations: 0 / 0.5118 GB, free: 12.62 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.661e-05/0.2723, allocations: 3.938 kB / 0.5118 GB, free: 12.62 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 4.324e-05/0.2724, allocations: 9.531 kB / 0.5118 GB, free: 12.61 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004066/0.2728, allocations: 108.1 kB / 0.5119 GB, free: 12.54 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 6.295e-05/0.2728, allocations: 24.16 kB / 0.5119 GB, free: 12.53 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.403e-05/0.2729, allocations: 2.156 kB / 0.5119 GB, free: 12.53 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.702e-05/0.2729, allocations: 17.7 kB / 0.5119 GB, free: 12.52 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.236e-05/0.273, allocations: 16.2 kB / 0.512 GB, free: 12.51 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.347e-05/0.273, allocations: 2.562 kB / 0.512 GB, free: 12.51 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001888/0.2732, allocations: 117.2 kB / 0.5121 GB, free: 12.45 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.276e-05/0.2732, allocations: 15.92 kB / 0.5121 GB, free: 12.43 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.01e-05/0.2732, allocations: 6.906 kB / 0.5121 GB, free: 12.43 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001434/0.2733, allocations: 97.64 kB / 0.5122 GB, free: 12.38 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.2733, allocations: 0 / 0.5122 GB, free: 12.38 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.442e-06/0.2733, allocations: 3.938 kB / 0.5122 GB, free: 12.37 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.269e-06/0.2733, allocations: 0 / 0.5122 GB, free: 12.37 MB / 382.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.0003598/0.2737, allocations: 370.8 kB / 0.5125 GB, free: 11.98 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.701e-05/0.2737, allocations: 15.3 kB / 0.5126 GB, free: 11.97 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.339e-05/0.2738, allocations: 34.69 kB / 0.5126 GB, free: 11.93 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.14e-05/0.2738, allocations: 6.094 kB / 0.5126 GB, free: 11.93 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.061e-05/0.2739, allocations: 174.5 kB / 0.5128 GB, free: 11.72 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.287e-05/0.2739, allocations: 5.531 kB / 0.5128 GB, free: 11.71 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.15e-05/0.2739, allocations: 4.094 kB / 0.5128 GB, free: 11.71 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001205/0.274, allocations: 62.66 kB / 0.5128 GB, free: 11.66 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.3e-05/0.2741, allocations: 4.875 kB / 0.5128 GB, free: 11.66 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.546e-06/0.2741, allocations: 3.938 kB / 0.5128 GB, free: 11.65 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.949e-06/0.2741, allocations: 1.062 kB / 0.5128 GB, free: 11.65 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.546e-05/0.2741, allocations: 28.83 kB / 0.5129 GB, free: 11.64 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001339/0.2743, allocations: 166.8 kB / 0.513 GB, free: 11.44 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001937/0.2745, allocations: 51.39 kB / 0.5131 GB, free: 11.4 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.301e-05/0.2745, allocations: 30.91 kB / 0.5131 GB, free: 11.38 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000221/0.2747, allocations: 101.7 kB / 0.5132 GB, free: 11.28 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.8e-05/0.2747, allocations: 31.75 kB / 0.5132 GB, free: 11.24 MB / 382.1 MB Notification: Performance of pre-optimization done (n=9): time 1.102e-06/0.2747, allocations: 4 kB / 0.5132 GB, free: 11.23 MB / 382.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.04144/0.3162, allocations: 2.579 MB / 0.5158 GB, free: 9.832 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.07e-05/0.3162, allocations: 55.39 kB / 0.5158 GB, free: 9.766 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.902e-05/0.3163, allocations: 101.9 kB / 0.5159 GB, free: 9.656 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.773e-05/0.3163, allocations: 29.7 kB / 0.5159 GB, free: 9.621 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.766e-05/0.3163, allocations: 80.14 kB / 0.516 GB, free: 9.539 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.088e-05/0.3164, allocations: 71.41 kB / 0.5161 GB, free: 9.469 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.875e-05/0.3165, allocations: 57.69 kB / 0.5161 GB, free: 9.406 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.293e-05/0.3165, allocations: 326.8 kB / 0.5164 GB, free: 9.078 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003031/0.3168, allocations: 172.2 kB / 0.5166 GB, free: 8.91 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002881/0.3171, allocations: 179.8 kB / 0.5168 GB, free: 8.734 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008297/0.318, allocations: 419.6 kB / 0.5172 GB, free: 8.324 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.033e-06/0.318, allocations: 7.922 kB / 0.5172 GB, free: 8.316 MB / 382.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.00085/0.3188, allocations: 457.4 kB / 0.5176 GB, free: 7.863 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.688e-05/0.3188, allocations: 8 kB / 0.5176 GB, free: 7.855 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.861e-06/0.3188, allocations: 0 / 0.5176 GB, free: 7.855 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.604e-05/0.3188, allocations: 0 / 0.5176 GB, free: 7.855 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003529/0.3192, allocations: 67.94 kB / 0.5177 GB, free: 7.789 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.271e-06/0.3192, allocations: 0 / 0.5177 GB, free: 7.789 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001991/0.3194, allocations: 23.92 kB / 0.5177 GB, free: 7.766 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.897e-05/0.3194, allocations: 19.98 kB / 0.5177 GB, free: 7.746 MB / 382.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 9.216e-05/0.3195, allocations: 121.8 kB / 0.5179 GB, free: 7.617 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.639e-05/0.3196, allocations: 7.953 kB / 0.5179 GB, free: 7.609 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001029/0.3206, allocations: 0.5393 MB / 0.5184 GB, free: 7.062 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.651e-06/0.3206, allocations: 4 kB / 0.5184 GB, free: 7.059 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.949e-06/0.3206, allocations: 4 kB / 0.5184 GB, free: 7.055 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.556e-06/0.3206, allocations: 0 / 0.5184 GB, free: 7.055 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001813/0.3224, allocations: 0.8779 MB / 0.5193 GB, free: 6.102 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.615e-06/0.3224, allocations: 8.031 kB / 0.5193 GB, free: 6.094 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002535/0.3227, allocations: 67.88 kB / 0.5193 GB, free: 6.027 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.2e-06/0.3227, allocations: 4 kB / 0.5193 GB, free: 6.023 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.722e-05/0.3227, allocations: 19.98 kB / 0.5194 GB, free: 6.004 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.987e-06/0.3227, allocations: 4 kB / 0.5194 GB, free: 6 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.884e-06/0.3227, allocations: 0 / 0.5194 GB, free: 6 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007383/0.3234, allocations: 464.8 kB / 0.5198 GB, free: 5.512 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.435e-05/0.3235, allocations: 85.06 kB / 0.5199 GB, free: 5.41 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.535e-05/0.3235, allocations: 8 kB / 0.5199 GB, free: 5.402 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001953/0.3237, allocations: 19.97 kB / 0.5199 GB, free: 5.383 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.154e-05/0.3237, allocations: 15.98 kB / 0.5199 GB, free: 5.367 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.327e-05/0.3237, allocations: 19.92 kB / 0.5199 GB, free: 5.348 MB / 382.1 MB Notification: Performance of sorting global known variables: time 2.962e-05/0.3238, allocations: 87.28 kB / 0.52 GB, free: 5.262 MB / 382.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3238, allocations: 0 / 0.52 GB, free: 5.262 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000819/0.3246, allocations: 323.5 kB / 0.5203 GB, free: 4.945 MB / 382.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.001954/0.3266, allocations: 1.13 MB / 0.5214 GB, free: 3.773 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0006548/0.3272, allocations: 327.7 kB / 0.5217 GB, free: 3.453 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/0.3272, allocations: 0 / 0.5217 GB, free: 3.453 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002724/0.3275, allocations: 152.2 kB / 0.5219 GB, free: 3.305 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002709/0.3278, allocations: 8 kB / 0.5219 GB, free: 3.297 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001536/0.3293, allocations: 0.4884 MB / 0.5224 GB, free: 2.75 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001811/0.3295, allocations: 0.6926 MB / 0.5231 GB, free: 2.027 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002616/0.3297, allocations: 96.88 kB / 0.5231 GB, free: 1.926 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001717/0.3299, allocations: 67.33 kB / 0.5232 GB, free: 1.859 MB / 382.1 MB Notification: Performance of SimCode: time 8.02e-07/0.3299, allocations: 0 / 0.5232 GB, free: 1.859 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04898/0.3789, allocations: 18.98 MB / 0.5417 GB, free: 14.8 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.927/8.306, allocations: 11.92 kB / 0.5418 GB, free: 14.79 MB / 414.1 MB " [Timeout remaining time 652] (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/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestUtilities/TestRegSquare2Derivatives/TestRegSquare2Derivatives.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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: 11.192784349899739]