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.001541/0.00154, allocations: 112.2 kB / 16.42 MB, free: 6.5 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.001791/0.001792, allocations: 185.5 kB / 17.35 MB, free: 5.762 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.1 MB / 223.2 MB, free: 12.22 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06363/0.06363, allocations: 14.17 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.001555/0.001555, allocations: 76.11 kB / 397.2 MB, free: 43.89 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09536/0.09692, allocations: 50.13 MB / 447.3 MB, free: 13.68 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestDiscontinuousDeadBand): time 0.002112/0.09909, allocations: 0.6668 MB / 448 MB, free: 13.02 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002605/0.09937, allocations: 60.16 kB / 448 MB, free: 12.96 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.636e-05/0.09942, allocations: 0 / 448 MB, free: 12.96 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 3.007e-05/0.09947, allocations: 3.938 kB / 448 MB, free: 12.95 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 9.164e-05/0.09957, allocations: 7.984 kB / 448 MB, free: 12.95 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001831/0.09975, allocations: 15.92 kB / 448 MB, free: 12.93 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001057/0.09987, allocations: 23.92 kB / 448.1 MB, free: 12.91 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001227/0.1, allocations: 7.984 kB / 448.1 MB, free: 12.9 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.632e-05/0.1, allocations: 8 kB / 448.1 MB, free: 12.89 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.113e-05/0.1001, allocations: 11.92 kB / 448.1 MB, free: 12.88 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.134e-05/0.1001, allocations: 4 kB / 448.1 MB, free: 12.88 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.105e-05/0.1002, allocations: 4 kB / 448.1 MB, free: 12.87 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.315e-05/0.1002, allocations: 7.938 kB / 448.1 MB, free: 12.86 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.069e-05/0.1002, allocations: 11.92 kB / 448.1 MB, free: 12.85 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001047/0.1003, allocations: 19.97 kB / 448.1 MB, free: 12.83 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.172e-06/0.1003, allocations: 3.938 kB / 448.1 MB, free: 12.83 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.1004, allocations: 0 / 448.1 MB, free: 12.83 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.331e-06/0.1004, 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.0004999/0.1009, allocations: 331.5 kB / 448.5 MB, free: 12.45 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.098e-05/0.1009, allocations: 12.03 kB / 448.5 MB, free: 12.44 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.926e-05/0.101, allocations: 8.938 kB / 448.5 MB, free: 12.43 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001886/0.1012, allocations: 176.3 kB / 448.7 MB, free: 12.22 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.28e-05/0.1012, allocations: 384 / 448.7 MB, free: 12.22 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.116e-05/0.1012, allocations: 4.375 kB / 448.7 MB, free: 12.22 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001936/0.1014, allocations: 72.75 kB / 448.7 MB, free: 12.13 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.975e-06/0.1014, allocations: 192 / 448.7 MB, free: 12.13 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.559e-05/0.1014, allocations: 7.938 kB / 448.7 MB, free: 12.12 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.19e-06/0.1014, allocations: 4 kB / 448.7 MB, free: 12.12 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001668/0.1016, allocations: 31.97 kB / 448.8 MB, free: 12.09 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003893/0.102, allocations: 265.8 kB / 449 MB, free: 11.78 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001669/0.1022, allocations: 73.06 kB / 449.1 MB, free: 11.69 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.196e-05/0.1023, allocations: 29.77 kB / 449.1 MB, free: 11.65 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.484e-05/0.1023, allocations: 0 / 449.1 MB, free: 11.65 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.029e-05/0.1024, allocations: 42.5 kB / 449.2 MB, free: 11.6 MB / 334.1 MB Notification: Performance of pre-optimization done (n=3): time 1.092e-06/0.1024, allocations: 0 / 449.2 MB, free: 11.6 MB / 334.1 MB Notification: Performance of matching and sorting (n=3): time 0.0003423/0.1027, allocations: 85.64 kB / 449.3 MB, free: 11.51 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.207e-05/0.1028, allocations: 106.8 kB / 449.4 MB, free: 11.38 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.769e-05/0.1029, allocations: 101.8 kB / 449.5 MB, free: 11.27 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.722e-05/0.1029, allocations: 29.95 kB / 449.5 MB, free: 11.24 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.217e-05/0.103, allocations: 88.14 kB / 449.6 MB, free: 11.15 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.005e-05/0.103, allocations: 11.75 kB / 449.6 MB, free: 11.14 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.682e-05/0.1031, allocations: 21.66 kB / 449.6 MB, free: 11.11 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001202/0.1032, allocations: 314.8 kB / 449.9 MB, free: 10.79 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.629e-05/0.1033, allocations: 24.84 kB / 449.9 MB, free: 10.77 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.415e-05/0.1034, allocations: 34.56 kB / 450 MB, free: 10.72 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000163/0.1035, allocations: 49.67 kB / 450 MB, free: 10.67 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.1036, allocations: 3.938 kB / 450 MB, free: 10.66 MB / 334.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001912/0.1037, allocations: 73.64 kB / 450.1 MB, free: 10.59 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.419e-05/0.1038, allocations: 4 kB / 450.1 MB, free: 10.58 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.03e-06/0.1038, allocations: 3.938 kB / 450.1 MB, free: 10.58 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.677e-05/0.1038, allocations: 4 kB / 450.1 MB, free: 10.57 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.775e-05/0.1039, allocations: 11.98 kB / 450.1 MB, free: 10.56 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.666e-06/0.1039, allocations: 0 / 450.1 MB, free: 10.56 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.885e-05/0.104, allocations: 11.92 kB / 450.1 MB, free: 10.55 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.961e-06/0.104, allocations: 0 / 450.1 MB, free: 10.55 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 7.537e-05/0.1041, allocations: 96.2 kB / 450.2 MB, free: 10.45 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 5.591e-05/0.1041, allocations: 22.56 kB / 450.3 MB, free: 10.42 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 7.417e-05/0.1042, allocations: 29.7 kB / 450.3 MB, free: 10.39 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 7.22e-07/0.1042, allocations: 0 / 450.3 MB, free: 10.39 MB / 334.1 MB Notification: Performance of matching and sorting (n=3) (initialization_lambda0): time 0.0001185/0.1043, allocations: 61.62 kB / 450.3 MB, free: 10.32 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.774e-06/0.1044, allocations: 4 kB / 450.3 MB, free: 10.32 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.182e-06/0.1044, allocations: 0 / 450.3 MB, free: 10.32 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.517e-06/0.1044, allocations: 4 kB / 450.4 MB, free: 10.31 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.266e-05/0.1044, allocations: 4 kB / 450.4 MB, free: 10.31 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.096e-06/0.1044, allocations: 3.984 kB / 450.4 MB, free: 10.3 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.699e-05/0.1045, allocations: 7.984 kB / 450.4 MB, free: 10.3 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.215e-06/0.1045, allocations: 0 / 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.0001086/0.1046, allocations: 192.1 kB / 450.6 MB, free: 10.1 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.422e-05/0.1046, allocations: 7.938 kB / 450.6 MB, free: 10.09 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.17e-05/0.1046, allocations: 7.078 kB / 450.6 MB, free: 10.09 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.146e-06/0.1046, allocations: 4 kB / 450.6 MB, free: 10.08 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.201e-06/0.1047, allocations: 0 / 450.6 MB, free: 10.08 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.715e-06/0.1047, allocations: 3.938 kB / 450.6 MB, free: 10.08 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000175/0.1048, allocations: 169.6 kB / 450.7 MB, free: 9.863 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.228e-06/0.1049, allocations: 8 kB / 450.8 MB, free: 9.855 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.504e-05/0.1049, allocations: 11.98 kB / 450.8 MB, free: 9.844 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.754e-06/0.1049, allocations: 0 / 450.8 MB, free: 9.844 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.953e-06/0.1049, allocations: 0 / 450.8 MB, free: 9.844 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.342e-06/0.1049, allocations: 4 kB / 450.8 MB, free: 9.84 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.62e-07/0.1049, allocations: 0 / 450.8 MB, free: 9.84 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006704/0.1056, allocations: 0.9618 MB / 451.7 MB, free: 8.812 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.024e-05/0.1057, allocations: 77.11 kB / 451.8 MB, free: 8.719 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.47e-05/0.1057, allocations: 4 kB / 451.8 MB, free: 8.715 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.885e-05/0.1058, allocations: 15.86 kB / 451.8 MB, free: 8.699 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.022e-05/0.1058, allocations: 3.938 kB / 451.8 MB, free: 8.695 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.256e-06/0.1059, allocations: 4 kB / 451.8 MB, free: 8.691 MB / 334.1 MB Notification: Performance of sorting global known variables: time 4.414e-05/0.1059, allocations: 87.27 kB / 451.9 MB, free: 8.605 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1059, allocations: 4 kB / 451.9 MB, free: 8.602 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004907/0.1064, allocations: 4 kB / 451.9 MB, free: 8.598 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.000107/0.1065, allocations: 95.81 kB / 452 MB, free: 8.492 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002814/0.1068, allocations: 55.89 kB / 452.1 MB, free: 8.438 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.063e-06/0.1068, allocations: 256 / 452.1 MB, free: 8.438 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 8.301e-05/0.1069, allocations: 23.92 kB / 452.1 MB, free: 8.414 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002204/0.1071, allocations: 8.781 kB / 452.1 MB, free: 8.406 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004078/0.1076, allocations: 232.6 kB / 452.3 MB, free: 8.137 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002907/0.1079, allocations: 0.6768 MB / 453 MB, free: 7.434 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.027e-05/0.1079, allocations: 8.125 kB / 453 MB, free: 7.426 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.916e-05/0.1079, allocations: 7.438 kB / 453 MB, free: 7.418 MB / 334.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1079, allocations: 4 kB / 453 MB, free: 7.414 MB / 334.1 MB Notification: Performance of Templates: time 0.003031/0.111, allocations: 0.618 MB / 453.6 MB, free: 6.805 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