Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerGrids_symb_jac_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: translateModel(PowerGrids.Controls.Test.TestDiscontinuousDeadBand,tolerance=1e-06,outputFormat="mat",numberOfIntervals=160,variableFilter="discontinuousDeadBand.smoothed|discontinuousDeadBand.u|discontinuousDeadBand.uMax|discontinuousDeadBand.uMin|discontinuousDeadBand.y|discontinuousDeadBandAnalyticSolution.y|inputSignal.y|time",fileNamePrefix="PowerGrids_symb_jac_PowerGrids.Controls.Test.TestDiscontinuousDeadBand") translateModel(PowerGrids.Controls.Test.TestDiscontinuousDeadBand,tolerance=1e-06,outputFormat="mat",numberOfIntervals=160,variableFilter="discontinuousDeadBand.smoothed|discontinuousDeadBand.u|discontinuousDeadBand.uMax|discontinuousDeadBand.uMin|discontinuousDeadBand.y|discontinuousDeadBandAnalyticSolution.y|inputSignal.y|time",fileNamePrefix="PowerGrids_symb_jac_PowerGrids.Controls.Test.TestDiscontinuousDeadBand") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001134/0.001134, allocations: 90.67 kB / 15.71 MB, free: 444 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001008/0.001008, allocations: 176.5 kB / 16.59 MB, free: 6.008 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.644/1.644, allocations: 205.4 MB / 222.8 MB, free: 5.629 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06227/0.06227, allocations: 14.16 MB / 285.2 MB, free: 7.137 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.0005581/0.0005581, allocations: 16 kB / 346.8 MB, free: 19.9 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1297/0.1302, allocations: 51.12 MB / 397.9 MB, free: 0.7383 MB / 286.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestDiscontinuousDeadBand): time 0.001062/0.1314, allocations: 411.1 kB / 398.3 MB, free: 344 kB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002306/0.1316, allocations: 59.83 kB / 398.4 MB, free: 284 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.549e-05/0.1317, allocations: 0 / 398.4 MB, free: 284 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 1.855e-05/0.1317, allocations: 3.984 kB / 398.4 MB, free: 280 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001012/0.1318, allocations: 0 / 398.4 MB, free: 280 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001556/0.132, allocations: 8 kB / 398.4 MB, free: 272 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 9.366e-05/0.1321, allocations: 23.92 kB / 398.4 MB, free: 248 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.895e-05/0.1322, allocations: 8 kB / 398.4 MB, free: 240 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.305e-05/0.1322, allocations: 7.922 kB / 398.4 MB, free: 232 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.933e-05/0.1323, allocations: 15.97 kB / 398.4 MB, free: 216 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.755e-05/0.1323, allocations: 0 / 398.4 MB, free: 216 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.052e-05/0.1323, allocations: 4 kB / 398.4 MB, free: 212 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 1.32e-05/0.1323, allocations: 3.938 kB / 398.4 MB, free: 208 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 4.004e-05/0.1324, allocations: 25.7 kB / 398.5 MB, free: 176 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 6.382e-05/0.1324, allocations: 15.98 kB / 398.5 MB, free: 160 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.731e-06/0.1325, allocations: 0 / 398.5 MB, free: 160 kB / 286.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.1325, allocations: 0 / 398.5 MB, free: 160 kB / 286.1 MB Notification: Performance of Transformations before backend: time 3.887e-06/0.1325, allocations: 4 kB / 398.5 MB, free: 156 kB / 286.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.000513/0.133, allocations: 335.5 kB / 398.8 MB, free: 15.78 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.792e-05/0.1331, allocations: 12.02 kB / 398.8 MB, free: 15.77 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.674e-05/0.1331, allocations: 0 / 398.8 MB, free: 15.77 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002144/0.1333, allocations: 171.1 kB / 399 MB, free: 15.56 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.639e-05/0.1334, allocations: 0 / 399 MB, free: 15.56 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.313e-05/0.1334, allocations: 4 kB / 399 MB, free: 15.55 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002404/0.1336, allocations: 80.14 kB / 399.1 MB, free: 15.46 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.018e-05/0.1336, allocations: 0 / 399.1 MB, free: 15.46 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.725e-05/0.1337, allocations: 8 kB / 399.1 MB, free: 15.45 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.743e-06/0.1337, allocations: 0 / 399.1 MB, free: 15.45 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001668/0.1338, allocations: 43.95 kB / 399.1 MB, free: 15.41 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004914/0.1343, allocations: 277.7 kB / 399.4 MB, free: 15.09 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002122/0.1346, allocations: 81.17 kB / 399.5 MB, free: 14.99 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.97e-05/0.1347, allocations: 37.7 kB / 399.5 MB, free: 14.95 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.96e-05/0.1347, allocations: 0 / 399.5 MB, free: 14.95 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.321e-05/0.1348, allocations: 46.48 kB / 399.6 MB, free: 14.89 MB / 302.1 MB Notification: Performance of pre-optimization done (n=3): time 9.42e-07/0.1348, allocations: 0 / 399.6 MB, free: 14.89 MB / 302.1 MB Notification: Performance of matching and sorting (n=3): time 0.0003966/0.1352, allocations: 97.66 kB / 399.6 MB, free: 14.79 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001011/0.1353, allocations: 114.7 kB / 399.8 MB, free: 14.65 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.75e-05/0.1354, allocations: 93.86 kB / 399.9 MB, free: 14.55 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.941e-05/0.1354, allocations: 25.7 kB / 399.9 MB, free: 14.52 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.427e-05/0.1355, allocations: 88.05 kB / 400 MB, free: 14.43 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.089e-05/0.1355, allocations: 8.156 kB / 400 MB, free: 14.42 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.589e-06/0.1355, allocations: 0 / 400 MB, free: 14.42 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001588/0.1357, allocations: 318.8 kB / 400.3 MB, free: 14.1 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.332e-05/0.1358, allocations: 19.98 kB / 400.3 MB, free: 14.08 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001034/0.1359, allocations: 42.56 kB / 400.3 MB, free: 14.03 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.61e-05/0.136, allocations: 23.97 kB / 400.4 MB, free: 14.01 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.136, allocations: 0 / 400.4 MB, free: 14.01 MB / 302.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001971/0.1362, allocations: 89.59 kB / 400.5 MB, free: 13.91 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.886e-05/0.1363, allocations: 93.86 kB / 400.5 MB, free: 13.81 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.043e-06/0.1363, allocations: 0 / 400.5 MB, free: 13.81 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.895e-05/0.1363, allocations: 0 / 400.5 MB, free: 13.81 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000106/0.1364, allocations: 20.05 kB / 400.6 MB, free: 13.79 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.094e-05/0.1365, allocations: 0 / 400.6 MB, free: 13.79 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.029e-05/0.1365, allocations: 15.98 kB / 400.6 MB, free: 13.78 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.177e-06/0.1366, allocations: 0 / 400.6 MB, free: 13.78 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.955e-06/0.1366, allocations: 4 kB / 400.6 MB, free: 13.77 MB / 302.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 9.472e-05/0.1367, allocations: 27.92 kB / 400.6 MB, free: 13.75 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.152e-06/0.1367, allocations: 0 / 400.6 MB, free: 13.75 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.546e-06/0.1367, allocations: 3.953 kB / 400.6 MB, free: 13.74 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.13e-05/0.1367, allocations: 8.062 kB / 400.6 MB, free: 13.73 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.463e-06/0.1367, allocations: 0 / 400.6 MB, free: 13.73 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.354e-05/0.1368, allocations: 7.984 kB / 400.6 MB, free: 13.73 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.589e-06/0.1368, allocations: 0 / 400.6 MB, free: 13.73 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001418/0.1369, allocations: 196.9 kB / 400.8 MB, free: 13.52 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.678e-05/0.137, allocations: 7.906 kB / 400.8 MB, free: 13.52 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.766e-05/0.137, allocations: 11.08 kB / 400.8 MB, free: 13.5 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.485e-06/0.137, allocations: 0 / 400.8 MB, free: 13.5 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/0.137, allocations: 4 kB / 400.8 MB, free: 13.5 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.206e-06/0.137, allocations: 0 / 400.8 MB, free: 13.5 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001788/0.1372, allocations: 165.6 kB / 401 MB, free: 13.29 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.22e-07/0.1372, allocations: 0 / 401 MB, free: 13.29 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.56e-05/0.1373, allocations: 11.98 kB / 401 MB, free: 13.28 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.717e-06/0.1373, allocations: 4 kB / 401 MB, free: 13.27 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.376e-06/0.1373, allocations: 3.938 kB / 401 MB, free: 13.27 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.216e-06/0.1373, allocations: 3.953 kB / 401 MB, free: 13.27 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.31e-07/0.1373, allocations: 0 / 401 MB, free: 13.27 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006923/0.138, allocations: 0.7444 MB / 401.8 MB, free: 12.46 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.656e-05/0.1381, allocations: 85.06 kB / 401.9 MB, free: 12.36 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.761e-05/0.1381, allocations: 0 / 401.9 MB, free: 12.36 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.741e-05/0.1382, allocations: 11.98 kB / 401.9 MB, free: 12.35 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.992e-05/0.1383, allocations: 4 kB / 401.9 MB, free: 12.34 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.681e-06/0.1383, allocations: 4 kB / 401.9 MB, free: 12.34 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.269e-05/0.1383, allocations: 91.58 kB / 402 MB, free: 12.25 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1384, allocations: 4 kB / 402 MB, free: 12.25 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004781/0.1388, allocations: 4 kB / 402 MB, free: 12.24 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001386/0.139, allocations: 99.19 kB / 402.1 MB, free: 12.14 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002683/0.1393, allocations: 64.08 kB / 402.1 MB, free: 12.07 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.437e-06/0.1393, allocations: 0 / 402.1 MB, free: 12.07 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 9.673e-05/0.1394, allocations: 27.92 kB / 402.2 MB, free: 12.05 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002439/0.1396, allocations: 11.61 kB / 402.2 MB, free: 12.04 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004134/0.14, allocations: 234.6 kB / 402.4 MB, free: 11.77 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002909/0.1403, allocations: 0.677 MB / 403.1 MB, free: 11.06 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.538e-05/0.1404, allocations: 8 kB / 403.1 MB, free: 11.05 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.632e-05/0.1404, allocations: 7.438 kB / 403.1 MB, free: 11.05 MB / 302.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1404, allocations: 0 / 403.1 MB, free: 11.05 MB / 302.1 MB Notification: Performance of Templates: time 0.002905/0.1433, allocations: 0.4906 MB / 403.6 MB, free: 10.56 MB / 302.1 MB make -j1 -f PowerGrids_symb_jac_PowerGrids.Controls.Test.TestDiscontinuousDeadBand.makefile (rm -f PowerGrids_symb_jac_PowerGrids.Controls.Test.TestDiscontinuousDeadBand.pipe ; mkfifo PowerGrids_symb_jac_PowerGrids.Controls.Test.TestDiscontinuousDeadBand.pipe ; head -c 1048576 < PowerGrids_symb_jac_PowerGrids.Controls.Test.TestDiscontinuousDeadBand.pipe >> ../files/PowerGrids_symb_jac_PowerGrids.Controls.Test.TestDiscontinuousDeadBand.sim & ./PowerGrids_symb_jac_PowerGrids.Controls.Test.TestDiscontinuousDeadBand -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerGrids_symb_jac_PowerGrids.Controls.Test.TestDiscontinuousDeadBand.pipe 2>&1) diffSimulationResults("PowerGrids_symb_jac_PowerGrids.Controls.Test.TestDiscontinuousDeadBand_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerGrids/PowerGrids.Controls.Test.TestDiscontinuousDeadBand_res.mat","../files/PowerGrids_symb_jac_PowerGrids.Controls.Test.TestDiscontinuousDeadBand.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches