Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerGrids_PowerGrids.Controls.Test.TestDiscontinuousDeadBand.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo", uses=false) Using package PowerGrids with version 1.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/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(PowerGrids.Controls.Test.TestDiscontinuousDeadBand,fileNamePrefix="PowerGrids_PowerGrids_Controls_Test_TestDiscontinuousDeadBand",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerGrids.Controls.Test.TestDiscontinuousDeadBand,fileNamePrefix="PowerGrids_PowerGrids_Controls_Test_TestDiscontinuousDeadBand",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.0008746/0.0008746, allocations: 91.06 kB / 15.36 MB, free: 0.7383 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.005316/0.005316, allocations: 172 kB / 16.26 MB, free: 6.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.215/1.215, allocations: 205.4 MB / 222.4 MB, free: 5.562 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.05614/0.05614, allocations: 14.16 MB / 284.9 MB, free: 7.035 MB / 238.1 MB 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.0004602/0.0004602, allocations: 12.56 kB / 346.9 MB, free: 19.45 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07943/0.0799, allocations: 51.12 MB / 398 MB, free: 300 kB / 286.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestDiscontinuousDeadBand): time 0.00111/0.08106, allocations: 418.5 kB / 398.4 MB, free: 15.88 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002598/0.08135, allocations: 55.8 kB / 398.4 MB, free: 15.83 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.161e-05/0.08144, allocations: 0 / 398.4 MB, free: 15.83 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 2.748e-05/0.08148, allocations: 3.938 kB / 398.4 MB, free: 15.82 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001153/0.08161, allocations: 3.984 kB / 398.4 MB, free: 15.82 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002016/0.08182, allocations: 12 kB / 398.5 MB, free: 15.81 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001068/0.08193, allocations: 27.92 kB / 398.5 MB, free: 15.78 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001004/0.08204, allocations: 4 kB / 398.5 MB, free: 15.78 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.668e-05/0.08209, allocations: 19.91 kB / 398.5 MB, free: 15.76 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.392e-05/0.08216, allocations: 4 kB / 398.5 MB, free: 15.75 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.587e-05/0.08218, allocations: 0 / 398.5 MB, free: 15.75 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.004e-05/0.0822, allocations: 4 kB / 398.5 MB, free: 15.75 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 2.293e-05/0.08222, allocations: 7.922 kB / 398.5 MB, free: 15.74 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 4.288e-05/0.08227, allocations: 29.7 kB / 398.6 MB, free: 15.71 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 7.297e-05/0.08235, allocations: 19.91 kB / 398.6 MB, free: 15.69 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.429e-06/0.08236, allocations: 4 kB / 398.6 MB, free: 15.68 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.08237, allocations: 0 / 398.6 MB, free: 15.68 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.107e-06/0.08238, allocations: 3.938 kB / 398.6 MB, free: 15.68 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.0004346/0.08282, allocations: 335.7 kB / 398.9 MB, free: 15.3 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.172e-05/0.08287, allocations: 8.031 kB / 398.9 MB, free: 15.29 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.296e-05/0.08293, allocations: 38.75 kB / 399 MB, free: 15.25 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.796e-05/0.08296, allocations: 4.938 kB / 399 MB, free: 15.24 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001578/0.08313, allocations: 172.3 kB / 399.1 MB, free: 15.04 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.245e-05/0.08315, allocations: 4.375 kB / 399.1 MB, free: 15.03 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.205e-06/0.08316, allocations: 384 / 399.1 MB, free: 15.03 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001839/0.08335, allocations: 76.81 kB / 399.2 MB, free: 14.94 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.957e-06/0.08337, allocations: 3.938 kB / 399.2 MB, free: 14.94 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.878e-06/0.08338, allocations: 0 / 399.2 MB, free: 14.94 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.508e-06/0.08339, allocations: 4 kB / 399.2 MB, free: 14.93 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000178/0.08358, allocations: 51.88 kB / 399.3 MB, free: 14.88 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003629/0.08395, allocations: 273.8 kB / 399.5 MB, free: 14.56 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001769/0.08414, allocations: 77.06 kB / 399.6 MB, free: 14.47 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.902e-05/0.08425, allocations: 45.69 kB / 399.7 MB, free: 14.42 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.86e-05/0.08427, allocations: 0 / 399.7 MB, free: 14.42 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.514e-05/0.0843, allocations: 34.56 kB / 399.7 MB, free: 14.38 MB / 302.1 MB Notification: Performance of pre-optimization done (n=3): time 9.12e-07/0.08431, allocations: 0 / 399.7 MB, free: 14.38 MB / 302.1 MB Notification: Performance of matching and sorting (n=3): time 0.0003711/0.08469, allocations: 109.5 kB / 399.8 MB, free: 14.26 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.23e-05/0.08475, allocations: 102.8 kB / 399.9 MB, free: 14.14 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.186e-05/0.08484, allocations: 102.1 kB / 400 MB, free: 14.03 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.392e-05/0.08486, allocations: 25.7 kB / 400 MB, free: 14 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.725e-05/0.0849, allocations: 84.14 kB / 400.1 MB, free: 13.91 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.759e-05/0.08492, allocations: 7.891 kB / 400.1 MB, free: 13.9 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.309e-05/0.08495, allocations: 13.72 kB / 400.1 MB, free: 13.88 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001053/0.08506, allocations: 310.8 kB / 400.4 MB, free: 13.57 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.59e-05/0.08515, allocations: 19.98 kB / 400.4 MB, free: 13.55 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.168e-05/0.08525, allocations: 46.55 kB / 400.5 MB, free: 13.5 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001704/0.08543, allocations: 57.66 kB / 400.5 MB, free: 13.43 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.01e-06/0.08544, allocations: 3.938 kB / 400.5 MB, free: 13.43 MB / 302.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002215/0.08567, allocations: 85.59 kB / 400.6 MB, free: 13.34 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.069e-05/0.08573, allocations: 97.92 kB / 400.7 MB, free: 13.23 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.618e-06/0.08574, allocations: 0 / 400.7 MB, free: 13.23 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.452e-05/0.08576, allocations: 4 kB / 400.7 MB, free: 13.23 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.467e-05/0.08585, allocations: 11.98 kB / 400.7 MB, free: 13.22 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.059e-06/0.08586, allocations: 0 / 400.7 MB, free: 13.22 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.478e-05/0.08592, allocations: 12 kB / 400.8 MB, free: 13.21 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.25e-06/0.08593, allocations: 0 / 400.8 MB, free: 13.21 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.601e-06/0.08595, allocations: 7.938 kB / 400.8 MB, free: 13.2 MB / 302.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 8.919e-05/0.08604, allocations: 27.92 kB / 400.8 MB, free: 13.17 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.162e-06/0.08605, allocations: 0 / 400.8 MB, free: 13.17 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.593e-06/0.08606, allocations: 3.938 kB / 400.8 MB, free: 13.17 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.226e-05/0.0861, allocations: 7.984 kB / 400.8 MB, free: 13.16 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.116e-06/0.08611, allocations: 4 kB / 400.8 MB, free: 13.16 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.407e-05/0.08615, allocations: 7.844 kB / 400.8 MB, free: 13.15 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.979e-06/0.08616, allocations: 12.06 kB / 400.8 MB, free: 13.14 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (3): * Single equations (assignments): 3 * 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 8.26e-05/0.08625, allocations: 186.2 kB / 401 MB, free: 12.95 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.628e-05/0.08628, allocations: 7.938 kB / 401 MB, free: 12.94 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.891e-05/0.08632, allocations: 11.11 kB / 401 MB, free: 12.93 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.416e-06/0.08633, allocations: 0 / 401 MB, free: 12.93 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.496e-06/0.08633, allocations: 3.938 kB / 401 MB, free: 12.92 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.007e-06/0.08634, allocations: 4 kB / 401 MB, free: 12.92 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001387/0.08648, allocations: 153.7 kB / 401.2 MB, free: 12.72 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.116e-06/0.08649, allocations: 3.938 kB / 401.2 MB, free: 12.71 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.881e-05/0.08657, allocations: 23.92 kB / 401.2 MB, free: 12.69 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.683e-06/0.08658, allocations: 0 / 401.2 MB, free: 12.69 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.426e-06/0.08659, allocations: 4 kB / 401.2 MB, free: 12.69 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.242e-06/0.0866, allocations: 0 / 401.2 MB, free: 12.69 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.11e-07/0.0866, allocations: 0 / 401.2 MB, free: 12.69 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002421/0.08685, allocations: 180.4 kB / 401.4 MB, free: 12.49 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.971e-05/0.0869, allocations: 81.05 kB / 401.5 MB, free: 12.39 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.655e-05/0.08692, allocations: 7.984 kB / 401.5 MB, free: 12.39 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.563e-05/0.087, allocations: 4 kB / 401.5 MB, free: 12.38 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.982e-05/0.08705, allocations: 12.31 kB / 401.5 MB, free: 12.37 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.474e-06/0.08706, allocations: 4 kB / 401.5 MB, free: 12.37 MB / 302.1 MB Notification: Performance of sorting global known variables: time 3.236e-05/0.08709, allocations: 83.27 kB / 401.6 MB, free: 12.29 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.733e-06/0.0871, allocations: 0 / 401.6 MB, free: 12.29 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002525/0.08736, allocations: 11.94 kB / 401.6 MB, free: 12.27 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (3): * Single equations (assignments): 3 * 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.0004834/0.08784, allocations: 0.717 MB / 402.3 MB, free: 11.53 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002659/0.08812, allocations: 63.95 kB / 402.4 MB, free: 11.46 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.08813, allocations: 0 / 402.4 MB, free: 11.46 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 9.062e-05/0.08823, allocations: 27.97 kB / 402.4 MB, free: 11.44 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002032/0.08844, allocations: 4 kB / 402.4 MB, free: 11.43 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00134/0.08978, allocations: 1.285 MB / 403.7 MB, free: 10.05 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002211/0.09002, allocations: 0.677 MB / 404.4 MB, free: 9.352 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.04e-05/0.09006, allocations: 7.938 kB / 404.4 MB, free: 9.344 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.35e-05/0.09011, allocations: 19.36 kB / 404.4 MB, free: 9.324 MB / 302.1 MB Notification: Performance of SimCode: time 2.5e-07/0.09012, allocations: 4 kB / 404.4 MB, free: 9.32 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01049/0.1006, allocations: 1.157 MB / 405.6 MB, free: 8.238 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002065/0.1008, allocations: 196.5 kB / 405.7 MB, free: 7.984 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.544/1.644, allocations: 0 / 405.7 MB, free: 7.984 MB / 302.1 MB (rm -f PowerGrids_PowerGrids.Controls.Test.TestDiscontinuousDeadBand.pipe ; mkfifo PowerGrids_PowerGrids.Controls.Test.TestDiscontinuousDeadBand.pipe ; head -c 1048576 < PowerGrids_PowerGrids.Controls.Test.TestDiscontinuousDeadBand.pipe >> ../files/PowerGrids_PowerGrids.Controls.Test.TestDiscontinuousDeadBand.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerGrids_PowerGrids.Controls.Test.TestDiscontinuousDeadBand_res.mat --tempDir=temp_PowerGrids_PowerGrids_Controls_Test_TestDiscontinuousDeadBand_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 PowerGrids_PowerGrids_Controls_Test_TestDiscontinuousDeadBand.fmu > PowerGrids_PowerGrids.Controls.Test.TestDiscontinuousDeadBand.pipe 2>&1) diffSimulationResults("PowerGrids_PowerGrids.Controls.Test.TestDiscontinuousDeadBand_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerGrids/PowerGrids.Controls.Test.TestDiscontinuousDeadBand_res.mat","../files/PowerGrids_PowerGrids.Controls.Test.TestDiscontinuousDeadBand.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches