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.001692/0.001692, allocations: 107.5 kB / 16.41 MB, free: 6.422 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.001729/0.001729, allocations: 188.2 kB / 17.35 MB, free: 5.695 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.53/1.53, allocations: 205.1 MB / 223.2 MB, free: 12.2 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06712/0.06712, allocations: 14.16 MB / 284.7 MB, free: 13.86 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.001389/0.001389, allocations: 71.59 kB / 397.1 MB, free: 43.91 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1128/0.1142, allocations: 50.14 MB / 447.3 MB, free: 13.69 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestDiscontinuousDeadBand): time 0.002158/0.1164, allocations: 0.6707 MB / 448 MB, free: 13.02 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003135/0.1168, allocations: 64.06 kB / 448 MB, free: 12.96 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.499e-05/0.1168, allocations: 4 kB / 448 MB, free: 12.95 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 3.163e-05/0.1169, allocations: 0 / 448 MB, free: 12.95 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 9.668e-05/0.117, allocations: 3.938 kB / 448 MB, free: 12.95 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001964/0.1172, allocations: 11.98 kB / 448 MB, free: 12.94 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001164/0.1173, allocations: 27.86 kB / 448.1 MB, free: 12.91 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001343/0.1175, allocations: 8 kB / 448.1 MB, free: 12.9 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.685e-05/0.1175, allocations: 15.97 kB / 448.1 MB, free: 12.89 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.219e-05/0.1176, allocations: 11.94 kB / 448.1 MB, free: 12.88 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.009e-05/0.1176, allocations: 0 / 448.1 MB, free: 12.88 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.427e-05/0.1176, allocations: 4 kB / 448.1 MB, free: 12.87 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.668e-05/0.1177, allocations: 7.984 kB / 448.1 MB, free: 12.86 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.296e-05/0.1177, allocations: 7.938 kB / 448.1 MB, free: 12.86 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001089/0.1178, allocations: 19.92 kB / 448.1 MB, free: 12.84 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.881e-06/0.1178, allocations: 0 / 448.1 MB, free: 12.84 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.524e-06/0.1178, allocations: 4 kB / 448.1 MB, free: 12.83 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.638e-06/0.1178, allocations: 0 / 448.1 MB, free: 12.83 MB / 334.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.0005396/0.1184, allocations: 335.5 kB / 448.5 MB, free: 12.45 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.586e-05/0.1184, allocations: 8.031 kB / 448.5 MB, free: 12.45 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.363e-05/0.1185, allocations: 0.9375 kB / 448.5 MB, free: 12.45 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002215/0.1187, allocations: 180.2 kB / 448.7 MB, free: 12.23 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.459e-05/0.1187, allocations: 384 / 448.7 MB, free: 12.23 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.774e-05/0.1188, allocations: 8.375 kB / 448.7 MB, free: 12.22 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002218/0.119, allocations: 76.81 kB / 448.7 MB, free: 12.13 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.069e-05/0.119, allocations: 192 / 448.7 MB, free: 12.13 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.487e-05/0.119, allocations: 3.938 kB / 448.7 MB, free: 12.13 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.462e-06/0.119, allocations: 0 / 448.7 MB, free: 12.13 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001745/0.1192, allocations: 39.89 kB / 448.8 MB, free: 12.09 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004465/0.1197, allocations: 265.9 kB / 449 MB, free: 11.78 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002039/0.1199, allocations: 69.06 kB / 449.1 MB, free: 11.69 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001022/0.12, allocations: 33.75 kB / 449.1 MB, free: 11.65 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.019e-05/0.12, allocations: 8 kB / 449.2 MB, free: 11.64 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.008e-05/0.1201, allocations: 30.56 kB / 449.2 MB, free: 11.61 MB / 334.1 MB Notification: Performance of pre-optimization done (n=3): time 1.132e-06/0.1201, allocations: 0 / 449.2 MB, free: 11.61 MB / 334.1 MB Notification: Performance of matching and sorting (n=3): time 0.0003965/0.1205, allocations: 89.58 kB / 449.3 MB, free: 11.51 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.393e-05/0.1206, allocations: 107.1 kB / 449.4 MB, free: 11.38 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001009/0.1207, allocations: 101.8 kB / 449.5 MB, free: 11.27 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.739e-05/0.1207, allocations: 29.7 kB / 449.5 MB, free: 11.24 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.958e-05/0.1208, allocations: 80.14 kB / 449.6 MB, free: 11.16 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.291e-05/0.1208, allocations: 15.73 kB / 449.6 MB, free: 11.14 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.636e-05/0.1208, allocations: 21.66 kB / 449.6 MB, free: 11.11 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001105/0.121, allocations: 310.8 kB / 449.9 MB, free: 10.8 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.451e-05/0.1211, allocations: 28.84 kB / 449.9 MB, free: 10.77 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.61e-05/0.1212, allocations: 42.48 kB / 450 MB, free: 10.72 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001588/0.1213, allocations: 41.69 kB / 450 MB, free: 10.67 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.1213, allocations: 4.031 kB / 450 MB, free: 10.67 MB / 334.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002219/0.1216, allocations: 77.53 kB / 450.1 MB, free: 10.59 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.632e-05/0.1216, allocations: 7.938 kB / 450.1 MB, free: 10.58 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.474e-06/0.1216, allocations: 4 kB / 450.1 MB, free: 10.57 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.297e-05/0.1216, allocations: 0 / 450.1 MB, free: 10.57 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.277e-05/0.1217, allocations: 8 kB / 450.1 MB, free: 10.57 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.384e-06/0.1217, allocations: 3.984 kB / 450.1 MB, free: 10.56 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.558e-05/0.1218, allocations: 8.062 kB / 450.1 MB, free: 10.55 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.764e-06/0.1218, allocations: 4 kB / 450.1 MB, free: 10.55 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 8e-05/0.1219, allocations: 92.12 kB / 450.2 MB, free: 10.46 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 4.722e-05/0.122, allocations: 18.58 kB / 450.3 MB, free: 10.43 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 9.013e-05/0.1221, allocations: 33.67 kB / 450.3 MB, free: 10.39 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 7.91e-07/0.1221, allocations: 4 kB / 450.3 MB, free: 10.39 MB / 334.1 MB Notification: Performance of matching and sorting (n=3) (initialization_lambda0): time 0.0001264/0.1222, allocations: 53.62 kB / 450.3 MB, free: 10.33 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.562e-06/0.1222, allocations: 4 kB / 450.3 MB, free: 10.32 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.766e-06/0.1222, allocations: 4 kB / 450.4 MB, free: 10.32 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.166e-06/0.1222, allocations: 0 / 450.4 MB, free: 10.32 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.717e-05/0.1223, allocations: 11.92 kB / 450.4 MB, free: 10.31 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.273e-06/0.1223, allocations: 0 / 450.4 MB, free: 10.31 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.207e-05/0.1223, allocations: 8 kB / 450.4 MB, free: 10.3 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.485e-06/0.1223, allocations: 4.062 kB / 450.4 MB, free: 10.3 MB / 334.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 0.0001097/0.1225, allocations: 188.1 kB / 450.6 MB, free: 10.11 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.634e-05/0.1225, allocations: 3.906 kB / 450.6 MB, free: 10.1 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.456e-05/0.1225, allocations: 19.06 kB / 450.6 MB, free: 10.08 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.764e-06/0.1225, allocations: 0 / 450.6 MB, free: 10.08 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.01e-06/0.1225, allocations: 0 / 450.6 MB, free: 10.08 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.777e-06/0.1225, allocations: 0 / 450.6 MB, free: 10.08 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001909/0.1227, allocations: 161.6 kB / 450.7 MB, free: 9.875 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.11e-07/0.1227, allocations: 0 / 450.7 MB, free: 9.875 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.239e-05/0.1228, allocations: 19.98 kB / 450.8 MB, free: 9.855 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.573e-06/0.1228, allocations: 0 / 450.8 MB, free: 9.855 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.003e-06/0.1228, allocations: 0 / 450.8 MB, free: 9.855 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.012e-06/0.1228, allocations: 0 / 450.8 MB, free: 9.855 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.166e-06/0.1228, allocations: 4 kB / 450.8 MB, free: 9.852 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008341/0.1237, allocations: 0.9617 MB / 451.7 MB, free: 8.824 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.722e-05/0.1237, allocations: 77.11 kB / 451.8 MB, free: 8.73 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.626e-05/0.1238, allocations: 7.984 kB / 451.8 MB, free: 8.723 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.043e-05/0.1239, allocations: 15.81 kB / 451.8 MB, free: 8.707 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.298e-05/0.1239, allocations: 15.98 kB / 451.8 MB, free: 8.691 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.685e-06/0.1239, allocations: 0 / 451.8 MB, free: 8.691 MB / 334.1 MB Notification: Performance of sorting global known variables: time 4.571e-05/0.124, allocations: 79.7 kB / 451.9 MB, free: 8.613 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.124, allocations: 0 / 451.9 MB, free: 8.613 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004783/0.1245, allocations: 4 kB / 451.9 MB, free: 8.609 MB / 334.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.0001577/0.1246, allocations: 99.25 kB / 452 MB, free: 8.5 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003043/0.1249, allocations: 55.89 kB / 452.1 MB, free: 8.445 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.1249, allocations: 0 / 452.1 MB, free: 8.445 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 9.46e-05/0.125, allocations: 27.97 kB / 452.1 MB, free: 8.418 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000221/0.1253, allocations: 0 / 452.1 MB, free: 8.418 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004712/0.1257, allocations: 237 kB / 452.3 MB, free: 8.145 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003277/0.1261, allocations: 0.6807 MB / 453 MB, free: 7.438 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.492e-05/0.1261, allocations: 144 / 453 MB, free: 7.438 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.752e-05/0.1262, allocations: 11.44 kB / 453 MB, free: 7.426 MB / 334.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1262, allocations: 0 / 453 MB, free: 7.426 MB / 334.1 MB Notification: Performance of Templates: time 0.003541/0.1297, allocations: 0.6318 MB / 453.7 MB, free: 6.797 MB / 334.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=50 -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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerGrids/PowerGrids.Controls.Test.TestDiscontinuousDeadBand_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerGrids_symb_jac_PowerGrids.Controls.Test.TestDiscontinuousDeadBand.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches