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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_ModelicaTest_Fluid_TestUtilities_TestRegSquare2Derivatives",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestUtilities_TestRegSquare2Derivatives",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001217/0.001217, allocations: 114.4 kB / 17.78 MB, free: 5.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00135/0.00135, allocations: 187.8 kB / 18.71 MB, free: 4.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.294/1.294, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.193/0.193, allocations: 44.18 MB / 336.7 MB, free: 2.672 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001226/0.001226, allocations: 63.89 kB / 470 MB, free: 13.69 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3516/0.3528, allocations: 60.83 MB / 0.5184 GB, free: 3.285 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives): time 0.00151/0.3544, allocations: 0.5308 MB / 0.5189 GB, free: 2.961 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005774/0.355, allocations: 368.9 kB / 0.5193 GB, free: 2.715 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.864e-05/0.355, allocations: 0 / 0.5193 GB, free: 2.715 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.759e-05/0.355, allocations: 3.938 kB / 0.5193 GB, free: 2.711 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 2.855e-05/0.3551, allocations: 0 / 0.5193 GB, free: 2.711 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004089/0.3555, allocations: 105.3 kB / 0.5194 GB, free: 2.668 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 6.048e-05/0.3556, allocations: 24.08 kB / 0.5194 GB, free: 2.66 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.712e-05/0.3556, allocations: 11.2 kB / 0.5194 GB, free: 2.652 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.233e-05/0.3556, allocations: 15 kB / 0.5194 GB, free: 2.645 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.542e-05/0.3557, allocations: 21.17 kB / 0.5195 GB, free: 2.633 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.354e-05/0.3557, allocations: 1.719 kB / 0.5195 GB, free: 2.633 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002151/0.3559, allocations: 113.4 kB / 0.5196 GB, free: 2.605 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.481e-05/0.356, allocations: 11.12 kB / 0.5196 GB, free: 2.598 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.471e-05/0.356, allocations: 13.5 kB / 0.5196 GB, free: 2.59 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001752/0.3562, allocations: 97.47 kB / 0.5197 GB, free: 2.559 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.098e-06/0.3562, allocations: 0 / 0.5197 GB, free: 2.559 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.3562, allocations: 0 / 0.5197 GB, free: 2.559 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.659e-06/0.3562, allocations: 5.062 kB / 0.5197 GB, free: 2.555 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.0003553/0.3566, allocations: 361.8 kB / 0.52 GB, free: 2.176 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.957e-05/0.3566, allocations: 9.188 kB / 0.52 GB, free: 2.176 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.486e-05/0.3566, allocations: 41.94 kB / 0.5201 GB, free: 2.129 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.856e-05/0.3567, allocations: 11.8 kB / 0.5201 GB, free: 2.121 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.847e-05/0.3567, allocations: 167 kB / 0.5203 GB, free: 1.922 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.247e-06/0.3568, allocations: 2.781 kB / 0.5203 GB, free: 1.922 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.507e-05/0.3568, allocations: 6.688 kB / 0.5203 GB, free: 1.918 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001145/0.3569, allocations: 53.2 kB / 0.5203 GB, free: 1.879 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.609e-05/0.3569, allocations: 13.03 kB / 0.5203 GB, free: 1.867 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.075e-05/0.357, allocations: 1.922 kB / 0.5203 GB, free: 1.867 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.639e-06/0.357, allocations: 1.375 kB / 0.5203 GB, free: 1.867 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.331e-05/0.357, allocations: 28.33 kB / 0.5204 GB, free: 1.859 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001276/0.3572, allocations: 177.1 kB / 0.5205 GB, free: 1.652 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001856/0.3574, allocations: 55.52 kB / 0.5206 GB, free: 1.621 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.534e-05/0.3574, allocations: 27.08 kB / 0.5206 GB, free: 1.605 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002329/0.3577, allocations: 108.3 kB / 0.5207 GB, free: 1.508 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.325e-05/0.3577, allocations: 32.8 kB / 0.5207 GB, free: 1.469 MB / 382.1 MB Notification: Performance of pre-optimization done (n=9): time 1.864e-06/0.3577, allocations: 0 / 0.5207 GB, free: 1.469 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.04237/0.4001, allocations: 2.575 MB / 0.5232 GB, free: 0.7891 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.159e-05/0.4001, allocations: 57.55 kB / 0.5233 GB, free: 0.7227 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.122e-05/0.4002, allocations: 102.6 kB / 0.5234 GB, free: 0.6211 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.805e-05/0.4002, allocations: 34.77 kB / 0.5234 GB, free: 0.582 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.31e-05/0.4003, allocations: 82.02 kB / 0.5235 GB, free: 0.5 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.572e-05/0.4003, allocations: 59.11 kB / 0.5236 GB, free: 464 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000122/0.4005, allocations: 60.06 kB / 0.5236 GB, free: 436 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.444e-05/0.4005, allocations: 323.8 kB / 0.5239 GB, free: 108 kB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000343/0.4009, allocations: 173.6 kB / 0.5241 GB, free: 44 kB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003757/0.4013, allocations: 178.7 kB / 0.5243 GB, free: 15.97 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009741/0.4022, allocations: 412.3 kB / 0.5247 GB, free: 15.8 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.863e-06/0.4023, allocations: 256 / 0.5247 GB, free: 15.8 MB / 398.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0009557/0.4032, allocations: 467.2 kB / 0.5251 GB, free: 15.57 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.516e-05/0.4032, allocations: 4.125 kB / 0.5251 GB, free: 15.57 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.675e-06/0.4033, allocations: 5.375 kB / 0.5251 GB, free: 15.56 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.8e-05/0.4033, allocations: 1.375 kB / 0.5251 GB, free: 15.56 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003756/0.4037, allocations: 74.81 kB / 0.5252 GB, free: 15.54 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.412e-06/0.4037, allocations: 1.375 kB / 0.5252 GB, free: 15.54 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002033/0.4039, allocations: 17.59 kB / 0.5252 GB, free: 15.53 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.52e-05/0.4039, allocations: 24.3 kB / 0.5252 GB, free: 15.52 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.000113/0.4041, allocations: 121.8 kB / 0.5254 GB, free: 15.39 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.016e-05/0.4041, allocations: 8.031 kB / 0.5254 GB, free: 15.39 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001268/0.4054, allocations: 0.5379 MB / 0.5259 GB, free: 15.09 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.749e-06/0.4054, allocations: 2.25 kB / 0.5259 GB, free: 15.09 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.378e-06/0.4054, allocations: 0 / 0.5259 GB, free: 15.09 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.737e-06/0.4054, allocations: 1.156 kB / 0.5259 GB, free: 15.09 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002051/0.4075, allocations: 0.8833 MB / 0.5267 GB, free: 14.43 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.12e-06/0.4075, allocations: 1.344 kB / 0.5268 GB, free: 14.43 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002883/0.4078, allocations: 65.69 kB / 0.5268 GB, free: 14.41 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.561e-06/0.4078, allocations: 3.031 kB / 0.5268 GB, free: 14.41 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.201e-05/0.4078, allocations: 14.81 kB / 0.5268 GB, free: 14.41 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.394e-06/0.4078, allocations: 11.52 kB / 0.5268 GB, free: 14.4 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.809e-06/0.4079, allocations: 5 kB / 0.5268 GB, free: 14.4 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008948/0.4088, allocations: 458.9 kB / 0.5273 GB, free: 14.09 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.482e-05/0.4088, allocations: 85.05 kB / 0.5274 GB, free: 14 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.886e-05/0.4089, allocations: 6.812 kB / 0.5274 GB, free: 13.99 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002199/0.4091, allocations: 23.56 kB / 0.5274 GB, free: 13.98 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.276e-05/0.4091, allocations: 22.83 kB / 0.5274 GB, free: 13.96 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.81e-05/0.4092, allocations: 17.41 kB / 0.5274 GB, free: 13.96 MB / 398.1 MB Notification: Performance of sorting global known variables: time 5.063e-05/0.4092, allocations: 90.67 kB / 0.5275 GB, free: 13.88 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4092, allocations: 1.188 kB / 0.5275 GB, free: 13.88 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001136/0.4104, allocations: 309.3 kB / 0.5278 GB, free: 13.85 MB / 398.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.002447/0.4128, allocations: 1.118 MB / 0.5289 GB, free: 12.96 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0008366/0.4137, allocations: 348.1 kB / 0.5292 GB, free: 12.8 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.537e-06/0.4137, allocations: 1.094 kB / 0.5292 GB, free: 12.8 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003396/0.414, allocations: 146.8 kB / 0.5294 GB, free: 12.74 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002881/0.4143, allocations: 18.7 kB / 0.5294 GB, free: 12.73 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001851/0.4162, allocations: 0.5014 MB / 0.5299 GB, free: 12.36 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002339/0.4165, allocations: 0.6939 MB / 0.5306 GB, free: 11.66 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002675/0.4167, allocations: 94.34 kB / 0.5307 GB, free: 11.61 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002071/0.4169, allocations: 63.67 kB / 0.5307 GB, free: 11.58 MB / 398.1 MB Notification: Performance of SimCode: time 1.082e-06/0.417, allocations: 0 / 0.5307 GB, free: 11.58 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0423/0.4593, allocations: 19.1 MB / 0.5494 GB, free: 12.06 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.319/7.779, allocations: 5.016 kB / 0.5494 GB, free: 12.05 MB / 414.1 MB (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 --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) 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) Reference file matches